#REM test if LineItem is used in other document and set a tle #ENDREM #SET("LineItemAlias",#Alias) #SET("DocumentID",#Parent.Parent.ID) #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 == #KLARNA_INVOICE) {Invoice} #ELSIF(#InternalMethod == #KLARNA_ACCOUNT) {Account}
#ELSIF(#InternalMethod == #KLARNA_FINANCING) {Financing}
#ENDIF #IF(#KlarnaPeriodicCost) #WITH(#KlarnaPeriodicCost) #KlarnaPclass.Months {Months} #PeriodicCost[money] {PerMonth} #ENDWITH #ENDIF #IF(#ReservationNumber)
{ReservationNumber}: #ReservationNumber #ENDIF
#IF(#Kr_InvoiceNo){InvoiceNumber}: #Kr_InvoiceNo #ENDIF #INCLUDE("INC-IsTestTransaction") #IF(#HasDiscounts)#ENDIF #LineItemPrice[money]