TaxCashDisc.calcAndPost Method [AX 2012]
Calculates tax, inserts the calculated tax into the TmpTaxWorkTrans table, posts the transactions from the tmpTaxWorkTrans table, and inserts records in the TaxTrans table.
Syntax
public TaxAmount calcAndPost(LedgerPostingController _ledgerPostingController)
Run On
Server
Parameters
- _ledgerPostingController
Type: LedgerPostingController Class
Return Value
Type: TaxAmount Extended Data Type
The calculated TaxAmount.
Remarks
This method calls two methods. First, the CalcAndInsertTaxes method, and then the SaveAndPost method. The calculated TaxAmount from the CalcAndInsertTaxes method is returned.