projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fd1d4
)
fix sales w/advertising source report for cust_bill_pkg missing cust_pkg, RT#27745
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 27 Feb 2014 02:35:04 +0000
(18:35 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 27 Feb 2014 02:35:04 +0000
(18:35 -0800)
httemplate/search/cust_bill_pkg_referral.html
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_bill_pkg_referral.html
b/httemplate/search/cust_bill_pkg_referral.html
index
c4dde32
..
a39fa57
100644
(file)
--- a/
httemplate/search/cust_bill_pkg_referral.html
+++ b/
httemplate/search/cust_bill_pkg_referral.html
@@
-41,8
+41,11
@@
'classname',
sub { # report_option
my $cust_bill_pkg = shift;
- my $pkgpart = $cust_bill_pkg->pkgpart_override
- || $cust_bill_pkg->cust_pkg->pkgpart;
+ my $pkgpart = $cust_bill_pkg->pkgpart_override;
+ unless ( $pkgpart ) {
+ my $cust_pkg = $cust_bill_pkg->cust_pkg or return '';
+ $pkgpart = $cust_pkg->pkgpart;
+ }
if ( !exists($report_classes{$pkgpart}) ) {
my $part_pkg = FS::part_pkg->by_key($pkgpart);
my %opts = $part_pkg->options;