X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=5714f9a2be860e1503d2874983e84ab475f2748c;hp=d25e8871240dec944cb9629d0c0d090463893637;hb=ea1f12bb5c5764f784e884fa8d7c37e5cd0b28e0;hpb=0870a4c1fb02be43ea5524f58650d99c81477681
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index d25e88712..5714f9a2b 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -15,7 +15,7 @@
<% mt('Billing information') |h %>
- <% &ntable("#cccccc") %>
+
% my $curuser = $FS::CurrentUser::CurrentUser;
@@ -25,9 +25,13 @@
% if ( $curuser->access_right('Complimentary customer') ) {
-
- complimentary eq "Y" ? 'CHECKED' : '' %>>Complimentary customer
- |
+ <& /elements/tr-checkbox.html,
+ field => 'complimentary',
+ label => emt('Complimentary customer'),
+ value => 'Y',
+ curr_value => $cust_main->complimentary,
+ box_first => 1,
+ &>
% } else {
@@ -51,9 +55,13 @@
% } else {
-
- tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt<% @exempt_groups ? ' (all taxes)' : '' %> |
-
+ <& /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,
+ &>
% }
@@ -63,10 +71,10 @@
% #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) |
+ onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes) |
- Exemption number exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>> |
-% }
+% } #"
% }
% ###
@@ -75,18 +83,13 @@
% unless ( $conf->exists('emailinvoiceonly') ) {
-
- > <% mt('Postal mail invoices') |h %>
-
- |
-
+ <& /elements/tr-checkbox.html,
+ field => 'postal_invoice',
+ label => emt('Postal mail invoices'),
+ value => 'Y',
+ curr_value => $cust_main->postal_invoice,
+ box_first => 1,
+ &>
% }
@@ -94,33 +97,21 @@
% # email invoices
% ###
-
- 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,
+ &>
-% unless ( $conf->exists('cust-email-high-visibility')) {
-
-
- <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
- ? $r : '' %>Email address(es)
- |
-
- message_noemail eq 'Y' )
- ? 'CHECKED'
- : ''
- %>> <% emt('Do not send notices') %>
- |
-
-% }
+ <& /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,
+ &>
% ###
% # prorate_day
@@ -128,11 +119,31 @@
% if ( $conf->exists('cust_main-select-prorate_day') ) {
- <% 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
+ &>
+
|
+
+% 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 {
% }
@@ -142,7 +153,7 @@
% ###
- <% mt('Charge card/e-check on this day of the month') |h %> |
+ <% mt('Charge card/e-check on this day of the month') |h %>
|
|