[freeside-commits] freeside/FS/FS cust_bill.pm,1.163,1.164
Ivan,,,
ivan at wavetail.420.am
Mon Feb 19 07:40:32 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv25256
Modified Files:
cust_bill.pm
Log Message:
this should fix Can't call method "part_pkg" on an undefined value at .../cust_bill.pm line 434
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -d -r1.163 -r1.164
--- cust_bill.pm 7 Feb 2007 00:46:28 -0000 1.163
+++ cust_bill.pm 19 Feb 2007 15:40:30 -0000 1.164
@@ -432,12 +432,16 @@
my @open_lineitems = $self->open_cust_bill_pkg;
my $max_pay_weight =
- max( map { $_->cust_pkg->part_pkg->pay_weight || 0 }
- @open_lineitems
+ max( map { $_->part_pkg->pay_weight || 0 }
+ grep { $_ }
+ map { $_->cust_pkg }
+ @open_lineitems
);
my $max_credit_weight =
- max( map { $_->cust_pkg->part_pkg->credit_weight || 0 }
- @open_lineitems
+ max( map { $_->part_pkg->credit_weight || 0 }
+ grep { $_ }
+ map { $_->cust_pkg }
+ @open_lineitems
);
#if both are the same... payments first? it has to be something
More information about the freeside-commits
mailing list