#SET("LineItemNo", #LineItemNo + 1) #LineItemNo #Quantity[float] #Product.OrderUnit.Name #IF(#Product) #WITH(#Product)#INCLUDE("INC-ProductIcon")#ENDWITH #IF(NOT #INPUT.PopUp) #SKU #ELSE #SKU #ENDIF #ELSE #SKU #ENDIF #IF(#Product)#Product.NameOrAlias#ELSIF(#Name)#Name#ELSE-#ENDIF #IF(#Product.SuperProduct) #WITH(#Product)#LOOP(#VariationTypeValues)
- #LOCAL("AttributeValue",#GET(#Attribute.Alias))#Attribute.NameOrAlias : #AttributeValue.ValueOrAlias#ENDLOCAL#ENDLOOP#ENDWITH #ENDIF#IF(#Appointment)
#Appointment.StartDate[datetime] - #IF(#FUNCTION("YMD",#Appointment.StartDate) EQ #FUNCTION("YMD",#Appointment.EndDate))#Appointment.EndDate[time_tz]#ELSE#Appointment.EndDate[datetime]#ENDIF #ENDIF #LOCAL("RealPrice", #OriginalLineItemPrice)#IF(NOT #DEFINED(#RealPrice))#SET("RealPrice", #LineItemPrice)#ENDIF #IF(#DEFINED(#Product)) #IF(#Product.PriceQuantity == 1)#BasePrice[money]#ELSE#FUNCTION("FORMAT",(#RealPrice - #Discount) / (#Quantity/#Product.PriceQuantity), "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 #TempOrderUnit#ENDIF#IF(#Product.OrderUnit.Alias NE "piece" AND #Product.PriceQuantity == 1)/ #TempOrderUnit#ENDIF #ENDLOCAL #ELSE #BasePrice[money] #ENDIF #IF(#LineItemContainer.ShowTaxRate)#CALCULATE(#TaxRate * 100)%#ENDIF #IF(#Discount)#Discount[money]#ENDIF #RealPrice[money] #ENDLOCAL