[freeside-commits] freeside/FS/FS cust_pay_batch.pm,1.19,1.20

Ivan,,, ivan at wavetail.420.am
Thu Jan 18 10:14:07 PST 2007


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv26879

Modified Files:
	cust_pay_batch.pm 
Log Message:
fix zip parsing for batch results - don't want to abort processing because of an old not-well-checked zip

Index: cust_pay_batch.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pay_batch.pm,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- cust_pay_batch.pm	10 Jan 2007 02:41:33 -0000	1.19
+++ cust_pay_batch.pm	18 Jan 2007 18:14:05 -0000	1.20
@@ -174,15 +174,16 @@
     $self->payname($1);
   }
 
-  #$self->zip =~ /^\s*(\w[\w\-\s]{3,8}\w)\s*$/
-  #  or return "Illegal zip: ". $self->zip;
-  #$self->zip($1);
+  #we have lots of old zips in there... don't hork up batch results cause of em
+  $self->zip =~ /^\s*(\w[\w\-\s]{3,8}\w)\s*$/
+    or return "Illegal zip: ". $self->zip;
+  $self->zip($1);
 
   $self->country =~ /^(\w\w)$/ or return "Illegal country: ". $self->country;
   $self->country($1);
 
-  $error = $self->ut_zip('zip', $self->country);
-  return $error if $error;
+  #$error = $self->ut_zip('zip', $self->country);
+  #return $error if $error;
 
   #check invnum, custnum, ?
 



More information about the freeside-commits mailing list