Hello everyone,
In Accounts receivable - Periodic - Sales update - Invoice, in the other tab, there a dropdown list which allows the invoices to group orders in a certain way, by invoice account for example.
I have traced and used Trace Parser to try to figure out how the inner workings perform this grouping, with no result. There's a lot going on for sure in the FormLetter***** class world!
We want to integrate a customize field in SalesTable to group the orders by InvoiceAccount+CustomField instead of just InvoiceAccount so instead of creating one invoice line for each order from a customer, we would create one line per project code (the custom field) and group all orders on this line.
In this thread, there's a suggestion to use salesFormLetter.chooseLinesQuery(queryRun):
https://community.dynamics.com/ax/f/33/p/106550/208931
But I failed to see how this work.
Thanks for any pointer or hint,
Eric
AX 2012 - R3 - CU8