THPDFFacturXInvoiceInfo Record
Mô tả hóa đơn Factur-X hoặc ZUGFeRD nhúng trong một tài liệu đã tải: tên tệp attachment, giá trị metadata XMP, định danh profile, MIME type, và tên tệp biểu diễn UBL cùng EDIFACT bổ sung
Khai báo
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;
Đơn vị
HPDFDoc
Các trường
| Trường | Mục đích |
|---|---|
FileName | Tên attachment hóa đơn nhúng thực tìm thấy: XMP DocumentFileName khi phân giải được, nếu không thì một trong factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml |
XMPDocumentFileName | Văn bản fx:DocumentFileName đọc từ metadata XMP của tài liệu |
XMPNamespaceURI | Namespace URI của phần tử DocumentFileName trong metadata XMP |
DocumentType | Giá trị XMP DocumentType; các tài liệu hóa đơn mang INVOICE |
Version | Giá trị XMP Version của profile Factur-X |
ConformanceLevel | Giá trị XMP ConformanceLevel của profile Factur-X |
GuidelineID | Định danh guideline (URN) đọc từ ExchangedDocumentContext của XML CII nhúng |
AFRelationship | /AFRelationship entry of the invoice file specification, such as Data or Alternative |
AttachmentMimeType | MIME type của tệp hóa đơn nhúng |
UBLFileName | Tên cố định factur-xubl.xml khi một biểu diễn UBL bổ sung được nhúng; rỗng nếu ngược lại |
EDIFACTFileName | Tên cố định factur-xedifact.edi khi một biểu diễn EDIFACT bổ sung được nhúng; rỗng nếu ngược lại |
Ghi chú sử dụng
- Được điền bởi
THotPDF.DetectFacturXInvoice; các trường rỗng nghĩa là phần tử tương ứng vắng mặt, và kết quảfalsevẫn để lại metadata một phần để chẩn đoán - Đọc
UBLFileNamevàEDIFACTFileNamechỉ để báo cáo: chúng gọi tên các biểu diễn bổ sung, không bao giờ là XML hóa đơn chính - Dùng lại record với
THotPDF.ExtractFacturXXMLhoặc nạp nó choTHotPDF.ValidateFacturXInvoice, phương thức này tự điền report của mình và nhúng record này vàoInfo