[freeside-commits] freeside/FS/FS cust_bill_pkg_display.pm, 1.2, 1.2.2.1
Ivan,,,
ivan at wavetail.420.am
Wed Oct 21 22:32:34 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv24051
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_bill_pkg_display.pm
Log Message:
fix incompatibility w/invoice_sections vs. cust_bill_pkg.pkgnum -1 "virtual line item" (rare)
Index: cust_bill_pkg_display.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg_display.pm,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- cust_bill_pkg_display.pm 5 Oct 2009 00:49:34 -0000 1.2
+++ cust_bill_pkg_display.pm 22 Oct 2009 05:32:32 -0000 1.2.2.1
@@ -54,8 +54,11 @@
} 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;
}
More information about the freeside-commits
mailing list