Best source for TotalInvoiceAmount on SO Processed
I'm converting some old code for our next upgrade from Jiwa 6.
Customer has some old code for generating XML for an EDI implementation.
The meat of the code is in a stored procedure, where they are querying DB_Trans to get the invoice and GST totals.
I'm recoding this to just generate the XML in a VB.Net plugin (because VB does XML), in _salesOrder.Processed (In Jiwa 6, they have it firing in SalesOrderProcess_ProcessFinalBefore).
So the question is: if I'm exporting the EDI file in the Processed event, what're the best properties to replace the DB_Trans values with?
(current) SalesOrderHistory has HistoryTotal, but no GST amount?
I could query the DB_Trans records, but I feel like that shouldn't be necessary?
Customer has some old code for generating XML for an EDI implementation.
The meat of the code is in a stored procedure, where they are querying DB_Trans to get the invoice and GST totals.
I'm recoding this to just generate the XML in a VB.Net plugin (because VB does XML), in _salesOrder.Processed (In Jiwa 6, they have it firing in SalesOrderProcess_ProcessFinalBefore).
So the question is: if I'm exporting the EDI file in the Processed event, what're the best properties to replace the DB_Trans values with?
(current) SalesOrderHistory has HistoryTotal, but no GST amount?
I could query the DB_Trans records, but I feel like that shouldn't be necessary?