projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimize customer view (esp. with lots of commission credits), RT#26416
[freeside.git]
/
httemplate
/
view
/
cust_main
/
payment_history
/
refund.html
diff --git
a/httemplate/view/cust_main/payment_history/refund.html
b/httemplate/view/cust_main/payment_history/refund.html
index
f14713c
..
fc2a5cc
100644
(file)
--- a/
httemplate/view/cust_main/payment_history/refund.html
+++ b/
httemplate/view/cust_main/payment_history/refund.html
@@
-5,8
+5,6
@@
my( $cust_refund, %opt ) = @_;
my( $cust_refund, %opt ) = @_;
-my $curuser = $FS::CurrentUser::CurrentUser;
-
my $payby = $cust_refund->payby;
my $payinfo = $payby eq 'CARD'
? $cust_refund->paymask
my $payby = $cust_refund->payby;
my $payinfo = $payby eq 'CARD'
? $cust_refund->paymask
@@
-34,8
+32,9
@@
$delete = areyousure_link("${p}misc/delete-cust_refund.cgi?".$cust_refund->refun
emt('Delete this refund from the database completely - not recommended'),
emt('delete')
)
emt('Delete this refund from the database completely - not recommended'),
emt('delete')
)
- if ( $cust_refund->closed !~ /^Y/i && $opt{'deleterefunds'}
- && $curuser->access_right('Delete refund') );
+ if $cust_refund->closed !~ /^Y/i
+ && $opt{'deleterefunds'}
+ && $opt{'Delete refund'};
</%init>
</%init>