TPDFInvoiceValidationReport
Data types, invoices, compliance
Description
TPDFInvoiceValidationReport is the result of ValidateInvoiceBusinessRules. It records the effective rule set, both stage results, the resolved rule package and whether the run is complete, valid and fully conformant.
Complete reports whether every requested stage finished; IsValid reports whether the invoice passed them. The two fields separate a completed validation that found issues from a run that could not finish.
Syntax
Delphi
TPDFInvoiceValidationReport = record
Rules: TPDFInvoiceRuleSet;
Complete, IsValid: Boolean;
FullConformance: Boolean;
Schema, Schematron: TPDFInvoiceStageResult;
Package: TPDFInvoiceRulePackageInfo;
end;Fields
| Rules | Effective rule set after any package resolution |
|---|---|
| Complete | True when every requested stage executed and returned a complete result |
| IsValid | True when the completed run found no error or fatal issue |
| FullConformance | True when the invoice is valid, no requested stage left uncovered areas, and the rules came from a verified rule package |
| Schema | Result of the XML Schema stage |
| Schematron | Result of the Schematron business-rule stage |
| Package | Resolved rule package metadata, including whether it was verified and pinned |
Remarks
An unavailable engine, a malformed input or an interrupted stage leaves Complete False even when the invoice has no reported issues.
FullConformance is stricter than IsValid: it also requires complete rule coverage and a verified package.
See also
ValidateInvoiceBusinessRules, TPDFInvoiceValidationRequest, TPDFInvoiceStageResult