AX – D365FO – X++ Code to Unsettle Payment and Invoice

This is small utility code if we need to unsettle payments and invoice Reference article : https://community.dynamics.com/ax/b/amirsaxspace/posts/x-code-to-unsettle-payment-and-invoice select firstonly * from findCustTrans where findCustTrans.Voucher == voucher; if (findCustTrans.RecId) { balanceAmount = findCustTrans.remainAmountCur(); if (balanceAmount == 0) { custTable = custTable::find(findCustTrans.AccountNum); select firstonly custSettlement where custSettlement.TransCompany == findCustTrans.dataAreaId && custSettlement.TransRecId == findCustTrans.RecId && custSettlement.AccountNum == findCustTrans.AccountNum; … Continue reading AX – D365FO – X++ Code to Unsettle Payment and Invoice

AX – D365FO – modify the default print management setup for customer invoices to use the PDF format.

1. Go to Navigation pane > Modules > Accounts Receivable > Setup > Forms > Form setup2. On the General tab, click the Print management button. 3. In the documents list, expand Customer invoice and select Original <Default>.4. In the Destination field, select Printer setup.5. In the Print destination settings windows, select File.6. Select PDF … Continue reading AX – D365FO – modify the default print management setup for customer invoices to use the PDF format.