Ho to calculate due date in x++?
class UpdateDuedate_CustAging
{
public static void main(Args _args)
{
CustTrans CustTrans;
CustInvoiceJour CustInvoiceJour;
ttsBegin;
while select forupdate CustInvoiceJour where CustInvoiceJour.payment ==’Test’
&& CustInvoiceJour.DueDate == CustInvoiceJour.InvoiceDate
// && CustTrans.Invoice==’INV-0000001623′
…
Continue Reading noreply@blogger.com (Hakim)’s Article on their blog
Ho to calculate due date in x++?
class UpdateDuedate_CustAging { public static void main(Args _args) { CustTrans CustTrans; CustInvoiceJour CustInvoiceJour; ttsBegin; while select forupdate CustInvoiceJour where CustInvoiceJour.payment ==’Test’ && CustInvoiceJour.DueDate == CustInvoiceJour.InvoiceDate // && CustTrans.Invoice==’INV-0000001623′ { CustInvoiceJour.DueDate = PaymTerm::find(CustInvoiceJour.payment).due(CustInvoiceJour.InvoiceDate); CustInvoiceJour.update(); } ttsCommit; } }
Blog Syndicated with noreply@blogger.com (Hakim)’s Permission
More About This Author
Array
Finance & Operations2023.01.29Tips after restoring backup from production server to Test server in Ax 2012
Finance & Operations2022.08.25How To to use Performance Timer to investigate the issues in D365?
Finance & Operations2022.07.03Table Sync Failed for Table: XXXtable. Exception: System.InvalidOperationException: Table 'XXX': Converting Field 'YYY' of Type 'AxTableFieldReal' to 'AxTableFieldInt' is not supported. Please drop the original field, sync the table and add a new field with the same name if needed.
Finance & Operations2022.07.01Ho to calculate due date in x++?