#IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF#IF(#INPUT.OrderBy) #ENDIF#IF(#INPUT.OrderDesc) #ENDIF
#IF(#FormError)
#IF(#FormErrors.Form.EasyDebitConnect)

{Error}

{ConnectionError}

#ELSE

{InputError}

{PleaseCorrectErrors}

#ENDIF
#ENDIF #INCLUDE("INC-PagerHeader") #IF(#Pager.OrderBy NE "TransTime") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "LineItemContainer.Parent.Alias") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "TransID") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "Amount") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "InternalMethod") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "TransStatus") #ELSIF(#Pager.OrderDesc) #ELSE #ENDIF #LOCAL("ErrorItemNo", 0) #LOOP(#Pager.Items) #LOCAL("Action", 0)#LOCAL("CountActions", 0)#LOCAL("CanCancel", 0)#LOCAL("CanRefund", 0)#LOCAL("CanCapture", 0)#LOCAL("CanBuy", 0) #LOCAL("DaysOver", #CALCULATE(#Now[date]-#TransTime[date])) #LOCAL("TimeTo23", #CALCULATE(23-#Now[time])) #REM #ENDREM #IF( #TransStatus EQ "AUTHORIZED" AND ( (#InternalMethod EQ "CC" AND #DaysOver <= 7) OR (#InternalMethod EQ "DD" AND #DaysOver <= 14) ) ) #SET("CanCapture", 1) #SET("CountAction", #CALCULATE(#CountAction+1)) #ENDIF #REM #ENDREM #IF( #InternalMethod EQ "CC" AND (#TransStatus EQ "PARTIALLYREFUNDED" OR ( (#TransStatus EQ "PARTIALLYCAPTURED" OR #TransStatus EQ "CAPTURED") #REM AND (#DaysOver > 0 OR #TimeTo23 <= 0) #ENDREM ) ) ) #SET("CanRefund", 1) #SET("CountAction", #CALCULATE(#CountAction+1)) #ENDIF #REM #ENDREM #IF( (#TransStatus EQ "PARTIALLYCAPTURED" OR #TransStatus EQ "CAPTURED") AND (#DaysOver <= 0 AND #TimeTo23 >= 0) AND (#InternalMethod EQ "CC" OR #InternalMethod EQ "DD") ) #SET("CanCancel", 1) #SET("CountAction", #CALCULATE(#CountAction+1)) #ENDIF #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOOP #ENDLOCAL #IF(#COUNT(#Pager.Items) == 0) #ENDIF
{Date}{Date}{Date}{OrderAlias}{OrderAlias}{OrderAlias}{TransID}{TransID}{TransID}{Amount}{Amount}{Amount}{PaymentMethod}{PaymentMethod}{PaymentMethod}{Status}{Status}{Status}{Action}
#INCLUDE("Pager")
#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
{NoMatches}

{AdminURL}

{Notification}: {CancelNotification}