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

RulesEffective rule set after any package resolution
CompleteTrue when every requested stage executed and returned a complete result
IsValidTrue when the completed run found no error or fatal issue
FullConformanceTrue when the invoice is valid, no requested stage left uncovered areas, and the rules came from a verified rule package
SchemaResult of the XML Schema stage
SchematronResult of the Schematron business-rule stage
PackageResolved 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