summaryrefslogtreecommitdiff
path: root/httemplate/search/elements
diff options
context:
space:
mode:
authorivan <ivan>2008-06-01 22:48:15 +0000
committerivan <ivan>2008-06-01 22:48:15 +0000
commit15a02054fe0f91eda70003b8d1cf29497d19aa91 (patch)
tree68cd3680377bacb8a54785cf4aea7afbe1c78a4d /httemplate/search/elements
parentd8cbc19ac6d9d4aa9df946e6c9912bbcac26ef82 (diff)
refactor payment history slightly, add refund receipts, have "unapplied" refunds show like other unapplied/open things, RT#3545
Diffstat (limited to 'httemplate/search/elements')
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html
index cd1e19ded..9457ae2eb 100755
--- a/httemplate/search/elements/cust_pay_or_refund.html
+++ b/httemplate/search/elements/cust_pay_or_refund.html
@@ -242,10 +242,9 @@ if ( $cgi->param('magic') ) {
}
my $link = '';
-if ( $thing eq 'pay' ) { #XXX no refund receipts yet
- $link = [ "${p}view/cust_pay.html?paynum=", 'paynum' ]
- if $FS::CurrentUser::CurrentUser->access_right('View invoices'); #XXX for now
- #later# if $FS::CurrentUser::CurrentUser->access_right('View customer payments');
+if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') #XXX for now
+ || $FS::CurrentUser::CurrentUser->access_right('View customer payments') ){
+ $link = [ "${p}view/cust_$thing.html?${thing}num=", $thing.'num' ]
}
my $cust_link = sub {