THPDFEInvoiceValidationReport Record

Combines the Factur-X container verdict with the Schematron business-rule outcome for one loaded electronic invoice

Declaration

THPDFEInvoiceValidationReport= record
  ContainerReport: THPDFFacturXValidationReport;
  ContainerValid: Boolean;
  BusinessRules: THPDFBusinessRuleResults;
  BusinessSummary: THPDFSchematronSummary;
  BusinessRuleViolations: Integer;   // asserts failed + reports fired
  BusinessRulesEvaluated: Boolean;   // False when engine unavailable
  RuleSets: THPDFEInvoiceRuleSetReports;
  ProfileSupported: Boolean;
  CountryRulesRequired: Boolean;
  CountryRulesEvaluated: Boolean;
  ValidationComplete: Boolean;
  ValidationNote: AnsiString;
end;

Unit

HPDFEInvoiceValidator

Fields

FieldPurpose
ContainerReportFull container-structure report of type THPDFFacturXValidationReport
ContainerValidVerdict returned by THotPDF.ValidateFacturXInvoice for the embedded invoice container
BusinessRulesRule results of type THPDFBusinessRuleResults produced by the Schematron engine
BusinessSummaryTHPDFSchematronSummary describing the engine run
BusinessRuleViolationsCount of failed asserts plus fired reports
BusinessRulesEvaluatedFalse when the engine is unavailable or the invoice XML could not be extracted
RuleSetsEach selected resource's version, business or country scope, engine summary, and completion status
ProfileSupportedTrue when the selected registry contains a business-rule layer for the detected profile
CountryRulesRequiredTrue for XRECHNUNG, EXTENDED-CTC-FR, EXTENDED-B2B-FR, and any profile explicitly registered with a country-rule layer
CountryRulesEvaluatedTrue only when the registered country-rule layer finished with no skipped checks or evaluation errors
ValidationCompleteAll required rule layers were evaluated, regardless of whether they produced business-rule violations
ValidationNoteExplicit coverage or incomplete-validation explanation, including missing country rules

Usage notes

Related APIs