; Feldzuordnungen ZUGFeRD Version 1.0 extended

; ----------------------------------------------------------------------------------
; Allgemeine Angaben zum Dokument
; ----------------------------------------------------------------------------------

#Profile
path=ExchangedDocumentContext/GuidelineSpecifiedDocumentContextParameter
name=ID

#DocNumber
path=ExchangedDocument
name=ID

#DocName
path=ExchangedDocument
name=Name

#DocTypeCode
path=ExchangedDocument
name=TypeCode

#DocDate
path=ExchangedDocument
name=IssueDateTime/DateTimeString

#BuyerReference
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement/AdditionalReferencedDocument
pathFilterName=TypeCode
pathFilterValue=130
name=IssuerAssignedID

#BuyerOrderReference
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement/BuyerOrderReferencedDocument
name=IssuerAssignedID

; ----------------------------------------------------------------------------------
; Verkaeufer
; ----------------------------------------------------------------------------------
#_Seller
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement
name=SellerTradeParty

#Seller:ID
path=?#_Seller
name=ID

#Seller:Name
path=?#_Seller
name=Name

#Seller:Street
path=?#_Seller
name=PostalTradeAddress/LineOne

#Seller:ZipCode
path=?#_Seller
name=PostalTradeAddress/PostcodeCode

#Seller:City
path=?#_Seller
name=PostalTradeAddress/CityName

#Seller:Contact
path=?#_Seller
name=DefinedTradeContact/PersonName

#Seller:VatId
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement/SellerTradeParty/SpecifiedTaxRegistration
pathFilterName=ID/schemeID
pathFilterValue=VA
name=ID

; ----------------------------------------------------------------------------------
; Kunde
; ----------------------------------------------------------------------------------
#_Buyer
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement
name=BuyerTradeParty

#Buyer:ID
path=?#_Buyer
name=ID

#Buyer:Name
path=?#_Buyer
name=Name

#Buyer:Street
path=?#_Buyer
name=PostalTradeAddress/LineOne

#Buyer:ZipCode
path=?#_Buyer
name=PostalTradeAddress/PostcodeCode

#Buyer:City
path=?#_Buyer
name=PostalTradeAddress/CityName

#Buyer:Contact
path=?#_Buyer
name=DefinedTradeContact/PersonName

#Buyer:VatId
path=SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement/BuyerTradeParty/SpecifiedTaxRegistration
pathFilterName=ID/schemeID
pathFilterValue=VA
name=ID

; ----------------------------------------------------------------------------------
; Zahlungsbedingungen
; ----------------------------------------------------------------------------------
#_PaymentTerms
path=SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement
name=SpecifiedTradePaymentTerms

#DueDate
path=DueDateDateTime
name=DateTimeString

#PmntDiscDate
path=ApplicableTradePaymentDiscountTerms
name=BasisDateTime/DateTimeString

#PmntDiscBase
path=ApplicableTradePaymentDiscountTerms
name=BasisAmount

#PmntDiscPercent
path=ApplicableTradePaymentDiscountTerms
name=CalculationPercent

; ----------------------------------------------------------------------------------
; im Dokument uebertragene Gesamtsummen
; ----------------------------------------------------------------------------------
#_Summen
path=SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement
name=SpecifiedTradeSettlementHeaderMonetarySummation

#LineTotalAmount
path=?#_Summen
name=LineTotalAmount

#ChargeTotalAmount
path=?#_Summen
name=ChargeTotalAmount

#AllowanceTotalAmount
path=?#_Summen
name=AllowanceTotalAmount

#TaxBasisTotalAmount
path=?#_Summen
name=TaxBasisTotalAmount

#TaxTotalAmount
path=?#_Summen
name=TaxTotalAmount

#GrandTotalAmount
path=?#_Summen
name=GrandTotalAmount

#TotalPrepaidAmount
path=?#_Summen
name=TotalPrepaidAmount

#DuePayableAmount
path=?#_Summen
name=DuePayableAmount

; ----------------------------------------------------------------------------------
; Umsatzsteueranteile
; ----------------------------------------------------------------------------------
#_VatParts
path=SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement
name=ApplicableTradeTax
filterName=TypeCode
filterValue=VAT

#VatPart_BaseAmount
name=BasisAmount

#VatPart_VatAmount
name=CalculatedAmount

#VatPart_Percent
name=RateApplicablePercent

#VatPart_Category
name=CategoryCode

; ----------------------------------------------------------------------------------
; Zu- und Abschlaege
; ----------------------------------------------------------------------------------
#_Charges
path=SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement
name=SpecifiedTradeAllowanceCharge

#Charge_IsCharge
name=ChargeIndicator/Indicator

#Charge_NetAmount
name=ActualAmount

#Charge_Description
name=Reason

#Charge_VatCategory
path=CategoryTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=CategoryCode

#Charge_VatPercent
path=CategoryTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=RateApplicablePercent

; ----------------------------------------------------------------------------------
; Transportkosten
; ----------------------------------------------------------------------------------
#_LogisticCharges
path=SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement
name=SpecifiedLogisticsServiceCharge

#LogisticCharge_NetAmount
name=AppliedAmount

#LogisticCharge_Description
name=Description

#LogisticCharge_VatCategory
path=AppliedTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=CategoryCode

#LogisticCharge_VatPercent
path=AppliedTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=RateApplicablePercent

; ----------------------------------------------------------------------------------
; Positionen
; ----------------------------------------------------------------------------------
#_Items
path=SupplyChainTradeTransaction
name=IncludedSupplyChainTradeLineItem

#Item_No
name=AssociatedDocumentLineDocument/LineID

#Item_Quantity
name=SpecifiedLineTradeDelivery/BilledQuantity

#Item_UnitCode
name=SpecifiedLineTradeDelivery/BilledQuantity/unitCode

#Item_NetAmount
name=SpecifiedLineTradeSettlement/SpecifiedTradeSettlementLineMonetarySummation/LineTotalAmount

#Item_ProductNo
name=SpecifiedTradeProduct/SellerAssignedID

#Item_GlobalID
name=SpecifiedTradeProduct/GlobalID

#Item_Description
name=SpecifiedTradeProduct/Name

#Item_VatCategory
path=SpecifiedLineTradeSettlement/ApplicableTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=CategoryCode

#Item_VatPercent
path=SpecifiedLineTradeSettlement/ApplicableTradeTax
pathFilterName=TypeCode
pathFilterValue=VAT
name=RateApplicablePercent
