#SET("LineItemNo", #LineItemNo + 1)
#LineItemNo |
#Quantity[float] #OrderUnit.NameOrAlias |
#SET("IsVisible",#Product.IsVisible)
#SKU |
#IF(#Product)#Product.NameOrAlias#ELSIF(#Name)#Name#ELSE-#ENDIF
#MENU("AdditionalProductInformation")
#INCLUDE(#Template)
#ENDMENU
#IF(#LocalizedVariationString) - #LocalizedVariationString#ENDIF
|
#LOCAL("RealPrice", #LineItemPrice)
#IF(#Appointment AND #DEFINED(#OriginalLineItemPrice))#SET("RealPrice", #OriginalLineItemPrice)#ENDIF
#IF(#DEFINED(#Product))
#IF(#Quantity == 0) #FUNCTION("FORMAT",#BasePrice * #Product.PriceQuantity, "money")
#ELSIF(#Product.PriceQuantity == 1) #BasePrice[money]
#ELSE #FORMAT(#FUNCTION("FORMAT",(#RealPrice + #Discount) / (#Quantity/#Product.PriceQuantity), "neg"), "money")
#ENDIF
#LOCAL("TempOrderUnit","")
#IF(#Product.OrderUnit.Abbreviation)#SET("TempOrderUnit",#Product.OrderUnit.Abbreviation)
#ELSE#SET("TempOrderUnit",#Product.OrderUnit.NameOrAlias)#ENDIF
#IF(#Product.PriceQuantity != 1)/ #Product.PriceQuantity[float] #TempOrderUnit#ENDIF#IF(#Product.OrderUnit.Alias NE "piece" AND #Product.PriceQuantity == 1)/ #TempOrderUnit#ENDIF
#ENDLOCAL
#ELSE
#BasePrice[money] #IF(#OrderUnit)/ #OrderUnit.NameOrAlias#ENDIF
#ENDIF
|
#IF(NOT #ShowTaxRate)#IF(NOT #Shop.VATreleased)#CALCULATE(#TaxRate * 100)%#ENDIF#ENDIF |
#IF(#Discount)#Discount[neg,money]#ENDIF |
#RealPrice[neg,money] |
#ENDLOCAL