Skip to main content
Skip table of contents

TbeZUGFeRDData

TbeZUGFeRDData

Objekt zur Steuerung von ZUGFeRD-Daten.

Rot markierte Eigenschaften sind Pflichtfelder!

Eigenschaften

Beschreibung

XML:C

XML als Text

ConformanceLevel:N

ConformanceLevel für ZUGFeRD

pdfZFBasic, pdfZFComfort, pdfZFExtended

XMP_Schema:C

XMP Schema für das PDF als Text. Mit Standardwert vorbelegt.

XMP_Info:C

XMP Metadaten als Text. Mit Standardwert vorbelegt.

XML_FileName:C

Name der angehängten XML-Datei

Beispiel

CODE
|o, data|

o := CreateObject('TbeCbDocumentArchive'),
startseq
   data := CreateObject('TbeZUGFeRDData'),
   data.XMP_Schema       := '<rsm:etwas/>',
   data.XMP_Info         := '<rsm:etwas>nichts</etwas>',
   data.ConformanceLevel := pdfZFBasic,
   data.XML              := '<?xml version="1.0" encoding="UTF-8"?>' + CRLF +
   '<rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">' + CRLF +
   ' <rsm:ExchangedDocumentContext>' + CRLF +
   '  <ram:BusinessProcessSpecifiedDocumentContextParameter>' + CRLF +
   '   <ram:ID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ram:ID>' + CRLF +
   '  </ram:BusinessProcessSpecifiedDocumentContextParameter>' + CRLF +
   '  <ram:GuidelineSpecifiedDocumentContextParameter>' + CRLF +
   '   <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>' + CRLF +
   '  </ram:GuidelineSpecifiedDocumentContextParameter>' + CRLF +
   ' </rsm:ExchangedDocumentContext>' + CRLF +
   ' <rsm:ExchangedDocument>' + CRLF +
   '  <ram:ID>500041</ram:ID>' + CRLF +
   '  <ram:TypeCode>380</ram:TypeCode>' + CRLF +
   '  <ram:IssueDateTime>' + CRLF +
   '   <udt:DateTimeString format="102">20240920</udt:DateTimeString>' + CRLF +
   '  </ram:IssueDateTime>' + CRLF +
   ' </rsm:ExchangedDocument>' + CRLF +
   ' <rsm:SupplyChainTradeTransaction>' + CRLF +
   '  <ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '   <ram:AssociatedDocumentLineDocument>' + CRLF +
   '    <ram:LineID>1</ram:LineID>' + CRLF +
   '    <ram:IncludedNote>' + CRLF +
   '     <ram:Content>Dieser Deckel passt optimal auf unseren Topf B-1.&#13;' + CRLF +
   '&#13;' + CRLF +
   'LS-Nr./Lieferscheindatum: 300012 / 29.03.2011</ram:Content>' + CRLF +
   '    </ram:IncludedNote>' + CRLF +
   '   </ram:AssociatedDocumentLineDocument>' + CRLF +
   '   <ram:SpecifiedTradeProduct>' + CRLF +
   '    <ram:SellerAssignedID>B-2                 </ram:SellerAssignedID>' + CRLF +
   '    <ram:Name>Deckel Edelstahl, ohne Topf</ram:Name>' + CRLF +
   '   </ram:SpecifiedTradeProduct>' + CRLF +
   '   <ram:SpecifiedLineTradeAgreement>' + CRLF +
   '    <ram:NetPriceProductTradePrice>' + CRLF +
   '     <ram:ChargeAmount>15.00</ram:ChargeAmount>' + CRLF +
   '    </ram:NetPriceProductTradePrice>' + CRLF +
   '   </ram:SpecifiedLineTradeAgreement>' + CRLF +
   '   <ram:SpecifiedLineTradeDelivery>' + CRLF +
   '    <ram:BilledQuantity unitCode="XPP">1</ram:BilledQuantity>' + CRLF +
   '   </ram:SpecifiedLineTradeDelivery>' + CRLF +
   '   <ram:SpecifiedLineTradeSettlement>' + CRLF +
   '    <ram:ApplicableTradeTax>' + CRLF +
   '     <ram:TypeCode>VAT</ram:TypeCode>' + CRLF +
   '     <ram:CategoryCode>S</ram:CategoryCode>' + CRLF +
   '     <ram:RateApplicablePercent>7</ram:RateApplicablePercent>' + CRLF +
   '    </ram:ApplicableTradeTax>' + CRLF +
   '    <ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '     <ram:LineTotalAmount>15.00</ram:LineTotalAmount>' + CRLF +
   '    </ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '   </ram:SpecifiedLineTradeSettlement>' + CRLF +
   '  </ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '  <ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '   <ram:AssociatedDocumentLineDocument>' + CRLF +
   '    <ram:LineID>2</ram:LineID>' + CRLF +
   '    <ram:IncludedNote>' + CRLF +
   '     <ram:Content>Dieser Deckel passt optimal auf unseren Topf B-1.&#13;' + CRLF +
   '&#13;' + CRLF +
   'LS-Nr./Lieferscheindatum: 300012 / 29.03.2011</ram:Content>' + CRLF +
   '    </ram:IncludedNote>' + CRLF +
   '   </ram:AssociatedDocumentLineDocument>' + CRLF +
   '   <ram:SpecifiedTradeProduct>' + CRLF +
   '    <ram:SellerAssignedID>B-2                 </ram:SellerAssignedID>' + CRLF +
   '    <ram:Name>Deckel Edelstahl, ohne Topf</ram:Name>' + CRLF +
   '   </ram:SpecifiedTradeProduct>' + CRLF +
   '   <ram:SpecifiedLineTradeAgreement>' + CRLF +
   '    <ram:NetPriceProductTradePrice>' + CRLF +
   '     <ram:ChargeAmount>15.00</ram:ChargeAmount>' + CRLF +
   '    </ram:NetPriceProductTradePrice>' + CRLF +
   '   </ram:SpecifiedLineTradeAgreement>' + CRLF +
   '   <ram:SpecifiedLineTradeDelivery>' + CRLF +
   '    <ram:BilledQuantity unitCode="XPP">2</ram:BilledQuantity>' + CRLF +
   '   </ram:SpecifiedLineTradeDelivery>' + CRLF +
   '   <ram:SpecifiedLineTradeSettlement>' + CRLF +
   '    <ram:ApplicableTradeTax>' + CRLF +
   '     <ram:TypeCode>VAT</ram:TypeCode>' + CRLF +
   '     <ram:CategoryCode>S</ram:CategoryCode>' + CRLF +
   '     <ram:RateApplicablePercent>7</ram:RateApplicablePercent>' + CRLF +
   '    </ram:ApplicableTradeTax>' + CRLF +
   '    <ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '     <ram:LineTotalAmount>30.00</ram:LineTotalAmount>' + CRLF +
   '    </ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '   </ram:SpecifiedLineTradeSettlement>' + CRLF +
   '  </ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '  <ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '   <ram:AssociatedDocumentLineDocument>' + CRLF +
   '    <ram:LineID>3</ram:LineID>' + CRLF +
   '    <ram:IncludedNote>' + CRLF +
   '     <ram:Content>Dieser Deckel passt optimal auf unseren Topf B-1.&#13;' + CRLF +
   '&#13;' + CRLF +
   'LS-Nr./Lieferscheindatum: 300012 / 29.03.2011</ram:Content>' + CRLF +
   '    </ram:IncludedNote>' + CRLF +
   '   </ram:AssociatedDocumentLineDocument>' + CRLF +
   '   <ram:SpecifiedTradeProduct>' + CRLF +
   '    <ram:SellerAssignedID>B-2                 </ram:SellerAssignedID>' + CRLF +
   '    <ram:Name>Deckel Edelstahl, ohne Topf</ram:Name>' + CRLF +
   '   </ram:SpecifiedTradeProduct>' + CRLF +
   '   <ram:SpecifiedLineTradeAgreement>' + CRLF +
   '    <ram:NetPriceProductTradePrice>' + CRLF +
   '     <ram:ChargeAmount>15.00</ram:ChargeAmount>' + CRLF +
   '    </ram:NetPriceProductTradePrice>' + CRLF +
   '   </ram:SpecifiedLineTradeAgreement>' + CRLF +
   '   <ram:SpecifiedLineTradeDelivery>' + CRLF +
   '    <ram:BilledQuantity unitCode="XPP">3</ram:BilledQuantity>' + CRLF +
   '   </ram:SpecifiedLineTradeDelivery>' + CRLF +
   '   <ram:SpecifiedLineTradeSettlement>' + CRLF +
   '    <ram:ApplicableTradeTax>' + CRLF +
   '     <ram:TypeCode>VAT</ram:TypeCode>' + CRLF +
   '     <ram:CategoryCode>S</ram:CategoryCode>' + CRLF +
   '     <ram:RateApplicablePercent>7</ram:RateApplicablePercent>' + CRLF +
   '    </ram:ApplicableTradeTax>' + CRLF +
   '    <ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '     <ram:LineTotalAmount>45.00</ram:LineTotalAmount>' + CRLF +
   '    </ram:SpecifiedTradeSettlementLineMonetarySummation>' + CRLF +
   '   </ram:SpecifiedLineTradeSettlement>' + CRLF +
   '  </ram:IncludedSupplyChainTradeLineItem>' + CRLF +
   '  <ram:ApplicableHeaderTradeAgreement>' + CRLF +
   '   <ram:SellerTradeParty>' + CRLF +
   '    <ram:Name>Test GmbH &amp; Co. KG</ram:Name>' + CRLF +
   '    <ram:Description>Geschaeftsfuehrer: xxx, Sitz der Gesellschaft: xxx</ram:Description>' + CRLF +
   '    <ram:SpecifiedLegalOrganization>' + CRLF +
   '     <ram:ID>HRB 1234</ram:ID>' + CRLF +
   '    </ram:SpecifiedLegalOrganization>' + CRLF +
   '    <ram:DefinedTradeContact>' + CRLF +
   '     <ram:PersonName>Max Mustermann</ram:PersonName>' + CRLF +
   '     <ram:TelephoneUniversalCommunication>' + CRLF +
   '      <ram:CompleteNumber>089 12345678</ram:CompleteNumber>' + CRLF +
   '     </ram:TelephoneUniversalCommunication>' + CRLF +
   '     <ram:EmailURIUniversalCommunication>' + CRLF +
   '      <ram:URIID>max.Mustermann@testAG.de</ram:URIID>' + CRLF +
   '     </ram:EmailURIUniversalCommunication>' + CRLF +
   '    </ram:DefinedTradeContact>' + CRLF +
   '    <ram:PostalTradeAddress>' + CRLF +
   '     <ram:PostcodeCode>80331</ram:PostcodeCode>' + CRLF +
   '     <ram:LineOne>Sonnenstr. 8</ram:LineOne>' + CRLF +
   '     <ram:CityName>Muenchen</ram:CityName>' + CRLF +
   '     <ram:CountryID>DE</ram:CountryID>' + CRLF +
   '    </ram:PostalTradeAddress>' + CRLF +
   '    <ram:URIUniversalCommunication>' + CRLF +
   '     <ram:URIID schemeID="EM">max.Mustermann@testAG.de</ram:URIID>' + CRLF +
   '    </ram:URIUniversalCommunication>' + CRLF +
   '    <ram:SpecifiedTaxRegistration>' + CRLF +
   '     <ram:ID schemeID="VA">DE34512956789</ram:ID>' + CRLF +
   '    </ram:SpecifiedTaxRegistration>' + CRLF +
   '   </ram:SellerTradeParty>' + CRLF +
   '   <ram:BuyerTradeParty>' + CRLF +
   '    <ram:ID>10001</ram:ID>' + CRLF +
   '    <ram:Name>Rech1 Rech2 Rech3</ram:Name>' + CRLF +
   '    <ram:PostalTradeAddress>' + CRLF +
   '     <ram:PostcodeCode>12345</ram:PostcodeCode>' + CRLF +
   '     <ram:LineOne>Strasse Rech</ram:LineOne>' + CRLF +
   '     <ram:CityName>Ort Rech</ram:CityName>' + CRLF +
   '     <ram:CountryID>DE</ram:CountryID>' + CRLF +
   '    </ram:PostalTradeAddress>' + CRLF +
   '    <ram:URIUniversalCommunication/>' + CRLF +
   '   </ram:BuyerTradeParty>' + CRLF +
   '   <ram:SellerOrderReferencedDocument>' + CRLF +
   '    <ram:IssuerAssignedID>100020</ram:IssuerAssignedID>' + CRLF +
   '   </ram:SellerOrderReferencedDocument>' + CRLF +
   '  </ram:ApplicableHeaderTradeAgreement>' + CRLF +
   '  <ram:ApplicableHeaderTradeDelivery>' + CRLF +
   '   <ram:ShipToTradeParty>' + CRLF +
   '    <ram:Name>Liefer1 Liefer2 Liefer3</ram:Name>' + CRLF +
   '    <ram:PostalTradeAddress>' + CRLF +
   '     <ram:PostcodeCode>12345</ram:PostcodeCode>' + CRLF +
   '     <ram:LineOne>Strasse Liefer</ram:LineOne>' + CRLF +
   '     <ram:CityName>Ort Liefer</ram:CityName>' + CRLF +
   '     <ram:CountryID>DE</ram:CountryID>' + CRLF +
   '    </ram:PostalTradeAddress>' + CRLF +
   '   </ram:ShipToTradeParty>' + CRLF +
   '  </ram:ApplicableHeaderTradeDelivery>' + CRLF +
   '  <ram:ApplicableHeaderTradeSettlement>' + CRLF +
   '   <ram:PaymentReference>500041</ram:PaymentReference>' + CRLF +
   '   <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>' + CRLF +
   '   <ram:SpecifiedTradeSettlementPaymentMeans>' + CRLF +
   '    <ram:TypeCode>58</ram:TypeCode>' + CRLF +
   '    <ram:PayeePartyCreditorFinancialAccount>' + CRLF +
   '     <ram:IBANID>DE02100100100006820101</ram:IBANID>' + CRLF +
   '     <ram:AccountName>Test AG</ram:AccountName>' + CRLF +
   '    </ram:PayeePartyCreditorFinancialAccount>' + CRLF +
   '   </ram:SpecifiedTradeSettlementPaymentMeans>' + CRLF +
   '   <ram:SpecifiedTradeSettlementPaymentMeans>' + CRLF +
   '    <ram:TypeCode>58</ram:TypeCode>' + CRLF +
   '    <ram:PayeePartyCreditorFinancialAccount>' + CRLF +
   '     <ram:IBANID>DE02500105170137075030</ram:IBANID>' + CRLF +
   '     <ram:AccountName>Test AG</ram:AccountName>' + CRLF +
   '    </ram:PayeePartyCreditorFinancialAccount>' + CRLF +
   '   </ram:SpecifiedTradeSettlementPaymentMeans>' + CRLF +
   '   <ram:ApplicableTradeTax>' + CRLF +
   '    <ram:CalculatedAmount>17.10</ram:CalculatedAmount>' + CRLF +
   '    <ram:TypeCode>VAT</ram:TypeCode>' + CRLF +
   '    <ram:BasisAmount>90.00</ram:BasisAmount>' + CRLF +
   '    <ram:CategoryCode>S</ram:CategoryCode>' + CRLF +
   '    <ram:RateApplicablePercent>19</ram:RateApplicablePercent>' + CRLF +
   '   </ram:ApplicableTradeTax>' + CRLF +
   '   <ram:SpecifiedTradePaymentTerms>' + CRLF +
   '    <ram:DueDateDateTime>' + CRLF +
   '     <udt:DateTimeString format="102">20240920</udt:DateTimeString>' + CRLF +
   '    </ram:DueDateDateTime>' + CRLF +
   '   </ram:SpecifiedTradePaymentTerms>' + CRLF +
   '   <ram:SpecifiedTradeSettlementHeaderMonetarySummation>' + CRLF +
   '    <ram:LineTotalAmount>90.00</ram:LineTotalAmount>' + CRLF +
   '    <ram:TaxBasisTotalAmount>90.00</ram:TaxBasisTotalAmount>' + CRLF +
   '    <ram:TaxTotalAmount currencyID="EUR">17.10</ram:TaxTotalAmount>' + CRLF +
   '    <ram:GrandTotalAmount>107.10</ram:GrandTotalAmount>' + CRLF +
   '    <ram:DuePayableAmount>107.10</ram:DuePayableAmount>' + CRLF +
   '   </ram:SpecifiedTradeSettlementHeaderMonetarySummation>' + CRLF +
   '  </ram:ApplicableHeaderTradeSettlement>' + CRLF +
   ' </rsm:SupplyChainTradeTransaction>' + CRLF +
   '</rsm:CrossIndustryInvoice>',

   o.ExportInvoiceAsPDFWithZUGFeRD(36, 'C:\temp\invoice2.pdf', data),
always
   DestroyObject(data),
   DestroyObject(o),
stopseq,

Weitere Verknüpfungen

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.