From f9938915b0df2609f41c24d761d607595d5d0a34 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 20:46:44 +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 5af34c09c..19332f35d 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -126,10 +126,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 ) { @@ -163,11 +165,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 .= '
'; % } % } % @@ -301,9 +306,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 ) { @@ -336,11 +344,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