X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=d52fb3c4014572ced4156e6ad1723b685560098a;hb=282d98b8ebad35123455dd8ccb414805a1624c6c;hp=d7082f23aed47d256f032460151d69ccb16bcc5d;hpb=5214a5560240667a3a914c45df046b420926a5ec;p=freeside.git
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index d7082f23a..d52fb3c40 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -444,10 +444,11 @@
|
+% my $curuser = $FS::CurrentUser::CurrentUser;
% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
-
% if ( $conf->exists('cust_class-tax_exempt')
% || $conf->exists('tax-cust_exempt-groups-require_individual_nums')
+% || ! $curuser->access_right('Edit customer tax exemptions')
% )
% {
@@ -461,14 +462,16 @@
% }
-% foreach my $exempt_group ( @exempt_groups ) {
-% my $cust_main_exemption = $cust_main->tax_exemption($exempt_group);
-% #escape $exempt_group for NAME etc.
-% my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group"));
-
- onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes) |
- - Exemption number exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>> |
-
+% if ( $curuser->access_right('Edit customer tax exemptions') ) {
+% foreach my $exempt_group ( @exempt_groups ) {
+% my $cust_main_exemption = $cust_main->tax_exemption($exempt_group);
+% #escape $exempt_group for NAME etc.
+% my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group"));
+
+ onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes) |
+ - Exemption number exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>> |
+
+% }
% }
% unless ( $conf->exists('emailinvoiceonly') ) {
@@ -518,10 +521,27 @@
<% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
? $r : '' %>Email address(es)
- |
+
+ message_noemail eq 'Y' )
+ ? 'CHECKED'
+ : ''
+ %>> <% emt('Do not send notices') %>
+ |
% }
+% if ( $conf->exists('cust_main-select-prorate_day') ) {
+
+ <% mt('Prorate day (1-28)') |h %> |
+
+
+ |
+
+% } else {
+
+% }
+
<% mt('Invoice terms') |h %> |
@@ -539,8 +559,23 @@ function toggle(obj) {
obj.form.credit_limit.disabled = obj.checked;
}
- credit_limit) %><% length($cust_main->credit_limit) ? '' : ' DISABLED' %>>
- credit_limit) ? '' : ' CHECKED'%>> <% mt('Unlimited') |h %>
+ credit_limit) ? '' : ' DISABLED' %>
+ >
+% my $default_credit_limit = $conf->config('default_credit_limit');
+ credit_limit) ? '' : ' CHECKED'%>
+ > <% $default_credit_limit
+ ? "Default ($money_char". sprintf("%.2f", $default_credit_limit).
+ ")"
+ : mt('Unlimited')
+ |h
+ %>
|
@@ -641,6 +676,8 @@ my $payinfo = $options{'payinfo'};
my $conf = new FS::Conf;
my $payby_default = $conf->config('payby-default');
+my $money_char = $conf->config('money_char') || '$';
+
my @payby = grep /\w/, $conf->config('payby');
#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP ))
@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP ))