THPDFFacturXInvoiceInfo Record
Beskriver den Factur-X- eller ZUGFeRD-faktura som är inbäddad i ett inläst dokument: bilagefilnamn, XMP-metadatavärden, profilidentifierare, MIME-typ samt kompletterande UBL- och EDIFACT-representationsfilnamn
Deklaration
THPDFFacturXInvoiceInfo= record
FileName: AnsiString;
XMPDocumentFileName: AnsiString;
XMPNamespaceURI: AnsiString;
DocumentType: AnsiString;
Version: AnsiString;
ConformanceLevel: AnsiString;
GuidelineID: AnsiString;
AFRelationship: AnsiString;
AttachmentMimeType: AnsiString;
// Supplementary UBL representation file name ('factur-xubl.xml') when the
// document embeds a UBL view alongside the primary CII invoice per
// Factur-X 1.09 spec 6.4; empty when no UBL attachment is present. UBL is
// a supplementary representation, never the primary invoice XML
UBLFileName: AnsiString;
// Supplementary EDIFACT representation file name ('factur-xedifact.edi')
// when the document embeds an EDIFACT view alongside the primary CII
// invoice per Factur-X 1.09 spec 6.4; empty when no EDIFACT attachment is
// present. Like UBL it is a supplementary representation, never the
// primary invoice XML
EDIFACTFileName: AnsiString;
end;
Enhet
HPDFDoc
Fält
| Fält | Syfte |
|---|---|
FileName | Namnet på den fakturabilaga som faktiskt hittades: XMP DocumentFileName när den kan lösas upp, annars ett av factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml |
XMPDocumentFileName | fx:DocumentFileName-texten läst från dokumentets XMP-metadata |
XMPNamespaceURI | Namespace-URI:n för DocumentFileName-elementet i XMP-metadatan |
DocumentType | XMP DocumentType-värdet; fakturadokument bär INVOICE |
Version | XMP Version-värdet för Factur-X-profilen |
ConformanceLevel | XMP ConformanceLevel-värdet för Factur-X-profilen |
GuidelineID | Riktlinjeidentifierare (URN) läst från den inbäddade CII-XML:ns ExchangedDocumentContext |
AFRelationship | /AFRelationship-posten i fakturans fils specification, till exempel Data eller Alternative |
AttachmentMimeType | MIME-typen för den inbäddade fakturafilen |
UBLFileName | Fasta namnet factur-xubl.xml när en kompletterande UBL-representation är inbäddad; annars tomt |
EDIFACTFileName | Fasta namnet factur-xedifact.edi när en kompletterande EDIFACT-representation är inbäddad; annars tomt |
Användningsanteckningar
- Fylls av
THotPDF.DetectFacturXInvoice; tomma fält betyder att motsvarande element saknades, och ettfalse-resultat lämnar partiell metadata för diagnostik - Läs
UBLFileNameochEDIFACTFileNameendast för rapportering: de namnger kompletterande representationer, aldrig den primära faktura-XML:en - Återanvänd recorden med
THotPDF.ExtractFacturXXMLeller mata den tillTHotPDF.ValidateFacturXInvoice, som fyller sin egen rapport och bäddar in denna record iInfo