X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=aeebc5ab2b46a1c273280d4d5b8e4b0f6eeeb74a;hb=b9229d6233a5ecaa894c5ed7035cf2743ee6c295;hp=eed3baf4b9dc6f5ef8af03de16591f979828a581;hpb=f61619b95f05b576518ea698ad7e22267b4c36c4;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index eed3baf4b..aeebc5ab2 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -23,17 +23,63 @@ <% $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') ) {