From a66fcac48d676a3218f5d25aa270a2e18554acd5 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sat, 14 Apr 2018 17:29:03 -0500 Subject: [PATCH] RT# 79636,42357 Suppress $0.00 summary line items --- FS/FS/Template_Mixin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 3c063f9eb..54a5d132e 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -1086,7 +1086,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 -- 2.20.1