X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=49dbeaeba11c219e4b6808df2428da87e3065743;hb=5f4157a6abad950e88e4c2b095f9399d9120183a;hp=894b2dfc0ac1abe2ec5f5daa526d787ff49e20a6;hpb=1aecd5bf33146bf3f374341a3814960ae1d419e8;p=freeside.git
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index 894b2dfc0..49dbeaeba 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -21,23 +21,69 @@
<% $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'}) %> |
-
-% }
+
+ <% emt( 'Recurring' ) %> |
+ |
+
+
+<& '/elements/xmlhttp.html',
+ 'url' => $fsurl.'misc/xmlhttp-cust_main-display_recurring.html',
+ 'subs' => [ 'get_display_recurring'] &>
+
+
+
+% # 10 is an arbitrary number, use ajax for customers with many packages
+% if ( $cust_main->num_billing_pkgs > 10 ) {
+<& '/elements/xmlhttp.html',
+ 'url' => $fsurl.'misc/xmlhttp-cust_main-display_recurring.html',
+ 'subs' => [ 'get_display_recurring'] &>
+
+% } else {
+
% }
% if ( $conf->exists('cust_main-select-prorate_day') ) {
<% mt('Prorate day of month') |h %> |
<% $cust_main->prorate_day %>
+ <% $cust_main->force_prorate_day && (''.emt('(applies to all packages)').'') %>
|
% }
@@ -86,13 +132,13 @@
% }
-% if ( $conf->config('tax_data_vendor') eq 'cch' ) {
+% if ( $conf->config('tax_data_vendor') ) {
<% mt('Tax location') |h %> |
% my $tax_location = $conf->exists('tax-ship_address')
% ? $cust_main->ship_location
% : $cust_main->bill_location;
- <% $tax_location->geocode('cch') %> |
+ <% $tax_location->geocode %> |
% }