[freeside-commits] freeside/FS/FS cust_bill.pm,1.321,1.322
Ivan,,,
ivan at wavetail.420.am
Wed Feb 23 15:05:07 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30894
Modified Files:
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.321
retrieving revision 1.322
diff -u -w -d -r1.321 -r1.322
--- cust_bill.pm 22 Feb 2011 21:18:20 -0000 1.321
+++ cust_bill.pm 23 Feb 2011 23:05:05 -0000 1.322
@@ -2551,8 +2551,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