X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=eed3baf4b9dc6f5ef8af03de16591f979828a581;hb=f61619b95f05b576518ea698ad7e22267b4c36c4;hp=5c46803d2f0c4d67cac538fc6f732bd51ca764af;hpb=e881063d6e46d991003cf8fae96d8d36780fedcd;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 5c46803d2..eed3baf4b 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -23,6 +23,19 @@ <% $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 %> @@ -221,7 +234,10 @@ % 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') %> % } @@ -247,21 +263,37 @@ <% 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) +% } @@ -286,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 %> % }