From a95b10c0c3ccee4e34c3bd0680e5ee2a4becdee6 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 20:46:53 +0000 Subject: ACLs --- httemplate/view/cust_main/payment_history.html | 45 ++++++++++++++++---------- 1 file changed, 28 insertions(+), 17 deletions(-) (limited to 'httemplate/view/cust_main') diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 81ccc6d9c..0da55a1aa 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -116,10 +116,12 @@ % #completely unapplied % $pre = 'Unapplied '; % $post = ''; -% $apply = qq! (apply)!; -% +% if ( $curuser->access_right('Apply payment') # ) { +% || $curuser->access_right('Post payment') ) { #remove after 1.7.3 +% $apply = qq! (apply)!; +% } % } elsif ( scalar(@cust_bill_pay) == 1 % && scalar(@cust_pay_refund) == 0 % && $cust_pay->unapplied == 0 ) { @@ -153,11 +155,14 @@ % if ( $cust_pay->unapplied > 0 ) { % $desc .= '  '. % '$'. -% $cust_pay->unapplied. ' unapplied'. -% qq! (apply)!. -% '
'; +% $cust_pay->unapplied. ' unapplied'; +% if ( $curuser->access_right('Apply payment') # ) { +% || $curuser->access_right('Post payment') ) { #remove after 1.7.3 +% $desc .= qq! (apply)!; +% } +% $desc .= '
'; % } % } % @@ -291,9 +296,12 @@ % #completely unapplied % $pre = 'Unapplied '; % $post = ''; -% $apply = qq! (apply)!; +% if ( $curuser->access_right('Apply credit') # ) { +% || $curuser->access_right('Post credit') ) { #remove after 1.7.3 +% $apply = qq! (apply)!; +% } % } elsif ( scalar(@cust_credit_bill) == 1 % && scalar(@cust_credit_refund) == 0 % && $cust_credit->credited == 0 ) { @@ -326,11 +334,14 @@ % } % if ( $cust_credit->credited > 0 ) { % $desc .= '  $'. -% $cust_credit->credited. ' unapplied'. -% qq! (apply)!. -% '
'; +% $cust_credit->credited. ' unapplied'; +% if ( $curuser->access_right('Apply credit') # ) { +% || $curuser->access_right('Post credit') ) { #remove after 1.7.3 +% $desc .= qq! (apply)!; +% } +% $desc .= '
'; % } % } %# -- cgit v1.2.1