projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f775ea
)
fix incompatibility w/invoice_sections vs. cust_bill_pkg.pkgnum -1 "virtual line...
author
ivan
<ivan>
Thu, 22 Oct 2009 05:32:31 +0000
(
05:32
+0000)
committer
ivan
<ivan>
Thu, 22 Oct 2009 05:32:31 +0000
(
05:32
+0000)
FS/FS/cust_bill_pkg_display.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill_pkg_display.pm
b/FS/FS/cust_bill_pkg_display.pm
index
cf70cbd
..
e9da18d
100644
(file)
--- a/
FS/FS/cust_bill_pkg_display.pm
+++ b/
FS/FS/cust_bill_pkg_display.pm
@@
-54,8
+54,11
@@
sub section {
} else {
my $section = $self->getfield('section');
unless ($section) {
- my $part_pkg = $self->cust_bill_pkg->part_pkg;
- $section = $part_pkg->categoryname if $part_pkg;
+ my $cust_bill_pkg = $self->cust_bill_pkg;
+ if ( $cust_bill_pkg->pkgnum > 0 ) {
+ my $part_pkg = $cust_bill_pkg->part_pkg;
+ $section = $part_pkg->categoryname if $part_pkg;
+ }
}
$section;
}