; Feldzuordnungen ZUGFeRD Version 1.0 basic

; ----------------------------------------------------------------------------------
; 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_Category
name=CategoryCode

#VatPart_Percent
name=ApplicablePercent

; ----------------------------------------------------------------------------------
; Zu- und Abschlaege werden nicht uebertragen
; ----------------------------------------------------------------------------------

; ----------------------------------------------------------------------------------
; Positionen werden nicht uebertragen, 
; daher werden die VatPart hier nochmals ausgewertet 
; ----------------------------------------------------------------------------------
#_Items
path=SpecifiedSupplyChainTradeTransaction/ApplicableSupplyChainTradeSettlement
name=ApplicableTradeTax
filterName=TypeCode
filterValue=VAT

#Item_Quantity
value=1

#Item_UnitCode
value=PSCH

#Item_NetAmount
name=BasisAmount

#Item_Description
value=Nettoanteil

#Item_VatCategory
name=CategoryCode

#Item_VatPercent
name=ApplicablePercent
