FiscalDocumentGeneralValidations_BR Class [AX 2012]

Validates fiscal document contents against specific rules that may prevent it from being persisted.

class FiscalDocumentGeneralValidations_BR extends FiscalDocumentValidationBase_BR

Run On

Called

  MethodDescription
JJ726930.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif charges_Siscomex Validates whether a miscellaneous charge of type siscomex is valid.
JJ726930.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif getDeliveryPostalAddress Returns the LogisticsPostalAddress table buffer that represents the delivery address of the fiscal document that is being validated. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif getThirdPartyPostalAddress Returns the LogisticsPostalAddress table buffer that represents the third-party address of the fiscal document that is being validated. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif header_CFOPFirstNumbersAreTheSame Validates whether all non-empty CFOPs start with the same number.
JJ726930.pubmethod(en-us,AX.60).gif header_CnpjNotBlankOnFiscalEstablishment Validates whether the Fiscal Establishment CNJP/CPF is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_CnpjNotBlankWhenNotForeign Validates whether the account CNJP/CPF is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalDocumentDate Validates whether the fiscal document date is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalDocumentNumberFormat Validates whether the fiscal document number contains only digits.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalDocumentNumberIsMandantory Validates if the fiscal document number is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalEstablishmentNameNotEmpty Validates whether the fiscal establishment name is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalEstablishmentPrimaryAddress Validates whether the Fiscal Establishment address is complete.
JJ726930.pubmethod(en-us,AX.60).gif header_FiscalEstablishmentStateSize Validates whether the fiscal establishment address state has two digits.
JJ726930.pubmethod(en-us,AX.60).gif header_IENotBlankOnFiscalEstablishment Validates whether the Fiscal Establishment IE number is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_IENumFormatOnFiscalEstablishment Validates whether the Fiscal Establishment IE number is valid.
JJ726930.pubmethod(en-us,AX.60).gif header_ModelIsMandantory Validates whether the fiscal document model is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_OwnFiscalDocumentIsUnique Validates whether the fiscal document number already exists for the series.
JJ726930.pubmethod(en-us,AX.60).gif header_ProcessNumberMaxLength Validates the referenced process number length.
JJ726930.pubmethod(en-us,AX.60).gif header_SeriesIsMandantory Validates if the fiscal document series is not empty.
JJ726930.pubmethod(en-us,AX.60).gif header_TypeOfCTeIsValid Validates whether the type of CT-e is correctly defined.
JJ726930.protmethod(en-us,AX.60).gif isEFDValidationNeeded Verifies whether NF-e validation is required for the fiscal document. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif line_cfopAndDirectionShouldMatch Validates whether a fiscal document line CFOP direction is the same as the fiscal document direction.
JJ726930.pubmethod(en-us,AX.60).gif line_CfopMustExist Validates whether a fiscal document line CFOP exists in CFOPTable_BR.
JJ726930.pubmethod(en-us,AX.60).gif line_fiscalClassificationForProducs Validates whether a fiscal document line for an item of type product has a valid fiscal classification.
JJ726930.pubmethod(en-us,AX.60).gif line_FixedAssetCFOP Validates if the CFOP is related to fixed assets
JJ726930.pubmethod(en-us,AX.60).gif line_FixedAssetMandatoryCostCenter Validates if the asset has ICMS with fiscal value 3.
JJ726930.pubmethod(en-us,AX.60).gif line_FixedAssetOnSameFiscalEstablishment Validates if the asset has the same fiscalestablishment of the line.
JJ726930.pubmethod(en-us,AX.60).gif line_FixedAssetValidFiscalValueForCIAP Validates if the asset has ICMS with fiscal value 3.
JJ726930.pubmethod(en-us,AX.60).gif line_freightNatureIsValid Validates whether a fiscal document line freight nature is correctly defined.
JJ726930.pubmethod(en-us,AX.60).gif line_ProcessNumberMaxLength Validates the referenced process number length.
JJ726930.pubmethod(en-us,AX.60).gif line_TaxAttributesShouldNotRepeat Validates whether the taxes incurring on a fiscal document line don't repeat.
JJ726930.pubmethod(en-us,AX.60).gif new Initializes a new instance of the FiscalDocumentValidationBase_BR class. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif parmFiscalDocumentLineParmData Gets or sets the FiscalDocumentLineParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif parmFiscalDocumentMiscChargeParmData Gets or sets the FiscalDocumentMiscChargeParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif parmFiscalDocumentParmData Gets or sets the FiscalDocumentParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif parmFiscalDocumentTaxTransParmData Gets or sets the FiscalDocumentTaxTransParmData parameter. (Inherited from FiscalDocumentValidationBase_BR.)
JJ726930.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif tax_PISCOFINSBasicTaxValue Validates if tax value follow the default of assessment regimen.
JJ726930.pubmethod(en-us,AX.60).gif tax_TaxationCodeDirection Validates if taxation code direction TaxationCodeDirection_BR is valid for fiscal document direction FiscalDocDirection_BR.
JJ726930.pubmethod(en-us,AX.60).gif tax_TaxHasTaxationCode Validates whether a taxation code exist for taxes that are configured to require them.
JJ726930.pubmethod(en-us,AX.60).gif tax_TaxReductionPctICMS Validates tax reduction base for ICMS is less than one hundred percent.
JJ726930.pubmethod(en-us,AX.60).gif tax_TaxTypeIsNotIcmsStForModel02 Validates whether a model 02 document does not include ICMS-ST tax type.
JJ726930.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
JJ726930.privmethod(en-us,AX.60).gif validateProcessNumberMaxLength
JJ726930.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
JJ726930.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Top

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.

Object Class
  FiscalDocumentValidationBase_BR Class
    FiscalDocumentGeneralValidations_BR Class

Community Additions

ADD
Show: