Tuesday, April 27, 2010

Check Credit Limit for a Sales Order

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");
}

The Output is :


1 comment:

  1. Really nice information i get from your article. I share your article on stumble as well. Keep Sharing nice posts

    PIC Grant

    ReplyDelete