Tuesday, 11 November 2014

Job to Get Open Transactions of all customers



static void CustOpenTrans(Args _args)
{
    CustTrans custtrans;
    CustTable custtbl;
    while select custtbl
    {
    select sum(AmountMST) from custtrans where custtrans.AccountNum == custtbl.AccountNum;
        info(strFmt("Customer - %1  Amount - %2",custtbl.AccountNum,CustPaymManTrans::openAmountMST(custtbl.AccountNum) + custtrans.AmountMST));
    }
       
   
}

No comments:

Post a Comment