Tax::checkNoTax Method [AX 2012]

Verifies whether the corresponding records from the sales tax group and the item sales tax group have a common tax code.

Syntax

server public static boolean checkNoTax(
    MainAccount _mainAccount, 
    TaxGroup _taxGroup, 
    TaxItemGroup _taxItemGroup, 
   [TaxCode _taxCode])

Run On

Server

Parameters

  • _mainAccount
    Type: MainAccount Table
    The general ledger module account record for which the check will be done.

Return Value

Type: boolean
true if the tax code is specified, but it is not required for the posting account; otherwise, false.

Remarks

If the tax code cannot be found, this method will check if the general ledger account requires a tax code specified on the transaction.

See Also

Reference

Tax Class