From: Mitch Jackson Date: Sat, 14 Apr 2018 22:29:03 +0000 (-0500) Subject: RT# 79636,42357 Suppress $0.00 summary line items X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=799369dbc4827b78a1e9cd5e931bc861ce2ac449 RT# 79636,42357 Suppress $0.00 summary line items --- diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 2091c48c8..c56bbed5a 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -1089,7 +1089,7 @@ sub print_generic { } } else { # subtotal sectioning is the same as for the actual invoice sections - @summary_subtotals = @sections; + @summary_subtotals = grep $_->{subtotal}, @sections; } # Hereafter, push sections to both @sections and @summary_subtotals