projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
leading summary page invoices #RT5086
[freeside.git]
/
FS
/
FS
/
cust_bill_pkg_display.pm
diff --git
a/FS/FS/cust_bill_pkg_display.pm
b/FS/FS/cust_bill_pkg_display.pm
index
93c6e87
..
cf70cbd
100644
(file)
--- 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 {
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;
}
}
}
}