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/cust_bill_pkg.pm | |
parent | fbccadc20ceb30d90ef5ab8a2e135834a1aded31 (diff) |
localize dates that will appear on invoices, #24850
Diffstat (limited to 'FS/FS/cust_bill_pkg.pm')
-rw-r--r-- | FS/FS/cust_bill_pkg.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index c71ebf4..b234d6f 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -510,6 +510,21 @@ sub regularize_details { Returns the invoice (see L<FS::cust_bill>) for this invoice line item. +=item cust_main + +Returns the customer (L<FS::cust_main> object) for this line item. + +=cut + +sub cust_main { + # required for cust_main_Mixin equivalence + # and use cust_bill instead of cust_pkg because this might not have a + # cust_pkg + my $self = shift; + my $cust_bill = $self->cust_bill or return ''; + $cust_bill->cust_main; +} + =item previous_cust_bill_pkg Returns the previous cust_bill_pkg for this package, if any. |