Credit Limit for a particular Sales Order can be checked as follows through the code
static void CreditLimit(Args _args)
{
CustCreditLimit custCreditLimit;
SalesTable salesTable;
;
salesTable = SalesTable::find("SO-101297");
info(strfmt("The SalesId is %1",salesTable.SalesId));
custCreditLimit = custCreditLimit::construct(salesTable);
if(custCreditLimit.check())
{
info("Credit limit is OKZ");
}
info("Job Completed");
}
{
CustCreditLimit custCreditLimit;
SalesTable salesTable;
;
salesTable = SalesTable::find("SO-101297");
info(strfmt("The SalesId is %1",salesTable.SalesId));
custCreditLimit = custCreditLimit::construct(salesTable);
if(custCreditLimit.check())
{
info("Credit limit is OKZ");
}
info("Job Completed");
}
The Output is :
Really nice information i get from your article. I share your article on stumble as well. Keep Sharing nice posts
ReplyDeletePIC Grant