[freeside-commits] branch FREESIDE_3_BRANCH updated. b9491d5d5f06f41963c9e4d523a6bce7d8fa132b
Ivan
ivan at 420.am
Wed Feb 26 18:35:09 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via b9491d5d5f06f41963c9e4d523a6bce7d8fa132b (commit)
from ed9d2f0d5900e8fb3202c8438bbd4acf3ba04d51 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b9491d5d5f06f41963c9e4d523a6bce7d8fa132b
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Feb 26 18:35:06 2014 -0800
fix sales w/advertising source report for cust_bill_pkg missing cust_pkg, RT#27745
diff --git a/httemplate/search/cust_bill_pkg_referral.html b/httemplate/search/cust_bill_pkg_referral.html
index c4dde32..a39fa57 100644
--- 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;
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_bill_pkg_referral.html | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list