CreateFACTURXMetadata Method

Create XMP data for Factur-X.

Object.CreateFACTURXMetadata(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).

lcDocumentType

 The document type always contains the value INVOICE.

lcVersion

 XML schema version for invoice data.

Remarks

XFRX version: 19.0

Examples

LOCAL m.lnErr, m.loFile
m.loXFRX=EVALUATE([xfrx("XFRX#INIT")])
m.lnErr=m.loXFRX.SetParams("some.pdf",,,,.T.,,"PDF")
IF m.lnErr=0
   * Relation type must be "Alternative"
   m.loFile=loSession.addAttachment("FacturX-invoice.xml",.T.,"Données de facturation FacturX XML-Format","text/xml","Alternative")
   m.loFile.CreateFACTURXMetadata("BASIC", "INVOICE", "1.0") && if you use PDFA
ENDIF