summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pkg_display.pm
diff options
context:
space:
mode:
authorjeff <jeff>2009-10-05 00:49:34 +0000
committerjeff <jeff>2009-10-05 00:49:34 +0000
commit947c1f964f1304242f8a6ffabacccf040f1d505e (patch)
treeba3e3a042f40ac4b1b660e944973a2f1b29f80fa /FS/FS/cust_bill_pkg_display.pm
parent161eeea92a87e07d071a6c953f2dbd30daeb480c (diff)
leading summary page invoices #RT5086
Diffstat (limited to 'FS/FS/cust_bill_pkg_display.pm')
-rw-r--r--FS/FS/cust_bill_pkg_display.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/cust_bill_pkg_display.pm b/FS/FS/cust_bill_pkg_display.pm
index 93c6e87..cf70cbd 100644
--- a/FS/FS/cust_bill_pkg_display.pm
+++ b/FS/FS/cust_bill_pkg_display.pm
@@ -52,7 +52,12 @@ sub section {
if ( defined($value) ) {
$self->setfield('section', $value);
} else {
- $self->getfield('section') || $self->cust_bill_pkg->part_pkg->categoryname;
+ my $section = $self->getfield('section');
+ unless ($section) {
+ my $part_pkg = $self->cust_bill_pkg->part_pkg;
+ $section = $part_pkg->categoryname if $part_pkg;
+ }
+ $section;
}
}