summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-04-14 17:29:03 -0500
committerMitch Jackson <mitch@freeside.biz>2018-04-16 23:20:39 +0000
commita66fcac48d676a3218f5d25aa270a2e18554acd5 (patch)
tree2ca8b8ea59ad31cbac3b08e7dd512795d7563f0a
parent1a49f525882c638ef2df5b9732d2504f18c14da7 (diff)
RT# 79636,42357 Suppress $0.00 summary line items
-rw-r--r--FS/FS/Template_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
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