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

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...