[freeside-commits] branch FREESIDE_4_BRANCH updated. 67438dccad6bd9a800f6ab6a179aaad1598eae3a
Ivan
ivan at 420.am
Fri Jun 2 14:22:07 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 67438dccad6bd9a800f6ab6a179aaad1598eae3a (commit)
from 4a846ddc1bd5f16c905aa3c272d1a452070e39b5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 67438dccad6bd9a800f6ab6a179aaad1598eae3a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Jun 2 14:22:06 2017 -0700
separate ACL for editing customer invoice terms, RT#75759
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index 649c4c9..4dddb83 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -179,10 +179,27 @@
<TR>
<TH ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD>
<TD WIDTH="408">
- <& /elements/select-terms.html,
- 'curr_value' => $cust_main->invoice_terms,
- 'agentnum' => $cust_main->agentnum,
- &>
+% if ( $curuser->access_right('Edit customer invoice terms') ) {
+ <& /elements/select-terms.html,
+ 'curr_value' => $cust_main->invoice_terms,
+ 'agentnum' => $cust_main->agentnum,
+ &>
+% } else {
+%
+% my $terms =
+% $cust_main->invoice_terms
+% || emt('Default').' ('.
+% ( $conf->config('invoice_default_terms', $cust_main->agentnum)
+% || emt('Payable upon receipt')
+% ).
+% ')';
+ <% $terms |h %>
+
+ <& /elements/hidden.html,
+ 'field' => 'invoice_terms',
+ 'curr_value' => $cust_main->invoice_terms,
+ &>
+% }
</TD>
</TR>
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/cust_main/billing.html | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
More information about the freeside-commits
mailing list