Share via


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

  • _taxTrans
    Type: TaxTrans Table
    The TaxTrans record that holds the amount to be posted.

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.

See Also

Reference

TaxOverUnderPayment Class