TaxOverUnderPayment.postCharge Method [AX 2012]
Posts the sales tax charge.
Syntax
public void postCharge(
LedgerPostingController _ledgerPostingController,
TaxTrans _taxTrans,
TaxAmountCur _chargeAmount,
CurrencyExchangeHelper _exchRateHelper,
LedgerDimensionAccount _transactionLineAccount)
Run On
Server
Parameters
- _ledgerPostingController
Type: LedgerPostingController Class
The ledger posting controller to use for ledger posting.
- _taxTrans
Type: TaxTrans Table
The TaxTrans record that holds the amount to be posted.
- _chargeAmount
Type: TaxAmountCur Extended Data Type
The charge amount to post.
- _exchRateHelper
Type: CurrencyExchangeHelper Class
The CurrencyExchHelper instance for the TaxTrans record being posted.
- _transactionLineAccount
Type: LedgerDimensionAccount Extended Data Type
The LedgerDimensionAccount from the parent of this tax line.
Remarks
The incoming _transactionLineAccount is for the current tax company, but the charges can be in a different company, so we call the getLedgerDimensionForChargeLine() method to get either the correct expense account or a due to/due from account to post in the current company.