summaryrefslogtreecommitdiff
path: root/FS/FS/Template_Mixin.pm
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-04-14 17:29:03 -0500
committerMitch Jackson <mitch@freeside.biz>2018-04-14 17:29:03 -0500
commit49bedb2bc744edc47f5e189e449c7272da5510db (patch)
tree0381d91f4c3750a1db7d6e1b20baafd1651d2ec4 /FS/FS/Template_Mixin.pm
parent24504360a41565105569992bf4ff5273b5f88bf7 (diff)
RT# 79636,42357 Suppress $0.00 summary line items
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-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 6c1e30e4a..04ef4aab9 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1090,7 +1090,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