X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=ba60e13d126b0a34ed3e036256e58ddd451157bd;hb=a68564e6856a7ea63763eeaf7962a5cb2df649af;hp=30397fd3ed5b52f0519e2bb134c227f4dbba0308;hpb=2b49cbe76b94c6c1561aa2bf37beba7d47591190;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 30397fd3e..ba60e13d1 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -1,164 +1,318 @@ -<% - my( $cust_main ) = @_; - my @invoicing_list = $cust_main->invoicing_list; -%> +<% mt('Billing information') |h %> +%# If we can't see the unencrypted card, then bill now is an exercise in +%# frustration (without some sort of job queue magic to send it to a secure +%# machine, anyway) +%if ( $FS::CurrentUser::CurrentUser->access_right('Bill customer now') +% && ! $cust_main->is_encrypted($cust_main->payinfo) +% ) { +%# (<% mt('Bill now') |h %>) + <& /elements/bill.html, + custnum => $cust_main->custnum, + label => emt('Bill now'), + url => $p.'view/cust_main.cgi?'.$cust_main->custnum, + &> +% } -Billing information -(Bill now) -<%= ntable("#cccccc") %>
Billing type | -+ | <% mt('Balance due') |h %> | +<% $balance %> | +
<% mt('Billing day of month') |h %> | +<% $cust_main->billday %> + | +||
<% mt('Billing type') |h %> | ++% if ( $cust_main->payby eq 'CARD' || $cust_main->payby eq 'DCRD' ) { - Credit card <%= $cust_main->payby eq 'CARD' ? '(automatic)' : '(on-demand)' %> +% my $autodemand = $cust_main->payby eq 'CARD' ? 'automatic' : 'on-demand'; + <% mt("Credit card ([_1])",$autodemand) |h %> | ||
Card number | -<%= $cust_main->payinfo_masked %> | +<% mt('Card number') |h %> | +<% $cust_main->paymask %> |
Expiration | -<%= "$mon/$year" %> | +<% mt('Expiration') |h %> | +<% "$mon/$year" %> |
Start date | -<%= $cust_main->paystart_month. '/'. $cust_main->paystart_year %> + | <% mt('Start date') |h %> | +<% $cust_main->paystart_month. '/'. $cust_main->paystart_year %> |
Issue # | -<%= $cust_main->payissue %> + | <% mt('Issue #') |h %> | +<% $cust_main->payissue %> |
Name on card | -<%= $cust_main->payname %> | +<% mt('Name on card') |h %> | +<% $cust_main->payname %> |
<% mt($routing_label) |h %> | +<% $aba %> | +||
ABA/Routing code | -<%= $aba %> | +<% mt('Branch number') |h %> | +<% $branch %> | +
<% mt('Account number') |h %> | +<% $account %> | ||
Account number | -<%= $account %> | +<% mt('Account type') |h %> | +<% $cust_main->paytype %> |
Bank name | -<%= $cust_main->payname %> | +<% mt('Bank name') |h %> | +<% $cust_main->payname %> |
<% $paystate_label %> | +<% $cust_main->paystate || ' ' %> | +||
Phone number | -<%= $payinfo %> | +<% mt('Phone number') |h %> | +<% $payinfo %> |
P.O. | -<%= $cust_main->payinfo %> | ++ | <% $cust_main->payinfo %> |
Attention | -<%= $cust_main->payname %> | +<% mt('Attention') |h %> | +<% $cust_main->payname |h %> |
Authorized by | -<%= $cust_main->payinfo %> | +<% mt('Authorized by') |h %> | +<% $cust_main->payinfo %> |
Expiration | -<%= "$mon/$year" %> | +<% mt('Expiration') |h %> | +<% "$mon/$year" %> |
<% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %> | +<% $cust_main->tax ? $yes : $no %> | +||
<% mt('Tax exempt') |h %> (<% $exempt_group %> taxes) | +<% $cust_main_exemption ? $yes : $no %> + <% $cust_main_exemption ? $cust_main_exemption->exempt_number : '' |h %> + | +||
<% mt('Tax location') |h %> | +<% $cust_main->geocode('cch') %> | +||
Tax exempt | -<%= $cust_main->tax ? 'yes' : 'no' %> | +<% mt('Postal invoices') |h %> | ++ <% ( grep { $_ eq 'POST' } @invoicing_list ) ? $yes : $no %> + | +
<% mt('FAX invoices') |h %> | ++ <% ( grep { $_ eq 'FAX' } @invoicing_list ) ? $yes : $no %> + | ||
Postal invoices | +<% mt('Email invoices') |h %> | - <%= ( grep { $_ eq 'POST' } @invoicing_list ) ? 'yes' : 'no' %> + <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %> | |
FAX invoices | +<% mt('Invoice terms') |h %> | - <%= ( grep { $_ eq 'FAX' } @invoicing_list ) ? 'yes' : 'no' %> + <% $cust_main->invoice_terms || emt('Default').' ('. ( $conf->config('invoice_default_terms') || emt('Payable upon receipt') ). ')' %> | |
Email invoices | +<% mt('Credit limit') |h %> | - <%= join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || 'no' %> + <% length($cust_main->credit_limit) ? + $money_char.sprintf("%.2f", $cust_main->credit_limit) : + emt('Unlimited') %> |