CreateZUGFeRDMetadata Method

CreateZUGFeRDMetadata Method

Create XMP data for ZUGFeRD.

Object.CreateZUGFeRDMetadata(lcConformanceLevel, lcDocumentType, lcVersion)

Parameters

lcConformanceLevel

 The profile of the XML invoice data used in accordance with the specifications (possible value: MINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED, XRECHNUNG).

lcDocumentType

 The document type always contains the value INVOICE.

lcVersion

 XML schema version for invoice data.

Version
Conformance Level
1ZUGFeRDBASIC, COMFORT, EXTENDED
2ZUGFeRDMINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED
2.1ZUGFeRD/Factur-XMINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED
2.1X-RechnungXRECHNUNG

Remarks

Applies to: Attachment

XFRX version: 17.3

Examples

LOCAL m.lnErr, m.loFile, m.loSession
m.loSession=EVALUATE([xfrx("XFRX#INIT")])
m.lnErr=m.loSession.SetParams("some.pdf",,,,.T.,,"PDF")
m.loSession.setpdfa(.T., "3B")
IF m.lnErr=0
   * Relation type must be "Alternative"
   m.loFile=m.loSession.addAttachment("ZUGFeRD-invoice.xml", .T., "Rechnungsdaten im ZUGFeRD-XML-Format", "text/xml", "Alternative")
   m.loFile.CreateZUGFeRDMetadata("BASIC", "INVOICE", "1.0") && if you use PDFA

   m.loSession.ProcessReport("report.frx")
ENDIF