diff options
author | Mark Wells <mark@freeside.biz> | 2014-01-27 16:52:39 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-01-27 16:52:39 -0800 |
commit | 48fc9f425ec3454f4346089318994ae6c1e080a8 (patch) | |
tree | e8da5309d456ebc079acba378a0ff97217631293 /FS/FS/quotation_pkg.pm | |
parent | fbccadc20ceb30d90ef5ab8a2e135834a1aded31 (diff) |
localize dates that will appear on invoices, #24850
Diffstat (limited to 'FS/FS/quotation_pkg.pm')
-rw-r--r-- | FS/FS/quotation_pkg.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/quotation_pkg.pm b/FS/FS/quotation_pkg.pm index c9724d1..c73f857 100644 --- a/FS/FS/quotation_pkg.pm +++ b/FS/FS/quotation_pkg.pm @@ -192,6 +192,18 @@ sub cust_bill_pkg_display { } +=item cust_main + +Returns the customer (L<FS::cust_main> object). + +=cut + +sub cust_main { + my $self = shift; + my $quotation = FS::quotation->by_key($self->quotationnum) or return ''; + $quotation->cust_main; +} + =back =head1 BUGS |