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

Disabling the flight in D365FO (CHD - Tier 1)

 INSERT INTO dbo.SYSFLIGHTING(FLIGHTNAME, ENABLED)  VALUES ('<FlightObjectName>_KillSwitch', 1)  or  INSERT INTO dbo.SYSFLIGHT...