; Feldzuordnungen XRechnung Version 3.0 extended

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

#DateFormat
value=120

#Profile
path=
name=ProfileID

#DocNumber
path=
name=ID

;#DocName
;path=ExchangedDocument
;name=Name

#DocTypeCode
path=
name=InvoiceTypeCode

#DocDate
path=
name=IssueDate

#BuyerReference
path=
name=BuyerReference

#BuyerOrderReference
path=
name=OrderReference/ID

; ----------------------------------------------------------------------------------
; Verkaeufer
; ----------------------------------------------------------------------------------
#_Seller
path=AccountingSupplierParty
name=Party

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

#Seller:Name
path=?#_Seller
name=PartyLegalEntity/RegistrationName

#Seller:Street
path=?#_Seller
name=PostalAddress/StreetName

#Seller:ZipCode
path=?#_Seller
name=PostalAddress/PostalZone

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

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

#Seller:VatId
path=AccountingSupplierParty/Party/PartyTaxScheme
pathFilterName=TaxScheme
ID=VAT
name=CompanyID

; ----------------------------------------------------------------------------------
; Kunde
; ----------------------------------------------------------------------------------
#_Buyer
path=AccountingCustomerParty
name=Party

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

#Buyer:Name
path=?#_Buyer
name=PartyLegalEntity/RegistrationName

#Buyer:Street
path=?#_Buyer
name=PostalAddress/StreetName

#Buyer:ZipCode
path=?#_Buyer
name=PostalAddress/PostalZone

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

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

#Buyer:VatId
path=AccountingCustomerParty/Party/PartyTaxScheme
pathFilterName=TaxScheme
ID=VAT
name=CompanyID

; ----------------------------------------------------------------------------------
; Zahlungsbedingungen
; ----------------------------------------------------------------------------------
#_PaymentTerms
path=
name=

#DueDate
path=
name=DueDate

;#PmntDiscDate
;path=ApplicableTradePaymentDiscountTerms
;name=BasisDateTime/DateTimeString

;#PmntDiscBase
;path=ApplicableTradePaymentDiscountTerms
;name=BasisAmount

;#PmntDiscPercent
;path=ApplicableTradePaymentDiscountTerms
;name=CalculationPercent

; ----------------------------------------------------------------------------------
; im Dokument uebertragene Gesamtsummen
; ----------------------------------------------------------------------------------
#_Summen
path=LegalMonetaryTotal
name=

#LineTotalAmount
path=?#_Summen
name=LineExtensionAmount

;#ChargeTotalAmount
;path=?#_Summen
;name=ChargeTotalAmount

;#AllowanceTotalAmount
;path=?#_Summen
;name=AllowanceTotalAmount

#TaxBasisTotalAmount
path=?#_Summen
name=TaxExclusiveAmount

#TaxTotalAmount
path=TaxTotal
name=TaxAmount

#GrandTotalAmount
path=?#_Summen
name=TaxInclusiveAmount

#TotalPrepaidAmount
path=?#_Summen
name=PrepaidAmount

#DuePayableAmount
path=?#_Summen
name=PayableAmount

; ----------------------------------------------------------------------------------
; Umsatzsteueranteile
; ----------------------------------------------------------------------------------
#_VatParts
path=TaxTotal
name=TaxSubtotal
filterName=TaxCategory/TaxScheme/ID
filterValue=VAT

#VatPart_BaseAmount
name=TaxableAmount

#VatPart_VatAmount
name=TaxAmount

#VatPart_Percent
name=TaxCategory/Percent

#VatPart_Category
name=TaxCategory/ID

; ----------------------------------------------------------------------------------
; Zu- und Abschlaege
; ----------------------------------------------------------------------------------
#_Charges
path=
name=AllowanceCharge

#Charge_IsCharge
name=ChargeIndicator

#Charge_NetAmount
name=Amount

#Charge_Description
name=AllowanceChargeReason

#Charge_VatCategory
path=TaxCategory
pathFilterName=TaxScheme/ID
pathFilterValue=VAT
name=ID

#Charge_VatPercent
path=TaxCategory
pathFilterName=TaxScheme/ID
pathFilterValue=VAT
name=Percent

; ----------------------------------------------------------------------------------
; 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=
name=InvoiceLine

#Item_No
name=ID

#Item_Quantity
name=InvoicedQuantity

#Item_UnitCode
name=InvoicedQuantity/unitCode

;#Item_ChargeAmount
;name=SpecifiedLineTradeAgreement/NetPriceProductTradePrice/ChargeAmount

;#Item_BasisQuantity
;name=SpecifiedLineTradeAgreement/NetPriceProductTradePrice/BasisQuantity

#Item_NetAmount
name=LineExtensionAmount

;#Item_ProductNo
;name=SpecifiedTradeProduct/SellerAssignedID

;#Item_GlobalID
;name=SpecifiedTradeProduct/GlobalID

#Item_Description
name=Item/Name

#Item_VatCategory
path=Item/ClassifiedTaxCategory
pathFilterName=TaxScheme/ID
pathFilterValue=VAT
name=ID
;filterName=../TypeCode
;filterValue=VAT

#Item_VatPercent
path=Item/ClassifiedTaxCategory
pathFilterName=TaxScheme/ID
pathFilterValue=VAT
name=Percent
