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.

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.
_taxGroup
Type: TaxGroup Extended Data Type
The tax group number to check.
_taxItemGroup
Type: TaxItemGroup Extended Data Type
The tax item group number to check.
_taxCode
Type: TaxCode Extended Data Type
The tax code number to check.

Return Value

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

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

Reference

Show: