Check this out :
thanks to Tukang Ojek ASP who create this simple logic.
ListPaymentGenralJournalAccount2V viewPayment;
CustVendAC CustVendAC,lastvalue;
Amount sumAmount;
int i=1;
int numofrecord;
while select viewPayment
where viewPayment.JournalNum == ListPaymentGenralJournalAccount2V.JournalNum
{
CustVendAC = viewPayment.CustVendACcount();
numofrecord += 1;
if(CustVendAC == lastvalue)
{
sumAmount += viewPayment.AccountingCurrencyAmount;
info(strFmt("%1",sumAmount));
}
else if(CustVendAC != lastvalue && i != 1)
{
info("beda");
sumAmount = viewPayment.AccountingCurrencyAmount;
info(strFmt("%1",sumAmount));
}
lastvalue = CustVendAC;
i += 1;
}
All Archives in this blog may be used for the Junior,Dummies or someone who just started for career at Dynamics Ax ... A Place Where U can Start ur Code - right here ...
Langganan:
Posting Komentar (Atom)
Cloud hosted environment di D365
Biasanya kita menginginkan sebuah environment yang sama dengan LIVE/PROD untuk mengtest sebuah proses. Maka kita bisa menggunakan fitur Clou...
-
When we work with entries data that contain sequence number sometime we need an improvement to create in another way, a Generate perhaps. ...
-
"Error while setting server report parameters. Error Message: The item ´/DynamicsAx/PurchPurchaseOrderreport.Report4´ cannot be found ...
-
Public Common lookupReference() { Common ret; ret = HcmWorker::PSM_LookupReffWorker_ByDept(this,strFmt("%1...
Tidak ada komentar:
Posting Komentar