want to arrange the amount in desc order how to do that...
static void AMY_job14(Args _args)
{
CustInvoiceJour CustInvoiceJour;
CustTable CustTable;
AccountNum AccountNum;
AmountMST TotalSalesBalance;
while select CustTable
{
AccountNum = CustTable.AccountNum;
while select sum(InvoiceAmount) from CustInvoiceJour where CustInvoiceJour.InvoiceAccount == CustTable.AccountNum
{
info(strFmt("%1....%2",AccountNum,CustInvoiceJour.InvoiceAmount));
}
}
}
*This post is locked for comments
I have the same question (0)