X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fquotation.pm;h=f820510660e3b42616413eff04123c71d45428c5;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=7bf5ecb61a07da5c486ed79db516c845b02c995c;hpb=633af1c0e996b16d0e18a7cdff05490ea7d46ca6;p=freeside.git diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm index 7bf5ecb61..f82051066 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -274,10 +274,12 @@ sub _items_sections { # but its good enough for the 99% common case of preventing totals from # displaying for prorate packages $disable_total = 1 - if $part_pkg->plan =~ /^prorate/ - || $part_pkg->plan eq 'agent' - || $part_pkg->plan =~ /^torrus/ - || $part_pkg->option('sync_bill_date'); + if $part_pkg->plan =~ /^(prorate|torrus|agent$)/ + || $part_pkg->option('recur_method') eq 'prorate' + || ( $part_pkg->option('sync_bill_date') + && $self->custnum + && $self->cust_main->billing_pkgs #num_billing_pkgs when we have it + ); } my @pkg_freq_order = keys %{ FS::Misc->pkg_freqs };