static void CalculatePurchaseTax(Args _args)
{
PurchTable _purchTable = PurchTable::find("PO1312-0001");
PurchTotals purchTotals;
purchTotals = PurchTotals::newPurchTable(_purchTable);
purchTotals.calc();
purchTotals.tax().sourceSingleLine(true, false);
info(strFmt("Tax : %1", purchTotals.taxTotal()));
}
{
PurchTable _purchTable = PurchTable::find("PO1312-0001");
PurchTotals purchTotals;
purchTotals = PurchTotals::newPurchTable(_purchTable);
purchTotals.calc();
purchTotals.tax().sourceSingleLine(true, false);
info(strFmt("Tax : %1", purchTotals.taxTotal()));
}
0 comments:
Post a Comment