Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies that the user entered a correct tax code.
Syntax
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.
Remarks
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.