When will the records inserted in CustInvoiceJour Table during the Invoicing process in Sales Order

Can anyone tell me When will the records inserted in CustInvoiceJour Table during the Invoicing process in Sales Order…

I mean in which class and in which method…

Build cross-references if you haven’t done that before. Right click CustInvoiceJour.insert() and Cross-reference > User by. It will show you all places where insert() is called from (10 places in AX 2012 R3, including SalesInvoiceJournalCreateBase.createJournalHeader()).

Hi Martin

Thanks for your reply …

Actually i need to change the invoice amount before it will insert into the CustInvoiceJour Table…

I searched the Salesformletter and SalesInvoiceJournalCreate classes with debugger…but i can’t find the line which insert the record into custinvoicejour Table…

Place the breakpoint in CustInvoiceJour.insert() method and you can get the stack trace in the debugger how the record values are assigned.

Hi Lalit,

I tried your idea… but stack trace doesn’t go to the insert method…