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
| Field | Purpose |
|---|---|
ContainerReport | Full container-structure report of type THPDFFacturXValidationReport |
ContainerValid | Verdict returned by THotPDF.ValidateFacturXInvoice for the embedded invoice container |
BusinessRules | Rule results of type THPDFBusinessRuleResults produced by the Schematron engine |
BusinessSummary | THPDFSchematronSummary describing the engine run |
BusinessRuleViolations | Count of failed asserts plus fired reports |
BusinessRulesEvaluated | False when the engine is unavailable or the invoice XML could not be extracted |
RuleSets | Each selected resource's version, business or country scope, engine summary, and completion status |
ProfileSupported | True when the selected registry contains a business-rule layer for the detected profile |
CountryRulesRequired | True for XRECHNUNG, EXTENDED-CTC-FR, EXTENDED-B2B-FR, and any profile explicitly registered with a country-rule layer |
CountryRulesEvaluated | True only when the registered country-rule layer finished with no skipped checks or evaluation errors |
ValidationComplete | All required rule layers were evaluated, regardless of whether they produced business-rule violations |
ValidationNote | Explicit coverage or incomplete-validation explanation, including missing country rules |
Usage notes
- Filled by
HPDFValidateEInvoice; the container half is always populated, the business half only for hybrid invoices with extractable XML - The combined verdict passes only when
ContainerValidis True, rules were evaluated, andBusinessRuleViolationsis zero - A hybrid invoice with a missing engine fails closed rather than silently weakening the verdict