diff options
author | Mark Wells <mark@freeside.biz> | 2015-01-31 14:44:16 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-01-31 14:44:22 -0800 |
commit | f6abf4cd6d8e7a0121124e9394b5f28f5bc4daa5 (patch) | |
tree | db6264c4c2c38a423310d82d4443580607ecc82d /FS/FS/TemplateItem_Mixin.pm | |
parent | 3d796bf211374d941bda1116ee27a0543045ea8a (diff) |
discounts + quotations, #33099
Diffstat (limited to 'FS/FS/TemplateItem_Mixin.pm')
-rw-r--r-- | FS/FS/TemplateItem_Mixin.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/FS/FS/TemplateItem_Mixin.pm b/FS/FS/TemplateItem_Mixin.pm index 6ae3364..27b8f1b 100644 --- a/FS/FS/TemplateItem_Mixin.pm +++ b/FS/FS/TemplateItem_Mixin.pm @@ -367,15 +367,17 @@ sub cust_bill_pkg_detail { } -=item cust_bill_pkg_discount +=item pkg_discount -Returns the list of associated cust_bill_pkg_discount objects. +Returns the list of associated cust_bill_pkg_discount or +quotation_pkg_discount objects. =cut -sub cust_bill_pkg_discount { +sub pkg_discount { my $self = shift; - qsearch( $self->discount_table, { 'billpkgnum' => $self->billpkgnum } ); + my $pkey = $self->primary_key; + qsearch( $self->discount_table, { $pkey => $self->get($pkey) } ); } 1; |