fix i18n zip
authorivan <ivan>
Fri, 22 Feb 2002 23:08:11 +0000 (23:08 +0000)
committerivan <ivan>
Fri, 22 Feb 2002 23:08:11 +0000 (23:08 +0000)
FS/FS/cust_pay_batch.pm

index dfafb0a..c4427c3 100644 (file)
@@ -173,13 +173,16 @@ sub check {
     $self->payname($1);
   }
 
-  $self->zip =~ /^\s*(\w[\w\-\s]{3,8}\w)\s*$/
-    or return "Illegal zip: ". $self->zip;
-  $self->zip($1);
+  #$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;
+
   #check invnum, custnum, ?
 
   ''; #no error
@@ -189,7 +192,7 @@ sub check {
 
 =head1 VERSION
 
-$Id: cust_pay_batch.pm,v 1.5 2002-02-14 01:12:19 ivan Exp $
+$Id: cust_pay_batch.pm,v 1.6 2002-02-22 23:08:11 ivan Exp $
 
 =head1 BUGS