Tax.validateForOpenTaxReportPeriod Method [AX 2012]
Validates whether the tax line date of VAT register is within a tax report period that is not yet reported.
Syntax
private void validateForOpenTaxReportPeriod(
TmpTaxWorkTrans _taxWorkTrans,
RefTableId _headingTableId,
RefRecId _headingRecId)
Run On
Server
Parameters
- _taxWorkTrans
Type: TmpTaxWorkTrans Table
The buffer that holds tax lines.
- _headingTableId
Type: RefTableId Extended Data Type
The table ID of the transaction header. Default value comes from the Tax object; optional.
- _headingRecId
Type: RefRecId Extended Data Type
The record ID of the transaction header. Default value comes from the Tax object; optional.
Exceptions
Exception | Condition |
---|---|
Error | Tax transaction with date of VAT register cannot be posted, as the tax period is already closed. |