Hi
I want to post a vendor invoice for some specific productreceipts (vendpackingslip).
E.g. PO ABC123 has 3 productreceipts (R1,R2,R3) but I only want to create the invoice for R1and R3, NOT R2.
Here my code which should do this:
purchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice);
purchFormLetter.update(purchTable, ledgerJournalTrans.Invoice, ledgerJournalTrans.TransDate, PurchUpdate::PackingSlip, AccountOrder::None, false, false, false, false, SAI_InvoiceRegister::purchVendPackingSlipRangePackedList(purchTable.PurchId, invoiceHeader.PackingSlipRange));
In the end the Invoice is posted for ALL lines (R3 as well)
What am I doing wrong?
*This post is locked for comments
I have the same question (0)