X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=5935da9cdf2a03a82bdd27158fc699a7d912a2fd;hb=25386efd0e3f725d6cef005eba729840d3b4b3cb;hp=a94b5c15a91e38e3b1eb9e667f69e46c3703e92a;hpb=0929e7aec153632691a64ae8755c082090fd1de5;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index a94b5c15a..5935da9cd 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -31,8 +31,7 @@ '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)').'') %> % } @@ -119,13 +132,13 @@ get_display_recurring('custnum',<% $cust_main->custnum %>, function (xmlresult) % } -% 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 && $tax_location->geocode %> % } @@ -187,13 +200,6 @@ get_display_recurring('custnum',<% $cust_main->custnum %>, function (xmlresult) -% if ( $conf->exists('voip-cust_cdr_spools') ) { - - <% mt('Spool CDRs') |h %> - <% $cust_main->spool_cdr ? $yes : $no %> - -% } - % if ( $conf->exists('voip-cust_cdr_squelch') ) { <% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %>