summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/payment_history
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-12-24 16:55:36 -0800
committerIvan Kohler <ivan@freeside.biz>2013-12-24 16:55:36 -0800
commit21e795f8589fbac1723268c2fbc6c9e4eaa8d1a8 (patch)
tree7555dcede7205b4e7373d225abb36e2c47c29253 /httemplate/view/cust_main/payment_history
parent73c19b415a4e227b968b8e6150de4d9dfae73385 (diff)
fix refund links, RT#26615, fallout from RT#26416 optimizations
Diffstat (limited to 'httemplate/view/cust_main/payment_history')
-rw-r--r--httemplate/view/cust_main/payment_history/payment.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html
index b71d73fc6..937920710 100644
--- a/httemplate/view/cust_main/payment_history/payment.html
+++ b/httemplate/view/cust_main/payment_history/payment.html
@@ -146,8 +146,8 @@ my $view =
my $refund = '';
my $refund_days = $opt{'card_refund-days'} || 120;
my $refund_right = '';
-$refund_right = 'Refund credit card payment' if $payby eq 'CARD';
-$refund_right = 'Refund Echeck payment' if $payby eq 'CHEK';
+$refund_right = 'Refund credit card payment' if $cust_pay->payby eq 'CARD';
+$refund_right = 'Refund Echeck payment' if $cust_pay->payby eq 'CHEK';
if ( $cust_pay->closed !~ /^Y/i
&& $cust_pay->payby =~ /^(CARD|CHEK)$/
&& time-$cust_pay->_date < $refund_days*86400