FiscalDocumentGeneralValidations_BR Class [AX 2012]
Validates fiscal document contents against specific rules that may prevent it from being persisted.
| Method | Description | |
|---|---|---|
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| charges_Siscomex | Validates whether a miscellaneous charge of type siscomex is valid. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getDeliveryPostalAddress | Returns the LogisticsPostalAddress table buffer that represents the delivery address of the fiscal document that is being validated. (Inherited from FiscalDocumentValidationBase_BR.) |
| getThirdPartyPostalAddress | Returns the LogisticsPostalAddress table buffer that represents the third-party address of the fiscal document that is being validated. (Inherited from FiscalDocumentValidationBase_BR.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| header_CFOPFirstNumbersAreTheSame | Validates whether all non-empty CFOPs start with the same number. |
| header_CnpjNotBlankOnFiscalEstablishment | Validates whether the Fiscal Establishment CNJP/CPF is not empty. |
| header_CnpjNotBlankWhenNotForeign | Validates whether the account CNJP/CPF is not empty. |
| header_FiscalDocumentDate | Validates whether the fiscal document date is not empty. |
| header_FiscalDocumentNumberFormat | Validates whether the fiscal document number contains only digits. |
| header_FiscalDocumentNumberIsMandantory | Validates if the fiscal document number is not empty. |
| header_FiscalEstablishmentNameNotEmpty | Validates whether the fiscal establishment name is not empty. |
| header_FiscalEstablishmentPrimaryAddress | Validates whether the Fiscal Establishment address is complete. |
| header_FiscalEstablishmentStateSize | Validates whether the fiscal establishment address state has two digits. |
| header_IENotBlankOnFiscalEstablishment | Validates whether the Fiscal Establishment IE number is not empty. |
| header_IENumFormatOnFiscalEstablishment | Validates whether the Fiscal Establishment IE number is valid. |
| header_ModelIsMandantory | Validates whether the fiscal document model is not empty. |
| header_OwnFiscalDocumentIsUnique | Validates whether the fiscal document number already exists for the series. |
| header_ProcessNumberMaxLength | Validates the referenced process number length. |
| header_SeriesIsMandantory | Validates if the fiscal document series is not empty. |
| header_TypeOfCTeIsValid | Validates whether the type of CT-e is correctly defined. |
| isEFDValidationNeeded | Verifies whether NF-e validation is required for the fiscal document. (Inherited from FiscalDocumentValidationBase_BR.) |
| line_cfopAndDirectionShouldMatch | Validates whether a fiscal document line CFOP direction is the same as the fiscal document direction. |
| line_CfopMustExist | Validates whether a fiscal document line CFOP exists in CFOPTable_BR. |
| line_fiscalClassificationForProducs | Validates whether a fiscal document line for an item of type product has a valid fiscal classification. |
| line_FixedAssetCFOP | Validates if the CFOP is related to fixed assets |
| line_FixedAssetMandatoryCostCenter | Validates if the asset has ICMS with fiscal value 3. |
| line_FixedAssetOnSameFiscalEstablishment | Validates if the asset has the same fiscalestablishment of the line. |
| line_FixedAssetValidFiscalValueForCIAP | Validates if the asset has ICMS with fiscal value 3. |
| line_freightNatureIsValid | Validates whether a fiscal document line freight nature is correctly defined. |
| line_ProcessNumberMaxLength | Validates the referenced process number length. |
| line_TaxAttributesShouldNotRepeat | Validates whether the taxes incurring on a fiscal document line don't repeat. |
| new | Initializes a new instance of the FiscalDocumentValidationBase_BR class. (Inherited from FiscalDocumentValidationBase_BR.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmFiscalDocumentLineParmData | Gets or sets the FiscalDocumentLineParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.) |
| parmFiscalDocumentMiscChargeParmData | Gets or sets the FiscalDocumentMiscChargeParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.) |
| parmFiscalDocumentParmData | Gets or sets the FiscalDocumentParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.) |
| parmFiscalDocumentTaxTransParmData | Gets or sets the FiscalDocumentTaxTransParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.) |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| tax_PISCOFINSBasicTaxValue | Validates if tax value follow the default of assessment regimen. |
| tax_TaxationCodeDirection | Validates if taxation code direction TaxationCodeDirection_BR is valid for fiscal document direction FiscalDocDirection_BR. |
| tax_TaxHasTaxationCode | Validates whether a taxation code exist for taxes that are configured to require them. |
| tax_TaxReductionPctICMS | Validates tax reduction base for ICMS is less than one hundred percent. |
| tax_TaxTypeIsNotIcmsStForModel02 | Validates whether a model 02 document does not include ICMS-ST tax type. |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validateProcessNumberMaxLength | |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
Validation is executed against the Fiscal Document object model (whose root class is FiscalDocumentParmData_BR).
Each validation method must be decorated with a FiscalDocumentValidationElementAttribute attribute class.FiscalDocumentValidationElementAttribute may receive an optional parameter of type FiscalDocumentClassification_BR which determines the type of Fiscal Document for which that specific validation method applies to.
Another type of attribute may be used to decorate a validation method: the FiscalDocumentValidationElementAttribute can be used to specify the Fiscal Document element that is being validated by the method. The FiscalDocumentElement_BR base enum is used to indicate the different elements that can be validated.
This class contains validations applicable for any Fiscal Document model.
Validations specific to electronic fiscal documents (NF-e) are kept in class EFiscalDocumentValidation_BR.
All validation methods are supposed to call checkFailed() method to log descriptive error messages to be presented to the user.