THPDFEInvoiceValidationReport Record
로드된 전자 인보이스 하나에 대해 Factur-X 컨테이너 판정과 Schematron 비즈니스 규칙 결과를 묶어 보여줍니다
선언
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;
유닛
HPDFEInvoiceValidator
필드
| 필드 | 목적 |
|---|---|
ContainerReport | THPDFFacturXValidationReport 타입의 전체 컨테이너 구조 보고서 |
ContainerValid | 내장된 인보이스 컨테이너에 대해 THotPDF.ValidateFacturXInvoice가 반환한 판정 |
BusinessRules | Schematron 엔진이 만든 THPDFBusinessRuleResults 타입의 규칙 결과 |
BusinessSummary | 엔진 실행을 기술하는 THPDFSchematronSummary |
BusinessRuleViolations | 실패한 assert와 발생한 report의 합계 |
BusinessRulesEvaluated | 엔진을 쓸 수 없거나 인보이스 XML을 추출하지 못했을 때 False |
RuleSets | 선택된 각 리소스의 버전, business 또는 country scope, 엔진 요약, 완료 상태 |
ProfileSupported | 선택된 registry에 감지된 프로파일용 business-rule 레이어가 들어 있을 때 True |
CountryRulesRequired | XRECHNUNG, EXTENDED-CTC-FR, EXTENDED-B2B-FR과 country-rule 레이어로 명시적으로 등록된 프로파일에서 True |
CountryRulesEvaluated | 등록된 country-rule 레이어가 건너뛴 검사나 평가 오류 없이 끝났을 때만 True |
ValidationComplete | business-rule 위반 발생 여부와 무관하게 필요한 규칙 레이어를 모두 평가했을 때 True |
ValidationNote | 누락된 country 규칙을 포함해 커버리지나 미완료 검증 사유를 명시적으로 설명 |
사용 참고 사항
HPDFValidateEInvoice가 채웁니다. 컨테이너 쪽은 항상 채워지고, 비즈니스 쪽은 XML을 추출할 수 있는 하이브리드 인보이스일 때만 채워집니다- 합산 판정은
ContainerValid가 True이고 규칙이 평가됐으며BusinessRuleViolations가 0일 때만 통과합니다 - 엔진이 없는 하이브리드 인보이스는 판정을 조용히 느슨하게 만드는 대신 fail closed로 실패합니다