SalesTable _SalesTable;
SalesLine _SalesLine;
TaxRegulation taxRegulation;
super();
_SalesTable = SalesTable::find(SalesTable.SalesId);
_SalesLine = SalesLine::find(_SalesTable.SalesId,SalesLine.LineNum);
taxRegulation = TaxRegulation::newTaxRegulation(
SalesTotals::getTax(_SalesTable),
null,
tableNum(SalesLine),
SalesLine.RecId
);
if(taxRegulation)
{
taxRegulation.allocateAmount(20);
taxRegulation.saveTaxRegulation();
}
No comments:
Post a Comment