; Feldzuordnungen ZUGFeRD Version 1.0 extended

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

#Profile
path=SpecifiedExchangedDocumentContext/GuidelineSpecifiedDocumentContextParameter
name=ID

#DocNumber
path=HeaderExchangedDocument
name=ID

#DocName
path=HeaderExchangedDocument
name=Name

#DocTypeCode
path=HeaderExchangedDocument
name=TypeCode

#DocDate
path=HeaderExchangedDocument
name=IssueDateTime/DateTimeString

#BuyerReference
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement
name=BuyerReference

#BuyerOrderReference
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement
name=BuyerOrderReferencedDocument/ID

; ----------------------------------------------------------------------------------
; Verkaeufer
; ----------------------------------------------------------------------------------
#_Seller
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement
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=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement/SellerTradeParty/SpecifiedTaxRegistration
pathFilterName=ID/schemeID
pathFilterValue=VA
name=ID

; ----------------------------------------------------------------------------------
; Kunde
; ----------------------------------------------------------------------------------
#_Buyer
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement
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=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeAgreement/BuyerTradeParty/SpecifiedTaxRegistration
pathFilterName=ID/schemeID
pathFilterValue=VA
name=ID

; ----------------------------------------------------------------------------------
; Zahlungsbedingungen
; ----------------------------------------------------------------------------------
#_PaymentTerms
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeSettlement
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=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeSettlement
name=SpecifiedTradeSettlementMonetarySummation

#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=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeSettlement
name=ApplicableTradeTax
filterName=TypeCode
filterValue=VAT

#VatPart_BaseAmount
name=BasisAmount

#VatPart_VatAmount
name=CalculatedAmount

#VatPart_Percent
name=ApplicablePercent

#VatPart_Category
name=CategoryCode

; ----------------------------------------------------------------------------------
; Zu- und Abschlaege
; ----------------------------------------------------------------------------------
#_Charges
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeSettlement
name=SpecifiedTradeAllowanceCharge

#Charge_IsCharge
name=ChargeIndicator/Indicator

#Charge_NetAmount
name=ActualAmount

#Charge_Description
name=Reason

#Charge_VatCategory
name=CategoryTradeTax/CategoryCode
;filterName=../TypeCode
;filterValue=VAT

#Charge_VatPercent
name=CategoryTradeTax/ApplicablePercent
;filterName=../TypeCode
;filterValue=VAT

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

#Item_Quantity
name=SpecifiedSupplyChainTradeDelivery/BilledQuantity

#Item_UnitCode
name=SpecifiedSupplyChainTradeDelivery/BilledQuantity/unitCode

#Item_NetAmount
name=SpecifiedSupplyChainTradeSettlement/SpecifiedTradeSettlementMonetarySummation/LineTotalAmount

#Item_ProductNo
name=SpecifiedTradeProduct/SellerAssignedID

#Item_Description
name=SpecifiedTradeProduct/Name

#Item_VatCategory
name=SpecifiedSupplyChainTradeSettlement/ApplicableTradeTax/CategoryCode
;filterName=../TypeCode
;filterValue=VAT

#Item_VatPercent
name=SpecifiedSupplyChainTradeSettlement/ApplicableTradeTax/ApplicablePercent
;filterName=../TypeCode
;filterValue=VAT
