X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=7be320131e056f391e9d49cd667ebbf67c586e43;hb=259777e4667fc8a45496ba2805d1f7e01c75ac7b;hp=ba60e13d126b0a34ed3e036256e58ddd451157bd;hpb=a68564e6856a7ea63763eeaf7962a5cb2df649af;p=freeside.git
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index ba60e13d1..7be320131 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -23,6 +23,27 @@
<% $balance %> |
+% #54: just an arbitrary number i pulled out of my goober. ideally we'd like
+% # to consider e.g. a histogram of num_ncancelled_packages for the entire
+% # customer base, and compare it to a graph of the overhead for generating this
+% # information. (and optimize it better, we could get it more from SQL)
+% if ( $cust_main->num_ncancelled_pkgs < 54 ) {
+% foreach my $freq_info ($cust_main->display_recurring) {
+
+ <% emt( ucfirst($freq_info->{'freq_pretty'}). ' recurring' ) %> |
+ <% $money_char. sprintf('%.2f', $freq_info->{'amount'}) %> |
+
+% }
+% }
+
+% if ( $conf->exists('cust_main-select-prorate_day') ) {
+
+ <% mt('Prorate day of month') |h %> |
+ <% $cust_main->prorate_day %>
+ |
+
+% }
+
% if ( $conf->exists('cust_main-select-billday')
% && ($cust_main->payby eq 'CARD' || $cust_main->payby eq 'CHEK') ) {
@@ -146,7 +167,7 @@
% if ( $cust_main->payinfo ) {
- |
+ <% mt('P.O.') |h %> |
<% $cust_main->payinfo %> |
% }
@@ -213,41 +234,66 @@
% if ( $conf->exists('enable_taxproducts') ) {
<% mt('Tax location') |h %> |
- <% $cust_main->geocode('cch') %> |
+% my $tax_location = $conf->exists('tax-ship_address')
+% ? $cust_main->ship_location
+% : $cust_main->bill_location;
+ <% $tax_location->geocode('cch') %> |
% }
- <% mt('Postal invoices') |h %> |
+ <% mt('Postal mail invoices') |h %> |
<% ( grep { $_ eq 'POST' } @invoicing_list ) ? $yes : $no %>
|
- <% mt('FAX invoices') |h %> |
+ <% mt('Fax invoices') |h %> |
<% ( grep { $_ eq 'FAX' } @invoicing_list ) ? $yes : $no %>
|
-% unless ( $conf->exists('cust-email-high-visibility')) {
<% mt('Email invoices') |h %> |
+ <% $cust_main->invoice_noemail ? $no : $yes %>
+ |
+
+% unless ( $conf->exists('cust-email-high-visibility')) {
+
+ <% mt('Email address(es)') |h %> |
+
<% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %>
+% if ( $cust_main->message_noemail ) {
+
+ <% emt('(do not send notices)') %>
+% }
|
% }
<% mt('Invoice terms') |h %> |
- <% $cust_main->invoice_terms || emt('Default').' ('. ( $conf->config('invoice_default_terms') || emt('Payable upon receipt') ). ')' %>
+ <% $cust_main->invoice_terms
+ || emt('Default').' ('. ( $conf->config('invoice_default_terms', $cust_main->agentnum)
+ || emt('Payable upon receipt')
+ ).
+ ')'
+ %>
|
<% mt('Credit limit') |h %> |
- <% length($cust_main->credit_limit) ?
- $money_char.sprintf("%.2f", $cust_main->credit_limit) :
- emt('Unlimited') %>
+% 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)
+% }
|
@@ -272,9 +318,9 @@
% }
-% if ( $conf->exists('voip-cust_email_csv_cdr') ) {
+% if ( my $attach = $conf->config('voip-cdr_email_attach') ) {
- <% mt('Email CDRs as CSV') |h %> |
+ <% mt('Email CDRs as '.uc($attach)) |h %> |
<% $cust_main->email_csv_cdr ? $yes : $no %> |
% }