projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more granular ACLs for posting check vs. cash payments, processing credit card vs...
[freeside.git]
/
httemplate
/
view
/
cust_main
/
payment_history.html
diff --git
a/httemplate/view/cust_main/payment_history.html
b/httemplate/view/cust_main/payment_history.html
index
b84883a
..
111810e
100644
(file)
--- a/
httemplate/view/cust_main/payment_history.html
+++ b/
httemplate/view/cust_main/payment_history.html
@@
-1,7
+1,7
@@
%# payment links
% my $s = 0;
%# payment links
% my $s = 0;
-% if ( $payby{'BILL'} && $curuser->access_right(
'Post payment'
) ) {
+% if ( $payby{'BILL'} && $curuser->access_right(
['Post payment', 'Post check payment' ]
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check payment',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check payment',
@@
-14,7
+14,7
@@
%>
% }
%>
% }
-% if ( $payby{'CASH'} && $curuser->access_right(
'Post payment'
) ) {
+% if ( $payby{'CASH'} && $curuser->access_right(
['Post payment', 'Post cash payment']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash payment',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash payment',
@@
-33,7
+33,7
@@
% }
% if ( ( $payby{'CARD'} || $payby{'DCRD'} )
% }
% if ( ( $payby{'CARD'} || $payby{'DCRD'} )
-% && $curuser->access_right(
'Process payment'
)
+% && $curuser->access_right(
['Process payment', 'Process credit card payment']
)
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
@@
-41,7
+41,7
@@
% }
% if ( ( $payby{'CHEK'} || $payby{'DCHK'} )
% }
% if ( ( $payby{'CHEK'} || $payby{'DCHK'} )
-% && $curuser->access_right(
'Process payment'
)
+% && $curuser->access_right(
['Process payment', 'Process Echeck payment']
)
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
@@
-73,7
+73,7
@@
%# refund links
% $s = 0;
%# refund links
% $s = 0;
-% if ( $payby{'BILL'} && $curuser->access_right(
'Post refund'
) ) {
+% if ( $payby{'BILL'} && $curuser->access_right(
['Post refund', 'Post check refund']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check refund',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check refund',
@@
-86,7
+86,7
@@
%>
% }
%>
% }
-% if ( $payby{'CASH'} && $curuser->access_right(
'Post refund'
) ) {
+% if ( $payby{'CASH'} && $curuser->access_right(
['Post refund', 'Post cash refund']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash refund',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash refund',