static void CalculateAmountCredit(Args _args)
{
CustTable custTable;
CustTrans custTrans;
while select sum(AmountCur),AccountNum from custTrans
index hint voucherdateIdx
//group by AccountNum
join custTable where CustTable.AccountNum == CustTrans.AccountNum
{
info(strFmt("%1,",custTrans.AmountCur));
}
}
{
CustTable custTable;
CustTrans custTrans;
while select sum(AmountCur),AccountNum from custTrans
index hint voucherdateIdx
//group by AccountNum
join custTable where CustTable.AccountNum == CustTrans.AccountNum
{
info(strFmt("%1,",custTrans.AmountCur));
}
}
No comments:
Post a Comment