X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fcust_bill_pkg.pm;h=b234d6f9302c95c9494aea476df30cd0752f006f;hb=48fc9f425ec3454f4346089318994ae6c1e080a8;hp=c71ebf4145424fba29c585f6cd501730bed389bb;hpb=fbccadc20ceb30d90ef5ab8a2e135834a1aded31;p=freeside.git diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index c71ebf414..b234d6f93 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) for this invoice line item. +=item cust_main + +Returns the customer (L 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.