From d2b1f8e85a1e879ea6a986b9075eb2babd409af8 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 26 Apr 2016 15:28:55 -0500 Subject: [PATCH] RT#39819: Packages with Show zero setup/recurring do not print on quotations [quotation_pkg methods] --- FS/FS/quotation_pkg.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FS/FS/quotation_pkg.pm b/FS/FS/quotation_pkg.pm index b9b37991a..9854c4594 100644 --- a/FS/FS/quotation_pkg.pm +++ b/FS/FS/quotation_pkg.pm @@ -327,6 +327,11 @@ sub setup { } +sub setup_show_zero { + my $self = shift; + return $self->part_pkg->setup_show_zero; +} + sub setup_tax { my $self = shift; sum(0, map { $_->setup_amount } $self->quotation_pkg_tax); @@ -342,6 +347,11 @@ sub recur { } +sub recur_show_zero { + my $self = shift; + return $self->part_pkg->recur_show_zero; +} + sub recur_tax { my $self = shift; sum(0, map { $_->recur_amount } $self->quotation_pkg_tax); -- 2.11.0