Posts

Showing posts from September, 2025

vendor invoice creation in D365fo x++

vendor invoice creation in D365fo x++ public class DSAQMVendInvoiceUtill { public static void main(Args _args) { System.Exception ex; try { CustInvoiceTable CustInvoiceTable = _args.record(); if(!CustParameters::find().DSAQMJournalName) { throw Error("Journal name must be filled in AR parameters"); } if(CustInvoiceTable) { LedgerJournalTable LedgerJournalTable = DSAQMVendInvoiceUtill::createHeader(CustInvoiceTable); if(LedgerJournalTable) { DSAQMVendInvoiceUtill::createLines(CustInvoiceTable, LedgerJournalTable); } LedgerJournalCheckPost jourCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(LedgerJournalTable, NoYes::Yes, NoYes::Yes); if (jourCheckPost.validate()) { jourCheckPost.run(); ...