Thursday, April 22, 2010

Calculating the Sales Tax for a particular SalesOrder

Job for calculating SalesTax amount for particular Sales-Order

static void Calculatingtax(Args _args)
{
    SalesTotals     salesTotals;
    SalesTable              salesTable;
    TaxAmountCur        Amount;
    ;
    salesTable  =   SalesTable::find("SO-101242");
    salesTotals  = SalesTotals::construct(salesTable);
    Amount      = salesTotals.totalTaxAmount();
    info(Strfmt("The tax amount is %1",Amount));
}

The Output will be

No comments:

Post a Comment