web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Ho to calculate due date in x++?

Mahmoud Hakim Profile Picture Mahmoud Hakim 17,887

 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;


    }


}


This was originally posted here.

Comments

*This post is locked for comments