X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=894b2dfc0ac1abe2ec5f5daa526d787ff49e20a6;hb=4b05b20576ddb14577d59c87c8257c6804449410;hp=18a203bd6de9ca33cadbc564b88295861e3659a6;hpb=8d4abaa99403699aa5b5f02e899d2ea33980f913;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 18a203bd6..894b2dfc0 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -1,119 +1,222 @@ -<% - my( $cust_main ) = @_; - my @invoicing_list = $cust_main->invoicing_list; -%> - -Billing information -(Bill now) -<%= ntable("#cccccc") %>
<% mt('Complimentary') |h %> | +<% $yes %> | +|||
---|---|---|---|---|
<% mt('Balance due') |h %> | +<% $balance %> | +|||
<% emt( ucfirst($freq_info->{'freq_pretty'}). ' recurring' ) %> | +<% $money_char. sprintf('%.2f', $freq_info->{'amount'}) %> | +|||
<% mt('Prorate day of month') |h %> | +<% $cust_main->prorate_day %> | |||
Email invoices | -- <%= join(', ', grep { $_ ne 'POST' } @invoicing_list ) || 'no' %> +% } + +% if ( $conf->exists('cust_main-select-billday') +% && qsearch({ 'table' => 'cust_payby', +% 'hashref' => { 'custnum' => $cust_main->custnum, }, +% 'extra_sql' => "AND payby IN ( 'CARD', 'CHEK' )", +% 'order_by' => 'LIMIT 1', +% }) +% ) +% { + | |||
<% mt('Payment day of month') |h %> | +<% $cust_main->billday %> + | +|||
<% mt('Purchase Order #') |h %> | +<% $cust_main->po_number %> | +|||
<% 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 %> | +% my $tax_location = $conf->exists('tax-ship_address') +% ? $cust_main->ship_location +% : $cust_main->bill_location; +<% $tax_location->geocode('cch') %> | +|||
<% mt('Postal mail invoices') |h %> | +% if ( $cust_main->postal_invoice ) { +<% $yes . ( $cust_main->invoice_attn + ? ', attn: '. $cust_main->invoice_attn + : '' + ) %> | -|||
Billing type | -- -<% if ( $cust_main->payby eq 'CARD' || $cust_main->payby eq 'DCRD' ) { %> - - Credit card <%= $cust_main->payby eq 'CARD' ? '(automatic)' : '(on-demand)' %> +% } elsif ( $cust_main->invoice_noemail +% or scalar(@invoicing_list) == 0 ) { +% # alert the user that this customer has no way to receive an invoice + | <% $no %> | +% } else { +<% $no %> | +% }|
Card number | -<%= $cust_main->payinfo_masked %> | +<% mt('Email invoices') |h %> | +% if ( $cust_main->invoice_noemail and ! $cust_main->postal_invoice ) { +% # as above, warn if the customer refuses both email and postal invoices +<% $refused %> | +% } else { +<% $cust_main->invoice_noemail ? $refused : $allowed %> | +% }
Expiration | -<%= $cust_main->paydate %> | -|||
Name on card | -<%= $cust_main->payname %> | -<% mt('Other email notices') |h %> | ++ <% $cust_main->message_noemail ? $refused : $allowed %> | |
ABA/Routing code | -<%= $aba %> | -|||
Account number | -<%= $account %> | -|||
Bank name | -<%= $cust_main->payname %> | -<% mt('Invoice terms') |h %> | ++ <% $cust_main->invoice_terms + || emt('Default').' ('. ( $conf->config('invoice_default_terms', $cust_main->agentnum) + || emt('Payable upon receipt') + ). + ')' + %> | |
Phone number | -<%= $payinfo %> | -|||
P.O. | -<%= $cust_main->payinfo %> | -|||
Expiration | -<%= $cust_main->paydate %> | -|||
Attention | -<%= $cust_main->payname %> | -<% mt('Credit limit') |h %> | ++% my $default_credit_limit = $conf->config('default_credit_limit'); + <% length($cust_main->credit_limit) + ? $money_char. sprintf("%.2f", $cust_main->credit_limit) + : $default_credit_limit + ? "Default ($money_char". sprintf("%.2f", $default_credit_limit). ")" + : emt('Unlimited') + %> +% if ( $cust_main->num_cust_main_credit_limit ) { + (incidents) +% } | -|
Authorized by | -<%= $cust_main->payinfo %> | -|||
Expiration | -<%= $cust_main->paydate %> | -