|
#INCLUDE("INC-OrderTime") |
#INCLUDE("INC-LinkToOrder") |
#TransID[trimzeros] |
#IF(#PartAmount){Authorized}: #Amount[money] {Captured}: #PartAmount[money]#ELSE#Amount[money]#ENDIF |
#IF(#InternalMethod EQ "CC"){CreditCard}
#ELSIF(#InternalMethod EQ "DD"){DirectDebit}
#ELSIF(#InternalMethod EQ "OP"){Giropay}
#ELSIF(#InternalMethod EQ "ID")iDeal
#ELSIF(#InternalMethod EQ "SO")sofortüberweisung.de#ENDIF
|
#IF(#TransStatus EQ "CANCELLED"){Cancelled}
#ELSIF(#TransStatus EQ "AUTHORIZED"){Authorized}
#ELSIF(#TransStatus EQ "CAPTURED"){Captured}
#ELSIF(#TransStatus EQ "PARTIALLYCAPTURED"){PartiallyCaptured}
#ELSIF(#TransStatus EQ "REFUNDED"){Refunded}
#ELSIF(#TransStatus EQ "PARTIALLYREFUNDED"){PartiallyRefunded}
#ELSE {Unknown} #ENDIF
|
#IF(#CountAction > 0)
#IF(#CountAction > 1)
#LOCAL("FirstOption", 1)
#ENDLOCAL
#ELSE
#IF(#CanBuy)#SET("Action", "Buy")#ENDIF
#IF(#CanCapture)#SET("Action", "Capture")#ENDIF
#IF(#CanRefund )#SET("Action", "Refund" )#ENDIF
#IF(#CanCancel )#SET("Action", "Cancel" )#ENDIF
#ENDIF
#IF(#CanCapture OR #CanRefund)
#WITH_ERROR(#FormError)
#LOCAL("LocalCurrency", #FUNCTION("CURRENCY", #CurrencyID))#LocalCurrency.Symbol#ENDLOCAL
#ENDWITH_ERROR
#SET("ErrorItemNo", #ErrorItemNo + 1)
#ENDIF
#LOCAL("ButtonText", "")
#IF (#Action EQ "Capture") #SET("ButtonText", "{Capture}")
#ELSIF (#Action EQ "Refund") #SET("ButtonText", "{Refund}")
#ELSIF (#Action EQ "Cancel") #SET("ButtonText", "{Cancel}")
#ELSIF (#Action EQ "Buy") #SET("ButtonText", "{CaptureRemainingAmount}")
#ENDIF
#ENDLOCAL
#ELSE
#ENDIF
|
#ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOOP
#ENDLOCAL
#IF(#COUNT(#Pager.Items) == 0)