Tax.postCharge Method [AX 2012]

Posts the sales tax charge.

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 to post a ledger.
_taxTrans
Type: TaxTrans Table
The TaxTrans record that holds the amount to post.
_chargeAmount
Type: TaxAmountCur Extended Data Type
The charge amount to post.
_exchRateHelper
Type: CurrencyExchangeHelper Class
The instance of the CurrencyExchHelper class of the TaxTrans record to post.
_transactionLineAccount
Type: LedgerDimensionAccount Extended Data Type

This functionality was originally a part of the Post method, but was made into a separate method because most of the callers of the Post method do not need this.

Reference

Community Additions

ADD
Show: