X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FBilling.pm;h=e78f3148a81e9bd113562328ceee2e7f2b57c4ec;hb=5f7fe6b10990eee2d1e8a9608cfd2bb656912477;hp=a4603df2cbbf8ec72b981c4b14c07ece6ce03e08;hpb=26e91d6afcd21b7113cdc6aebb37ad5acd3d5de8;p=freeside.git diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index a4603df2c..e78f3148a 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -593,15 +593,18 @@ sub _omit_zero_value_bundles { && scalar(@{$cust_bill_pkg->get('discounts')}) && $conf->exists('discount-show-always')); - warn " pkgnum ". $cust_bill_pkg->pkgnum. - " sum $sum, recur_show_zero ". $cust_bill_pkg->recur_show_zero. "\n" + warn " pkgnum ". $cust_bill_pkg->pkgnum. " sum $sum, ". + "setup_show_zero ". $cust_bill_pkg->setup_show_zero. + "recur_show_zero ". $cust_bill_pkg->recur_show_zero. "\n" if $DEBUG > 0; if (scalar(@cust_bill_pkg_bundle) && !$cust_bill_pkg->pkgpart_override) { push @cust_bill_pkg, @cust_bill_pkg_bundle if $sum > 0 || ($sum == 0 && ( $discount_show_always - || grep $_->recur_show_zero, @cust_bill_pkg_bundle ) + || grep {$_->recur_show_zero || $_->setup_show_zero} + @cust_bill_pkg_bundle + ) ); @cust_bill_pkg_bundle = (); $sum = 0; @@ -615,7 +618,9 @@ sub _omit_zero_value_bundles { push @cust_bill_pkg, @cust_bill_pkg_bundle if $sum > 0 || ($sum == 0 && ( $discount_show_always - || grep $_->recur_show_zero, @cust_bill_pkg_bundle ) + || grep {$_->recur_show_zero || $_->setup_show_zero} + @cust_bill_pkg_bundle + ) ); warn " _omit_zero_value_bundles: ". scalar(@in). @@ -1011,7 +1016,8 @@ sub _make_lines { || $recur != 0 || (!$part_pkg->hidden && $options{has_hidden}) #include some $0 lines || $discount_show_always - || ($recur == 0 && $part_pkg->recur_show_zero) + || ($setup == 0 && $cust_pkg->_X_show_zero('setup')) + || ($recur == 0 && $cust_pkg->_X_show_zero('recur')) ) {