X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=5714f9a2be860e1503d2874983e84ab475f2748c;hp=fa392bbb7af0e838430eff43c2b99ec93cd79107;hb=ea1f12bb5c5764f784e884fa8d7c37e5cd0b28e0;hpb=a4d4d3df88b33a6db30b565921f6d62efb252351 diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index fa392bbb7..5714f9a2b 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -15,9 +15,34 @@
<% mt('Billing information') |h %> - <% &ntable("#cccccc") %> + % my $curuser = $FS::CurrentUser::CurrentUser; + +% ### +% # complimentry flag +% ### + +% if ( $curuser->access_right('Complimentary customer') ) { + + <& /elements/tr-checkbox.html, + field => 'complimentary', + label => emt('Complimentary customer'), + value => 'Y', + curr_value => $cust_main->complimentary, + box_first => 1, + &> + +% } else { + + + +% } + +% ### +% # tax exemptions +% ### + % 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') @@ -30,9 +55,13 @@ % } else { - - - + <& /elements/tr-checkbox.html, + field => 'tax', + label => emt('Tax Exempt' . (scalar(@exempt_groups) ? '(all taxes)' : '') ), + value => 'Y', + curr_value => $cust_main->tax, + box_first => 1, + &> % } @@ -42,70 +71,89 @@ % #escape $exempt_group for NAME etc. % my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group")); - + -% } +% } #" % } -% unless ( $conf->exists('emailinvoiceonly') ) { - - - - + <& /elements/tr-checkbox.html, + field => 'postal_invoice', + label => emt('Postal mail invoices'), + value => 'Y', + curr_value => $cust_main->postal_invoice, + box_first => 1, + &> % } - - - + <& /elements/tr-checkbox.html, + field => 'message_noemail', + label => emt('Do not send other email notices'), + value => 'Y', + curr_value => $cust_main->message_noemail, + box_first => 1, + &> -% unless ( $conf->exists('cust-email-high-visibility')) { - - - - -% } +% ### +% # prorate_day +% ### % if ( $conf->exists('cust_main-select-prorate_day') ) { - + + +% sub prorate_day_options { +% my $curr_value = shift; +% my $ret = ''; +% for my $prorate_day ( 1 .. 28 ) { +% my $sel = ''; +% $sel = "SELECTED='SELECTED'" if $curr_value == $prorate_day; +% $ret .= ""; +% } +% $ret; +% } + % } else { % } +% ### +% # billday +% ### + - + - + +% ### +% # credit_limit +% ### + - +
tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt<% @exempt_groups ? ' (all taxes)' : '' %>
   onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)   onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes) - Exemption number exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>>
> <% mt('Postal mail invoices') |h %> +% unless ( $conf->exists('emailinvoiceonly') ) { -
invoice_noemail eq 'Y' ) - ? '' - : 'CHECKED' - - %>> <% mt('Email invoices') |h %> + <& /elements/tr-checkbox.html, + field => 'invoice_noemail', + label => emt('Do not send email invoices'), + value => 'Y', + curr_value => $cust_main->invoice_noemail, + box_first => 1, + &> -
- <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum) - ? $r : '' %>Email address(es) - - message_noemail eq 'Y' ) - ? 'CHECKED' - : '' - %>> <% emt('Do not send notices') %> -
<% mt('Prorate day (1-28)') |h %> <% mt('Prorate day') |h %> - + + <& /elements/checkbox.html, + field => 'force_prorate_day', + value => 'Y', + curr_value => $cust_main->force_prorate_day + &> +
<% mt('Charge card/e-check on this day of the month') |h %> <% mt('Charge card/e-check on this day of the month') |h %>
<% mt('Invoice terms') |h %> <% mt('Invoice terms') |h %> <& /elements/select-terms.html, 'curr_value' => $cust_main->invoice_terms, @@ -134,8 +186,12 @@
<% mt('Credit limit') |h %> <% mt('Credit limit') |h %>