projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae13f6c
)
RT#39819: Packages with Show zero setup/recurring do not print on quotations [quotati...
author
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 26 Apr 2016 20:28:55 +0000
(15:28 -0500)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 26 Apr 2016 20:28:55 +0000
(15:28 -0500)
FS/FS/quotation_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/quotation_pkg.pm
b/FS/FS/quotation_pkg.pm
index
b9b3799
..
9854c45
100644
(file)
--- 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);