Please see below screenshot and explanation of source code.
Explanation of source code:
- Initialize of tables and class variables.
- Get purchase order table.
- Get vendInvoiceInfoTable table buffer by purchase order Id and pending vendor invoice number.
- Update match status invoice.
- Initialize PurchFormLetter_Invoice class.
- Update purchase order parameter table.
- Call PurchFormLetter_Invoice class update method.
- Argument-1: Purchase order table buffer.
- Argument-2: Pending vendor invoice number.
- Argument-3: Posting date.
- Argument-4: Purchase update type.
- Argument-5: Account order status.
- Argument-6: Proforma invoice is set to NO.
- Argument-7: Print management option is set to NO.
That is all you need to do for posting pending vendor invoice through X++ code in Dynamics 365 Finance and Operations. For creating pending vendor invoice you can follow my previous blog Job to create pending vendor invoice through X++ code in D365FO.
No comments:
Post a Comment