Showing posts with label Get CustTrans Details and Voucher Details in Ax 2012.. Show all posts
Showing posts with label Get CustTrans Details and Voucher Details in Ax 2012.. Show all posts

Monday, 4 June 2018

Get CustTrans Details and Voucher Details in Ax 2012.

static void CustTransDetails(Args _args)
{
    CustTable   custTable;
    CustTrans   custTrans;
    int         i;
   
    while select AccountNum from custTable
    {
        i++;
        while select AccountNum,TransDate,Voucher from custTrans
                  where custTrans.AccountNum == custTable.AccountNum
        {
            info(strFmt("%1,%2,%3,%4",i, custTable.AccountNum,custTrans.TransDate , custTrans.Voucher));
        }
    }
}