X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fcust_pay_or_refund.html;h=9457ae2ebec79e22b793a6d2d287e3f345b10934;hb=15a02054fe0f91eda70003b8d1cf29497d19aa91;hp=cd1e19ded89f1e7ba4dc8e4ba7d44e25fbe03525;hpb=978fea1c303551f90c95ae852b6463951b78246b;p=freeside.git 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 {