Hello,
I have a case to create a batch class which will loop through purchase orders and look for related packing slips and invoices.
The need is to settle GeneralJournalAccountEntries with a specific validation type.
In the case of a fully invoiced PO, it is quite simple to get these details by VendInvoicePurchLink and VendPackingSlipPurchLink.
However, it is quite complex with a partially invoiced PO.
Assume we have multiple packing slips with the concerned GeneralJournalAccountEntry: PS 1:EUR 4000 , PS 2: EUR 2000, PS 3: EUR 5000.
I have only invoiced the packing slip 1.
The process should settle only the packing slip generaljournalaccountentry of EUR 4000 and the invoice generaljournalaccountentry of EUR 4000.
Can anyone help me on how this could be done and how to link the packingslips with the concerned invoices please?