Hi, I'm performing some post invoice posting activities and having some issues.
The way I'm doing it is by attaching an post type event handler on SalesFormLetter_Invoice.afterOperationBody() where I basically do:
SalesFormLetter_Invoice salesFormLetter_Invoice = _ppArgs.getThis(); salesFormLetter_Invoice.getOutputContract().parmAllJournals();
With this I can iterate and perform my tasks on the posted invoices.
This works fine when posting invoices manually, in batch on the client but not when doing it in batch on the server.
The set returned by parmAllJournals (or rather base64 encoded string) is empty and I've tried a few other ways such as:
custInvoiceJour = salesFormLetter_Invoice.parmJournalRecord() as CustInvoiceJour; custInvoiceJour = salesFormLetter_Invoice.getSalesFormLetterContract().parmJournal() as CustInvoiceJour;
But I'm not getting any journals.
I've gone through a great deal of code down to Sysop framework trying to figure it out but I can't find anything obvious.
Did anyone else struggle with this?
Thanks
*This post is locked for comments