TPDFInvoiceValidationStage

Data types, invoices, compliance

Description

TPDFInvoiceValidationStage identifies the validation stage a provider is asked to run. IPDFInvoiceValidationProvider receives one call per requested stage.

The stage value selects which files of the rule set apply: the XML Schema file for ivsSchema and the Schematron stylesheet for ivsSchematron.

Syntax

Delphi

TPDFInvoiceValidationStage = (ivsSchema, ivsSchematron);

Values

ivsSchemaXML Schema validation of the invoice document structure and data types
ivsSchematronSchematron evaluation of the business rules, including calculations, VAT, code lists and profile constraints

Remarks

A stage is requested only when the matching RequireSchema or RequireSchematron field of the request is True.

A stage that was not requested is reported as ivstNotChecked and does not contribute to IsValid.

See also

TPDFInvoiceValidationRequest, IPDFInvoiceValidationProvider, ValidateInvoiceBusinessRules