#REM test if LineItem is used in other document and set a tle #ENDREM
#SET("LineItemAlias",#Alias)
#SET("DocumentID",#Parent.Parent.ID)
#LOCAL("AlwaysInUse",0)
#LOOP(#LineItemContainer.Parent.Parent.ChildObjects)
#IF(#DocumentID NNE #ID)
#LOOP(#LineItemContainer.ChildObjects)
#IF(#Alias EQ #LineItemAlias )
#SET("AlwaysInUse",1)
#ENDIF
#ENDLOOP
#ENDIF
#ENDLOOP
#SET("LineItemNo", #LineItemNo + 1)
#LineItemNo #IF(#AlwaysInUse AND NOT #INPUT.Print){AlwaysInUseStar}#ENDIF |
{PaymentMethod} |
#IF(#PaymentMethod)#PaymentMethod.NameOrAlias#ELSE#Name#ENDIF,
#IF(#InternalMethod NEQ 1)
{Invoice}
#ELSIF(#InternalMethod NEQ 2)
{Account} #Kr_MonthlyCost[money] {PerMonth}
#ELSIF(#InternalMethod NEQ 3)
{HirePurchase}
#IF(#KlarnaPeriodicCost)
#WITH(#KlarnaPeriodicCost)
#KlarnaPclass.Months {Months} #PeriodicCost[money] {PerMonth}
#ENDWITH
#ENDIF
#ENDIF
#IF(#Kr_InvoiceNo){Kr_InvoiceNo}: #Kr_InvoiceNo #ENDIF
#INCLUDE("INC-IsTestTransaction")
|
|
#IF(NOT #Shop.VATreleased)#IF(#LineItemPrice)#CALCULATE(#TaxRate * 100)%#ENDIF#ENDIF |
|
#IF(#LineItemPrice)#LineItemPrice[money]#ENDIF |
#ENDLOCAL