diff options
author | Mark Wells <mark@freeside.biz> | 2015-03-06 15:00:00 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-03-06 15:00:00 -0800 |
commit | 53ed077b4901be22b3ca5405a093364b6f6b6407 (patch) | |
tree | 0970dcddb54e6cec099c6a4ba5e38fa0a96fd7bc /FS/FS/quotation_pkg.pm | |
parent | 35c18f29bc29dedfe2fa4ef037390d90b17f87ba (diff) |
estimate tax on quotations, #32489
Diffstat (limited to 'FS/FS/quotation_pkg.pm')
-rw-r--r-- | FS/FS/quotation_pkg.pm | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/FS/FS/quotation_pkg.pm b/FS/FS/quotation_pkg.pm index c579e35..1c4766e 100644 --- a/FS/FS/quotation_pkg.pm +++ b/FS/FS/quotation_pkg.pm @@ -442,7 +442,7 @@ Returns the customer (L<FS::cust_main> object). sub cust_main { my $self = shift; - my $quotation = FS::quotation->by_key($self->quotationnum) or return ''; + my $quotation = $self->quotation or return ''; $quotation->cust_main; } @@ -454,20 +454,10 @@ Returns the prospect (L<FS::prospect_main> object). sub prospect_main { my $self = shift; - my $quotation = FS::quotation->by_key($self->quotationnum) or return ''; + my $quotation = $self->quotation or return ''; $quotation->prospect_main; } -sub quotation_pkg_tax { - my $self = shift; - qsearch('quotation_pkg_tax', { quotationpkgnum => $self->quotationpkgnum }); -} - -sub cust_location { - my $self = shift; - $self->locationnum ? qsearchs('cust_location', { locationnum => $self->locationnum }) : ''; -} - =back =head1 BUGS |