#LOCAL("DisplayDiscount", 0) #IF(NOT #IsTest AND #LineItemContainer.HasDiscounts) #SET("DisplayDiscount", 1) #ENDIF #LOCAL("DisplayTaxRate", 0) #IF(NOT #IsTest) #WITH(#LineItemContainer)#WITH_LANGUAGE(#LanguageID) #IF(#DisplayTaxAreaAndRate(#BasketOrOrder.Object)) #SET("DisplayTaxRate", 1) #ENDIF #ENDWITH_LANGUAGE#ENDWITH #ENDIF #IF(#DisplayTaxRate) #ENDIF #IF(#DisplayDiscount) #ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#DisplayDiscount) #ENDIF #IF(#IsTest)
{Position} {Name} {Quantity} {BasePriceAbr}{TaxRate}{Discount}{LineItemPriceLong}
       
{LineItemsSubTotal}:
{ShippingMethod}:
{PaymentMethod}:
{TotalBeforeTax}:
{TotalTax}:
{GrandTotal}:
#ELSE #WITH(#LineItemContainer)#WITH_LANGUAGE(#LanguageID) #LOCAL("LineItemNo", 0) #LOOP(#LineItems) #INCLUDE("ContentLine") #ENDLOOP #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {LineItemsSubTotal} #LineItemsSubTotal[money] #LOOP(#SalesDiscounts) #IF(NOT (#CouponCode.CouponCampaign.UseCouponOnlyForSelectedProducts)) #INCLUDE("ContentLine") #ENDIF #ENDLOOP #LOOP(#Discounts) #INCLUDE("ContentLine") #ENDLOOP #IF(#Shipping)#WITH(#Shipping) #INCLUDE("ContentLine") #ENDWITH#ENDIF #IF(#Payment)#WITH(#Payment) #INCLUDE("ContentLine") #ENDWITH#ENDIF #IF(#DEFINED(#PaymentDiscount))#WITH(#PaymentDiscount) #INCLUDE("ContentLine") #ENDWITH#ENDIF #LOOP(#Statics) #INCLUDE("ContentLine") #ENDLOOP #LOCAL("IsEUAddress",1) #LOCAL("Address",0) #IF(#Parent.ShippingAddress) #SET("Address",#Parent.ShippingAddress) #ELSE #IF(#DEFINED(#Parent.BillingAddress)) #SET("Address",#Parent.BillingAddress) #ELSIF(#DEFINED(#Parent.Address)) #SET("Address",#Parent.Address) #ENDIF #ENDIF #WITH(#Address) #IF(NOT #IsEU) #SET("IsEUAddress",0) #ENDIF #ENDWITH #LOCAL("EmptyTaxLineItem",0) #LOCAL("CountryName","") #IF(#Shop.DeliveryThresholdIsActive) #IF(#Address.Country.Native EQ #Address.Country.English) #SET("CountryName", #Address.Country.Native) #ELSE #SET("CountryName", #Address.Country.Native." (".#Address.Country.English.")") #ENDIF #ENDIF #IF(#COUNT(#TaxesDigital)) #LOOP(#Shop.ShopCountries) #IF(#CountryID EQ #TaxAreaDigital.CountryID) #SET("CountryName",#Native) #ENDIF #ENDLOOP #ENDIF #IF(#TaxModel) #REM#ENDREM #IF(NOT #Shop.VATreleased) #REM#ENDREM #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxArea}#IF(#Shop.DeliveryThresholdIsActive AND #IsEUAddress AND (NOT #COUNT(#TaxesDigital)))
{TaxAreaAdditionAccordingToDeliveryAddress}#ENDIF #IF((#COUNT(#TaxesDigital) OR #Shop.DeliveryThresholdIsActive) AND #IsEUAddress)#CountryName#ELSE#TaxArea.NameOrAlias#ENDIF #LOOP(#Taxes)#LOCAL("LocalTaxRate", #FUNCTION("TaxRateForDefaultTaxArea", #Shop.Object, #TaxClass.Object)) #IF(#LineItemPrice) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF #IF(#LineItemPrice < 0){TaxAbatement}#ELSE#SPACE[0]{TaxAddition}#ENDIF: #CALCULATE(#LocalTaxRate*100) % #LineItemPrice[money] #ENDIF #ENDLOCAL#ENDLOOP #ENDIF #REM#ENDREM #IF(#TaxModel)#LOOP(#PrePayments) #INCLUDE("ContentLine") #ENDLOOP#ENDIF #IF(#Shop.VATreleased) #REM#ENDREM #IF(#Shop.VATreleasedMessage) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF #Shop.VATreleasedMessage #ENDIF #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {GrandTotal} #GrandTotal[money] #ELSE #REM#ENDREM #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF #IF(#GrandTotal AND #TotalTax == 0){TotalWithoutTax}#ELSE#SPACE[0]{TotalBeforeTax}#ENDIF #TotalBeforeTax[money] #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #TaxAmount != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxRate}: #CALCULATE(#TaxRate*100) % #TaxAmount[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #LOOP(#TaxesDigital) #IF(#DEFINED(#TaxAmount) AND #TaxAmount != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxRate} #TaxClassDigital.NameOrAlias#IF(NOT (#Shop.Address.CountryID EQ #TaxAreaDigital.CountryID)) #CountryName#ENDIF: #CALCULATE(#TaxRate*100) % #TaxAmount[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #IF(#CALCULATE(#COUNT(#TaxesDigital)+#COUNT(#Taxes)-#EmptyTaxLineItem) > 1) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TotalTax} #TotalTax[money] #ENDIF #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {GrandTotal} #GrandTotal[money] #IF(#INPUT.ViewAction EQ "MBO-ViewPrintOrderConfirmation" ) #IF(#Shipping)#WITH(#Shipping) #IF(#CALCULATE(#COUNT(#Taxes)) > 1) #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #Value != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxComponentInclVAT}: #CALCULATE(#TaxRate*100) % #Value[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {ShippingTaxComponents}: #ENDIF #ENDWITH#ENDIF #IF(#Payment)#WITH(#Payment) #IF(#CALCULATE(#COUNT(#Taxes)) > 1) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {PaymentTaxComponents}: #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #Value != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {PaymentTaxComponentInclVAT}: #IF(#TaxRateDigital)#CALCULATE(#TaxRateDigital*100) %#ELSE#CALCULATE(#TaxRate*100) %#ENDIF #Value[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #ENDIF #ENDWITH#ENDIF #ENDIF #ENDIF #REM#ENDREM #ELSE #REM#ENDREM #IF(#DisplayTaxRate) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#HasDiscounts)#ENDIF {TaxArea}#IF(#Shop.DeliveryThresholdIsActive AND #IsEUAddress AND (NOT #COUNT(#TaxesDigital)))
{TaxAreaAdditionAccordingToDeliveryAddress}#ENDIF #IF((#COUNT(#TaxesDigital) OR #Shop.DeliveryThresholdIsActive) AND #IsEUAddress)#CountryName#ELSE#TaxArea.NameOrAlias#ENDIF #ENDIF #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF #IF(#GrandTotal AND #TotalTax == 0){TotalWithoutTax}#ELSE#SPACE[0]{TotalBeforeTax}#ENDIF #TotalBeforeTax[money] #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #TaxAmount != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxRateFull}#IF(#DisplayTaxRate)#IF(#Shop.TaxMethod) (#TaxClass.NameOrAlias)#ENDIF: #CALCULATE(#TaxRate*100) %#ENDIF #TaxAmount[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #LOOP(#TaxesDigital) #IF(#DEFINED(#TaxAmount) AND #TaxAmount != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxRateFull} #TaxClassDigital.NameOrAlias #IF(NOT (#Shop.Address.CountryID EQ #TaxAreaDigital.CountryID))#CountryName#ENDIF #CALCULATE(#TaxRate*100) % #TaxAmount[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #IF(#CALCULATE(#COUNT(#TaxesDigital)+#COUNT(#Taxes)-#EmptyTaxLineItem) > 1) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TotalTax} #TotalTax[money] #ENDIF #LOOP(#PrePayments) #INCLUDE("ContentLine") #ENDLOOP #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {GrandTotal} #GrandTotal[money] #IF(#INPUT.ViewAction EQ "MBO-ViewPrintOrderConfirmation" ) #IF(#Shipping)#WITH(#Shipping) #IF(#CALCULATE(#COUNT(#Taxes)) > 1) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {ShippingTaxComponents}: #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #Value != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {TaxComponent}: #CALCULATE(#TaxRate*100) % #Value[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #ENDIF #ENDWITH#ENDIF #IF(#Payment)#WITH(#Payment) #IF(#CALCULATE(#COUNT(#Taxes)) > 1) #LOOP(#Taxes) #IF(#DEFINED(#TaxAmount) AND #Value != 0) #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {PaymentTaxComponent}: #IF(#TaxRateDigital)#CALCULATE(#TaxRateDigital*100) %#ELSE#CALCULATE(#TaxRate*100) %#ENDIF #Value[money] #ELSE #SET("EmptyTaxLineItem",#EmptyTaxLineItem+1) #ENDIF #ENDLOOP #SET("LineItemNo", #LineItemNo + 1) #IF(NOT (#Shipping.ShippingMethod.Note OR #LineItemContainer.Payment.PaymentMethod.Note))#ENDIF #IF(#DisplayTaxRate)#ENDIF #IF(#HasDiscounts)#ENDIF {PaymentTaxComponents}: #ENDIF #ENDWITH#ENDIF #ENDIF #ENDIF #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM #IF(#MailType.Alias EQ "CustomerOrderConfirmation") #REM#ENDREM #LOCAL("Address",0) #IF(#ShippingAddress)#SET("Address",#ShippingAddress)#ELSE#SET("Address",#BillingAddress)#ENDIF #WITH(#Address) #IF(#Shop.Address.IsEU AND #Country AND NOT #IsEU)
{NonEUDeliveryLegalText}
#ENDIF #ENDWITH #ENDLOCAL #ENDIF #IF(#ShopAddress.Country.Code2 EQ "DE") #WITH(#LineItemContainer) #IF(#DEFINED(#Shipping)) #LOCAL("ShippingAddress", "") #IF(#Parent.ShippingAddress) #SET("ShippingAddress", #Parent.ShippingAddress) #ELSIF(#Parent.BillingAddress) #SET("ShippingAddress", #Parent.BillingAddress) #ELSE #SET("ShippingAddress", #Parent.Address) #ENDIF #IF(#GrandTotal AND #TotalTax == 0 AND NOT #TaxModel) #IF(#ShippingAddress.Country.Code2 NE "DE" OR NOT #ShippingAddress.IsEU) #IF(#ShippingAddress.IsEU) {LegalTextParagraph14_1b} #ELSE {LegalTextParagraph14_1a} #ENDIF #ENDIF #ENDIF #ENDLOCAL #ENDIF #ENDWITH #ENDIF #IF(#CustomerComment)
{CustomerComment}:

#CustomerComment[preline]

#ENDIF #ENDWITH_LANGUAGE#ENDWITH #ENDIF #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM