Tax::checkTaxCode Method [AX 2012]

Verifies that the user entered a correct tax code.

server public static boolean checkTaxCode(MainAccount _mainAccount, TaxCode _taxCode)

Run On

Server

Parameters

_mainAccount
Type: MainAccount Table
The general ledger table buffer for which the check will be done.
_taxCode
Type: TaxCode Extended Data Type
The tax code for which the check will be done.

Return Value

Type: boolean
true if the validation is successful; otherwise, false.

The value of the tax code will be compared by the method specified in the MandatoryTaxCode field. The tax code is specified by the user on the transaction record only. The transaction tax code will be compared to the code specified on the account record in the table. The transaction tax code will be looked up in the MainAccountLegalEntity table list.

Reference

Show: