RT# 79636,42357 Suppress $0.00 summary line items
authorMitch Jackson <mitch@freeside.biz>
Sat, 14 Apr 2018 22:29:03 +0000 (17:29 -0500)
committerMitch Jackson <mitch@freeside.biz>
Mon, 16 Apr 2018 22:48:19 +0000 (22:48 +0000)
FS/FS/Template_Mixin.pm

index 2091c48..c56bbed 100644 (file)
@@ -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