Thursday, October 5, 2017

Calculating Customer Aging Balances through X++

private void CalcCustAging(AccountNum _invoiceAccount) { CustVendTable custVendTable; CustVendAgingStatistics custVendAgingStatistics; TmpAccountSum tmpAccountSum;
; custVendTable = CustTable::find(_invoiceAccount); custVendAgingStatistics = CustVendAgingStatistics::construct(custVendTable,
#agingFormat, DateTransactionDuedate::DueDate,True); custVendAgingStatistics.calcStatistic(); tmpAccountSum.setTmpData(custVendAgingStatistics.tmpAccountsum()); cachedaccountSummary = new Map(Types::Integer,Types::Real); cachedaccountSummaryTxt = new Map(Types::Integer,Types::String); while select tmpAccountSumLocal {
info(strfmt("%1,%2",tmpAccountSumLocal.Txt,tmpAccountSumLocal.Balance03)); } }

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...