Hi All,
I’ve built a custom prepayment module where, based on the vendors in the prepayment lines, separate purchase invoices are created and posted during the Purchase Order posting process. The issue I’m facing is that only the first vendor’s purchase invoice is successfully posted.
For each vendor, I’m calling:
PurchPost.Run(PurchInvoiceHeader); // on line no. 52
However, it seems that I cannot post multiple purchase invoices during the same OnAfterPostPurchaseDoc event. The second (and any additional) vendor invoices never get posted.
Is there an alternative way to trigger multiple invoice postings safely?
Kindly find the attached screenshot.


Report
All responses (
Answers (