[freeside-commits] freeside/FS/FS cust_bill.pm, 1.299.2.20, 1.299.2.21
Ivan,,,
ivan at wavetail.420.am
Wed Feb 23 15:05:12 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30902
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_bill.pm
Log Message:
fix harmless Argument "" isn't numeric warnings
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.299.2.20
retrieving revision 1.299.2.21
diff -u -w -d -r1.299.2.20 -r1.299.2.21
--- cust_bill.pm 22 Feb 2011 21:18:22 -0000 1.299.2.20
+++ cust_bill.pm 23 Feb 2011 23:05:09 -0000 1.299.2.21
@@ -2520,8 +2520,10 @@
my $max_edate = 0;
foreach my $cust_bill_pkg ( $self->cust_bill_pkg ) {
next unless $cust_bill_pkg->pkgnum > 0;
- $min_sdate = $cust_bill_pkg->sdate if $cust_bill_pkg->sdate < $min_sdate;
- $max_edate = $cust_bill_pkg->edate if $cust_bill_pkg->edate > $max_edate;
+ $min_sdate = $cust_bill_pkg->sdate
+ if length($cust_bill_pkg->sdate) && $cust_bill_pkg->sdate < $min_sdate;
+ $max_edate = $cust_bill_pkg->edate
+ if length($cust_bill_pkg->edate) && $cust_bill_pkg->edate > $max_edate;
}
$invoice_data{'bill_period'} = '';
More information about the freeside-commits
mailing list