From: ivan Date: Fri, 22 Feb 2002 23:08:11 +0000 (+0000) Subject: fix i18n zip X-Git-Tag: freeside_1_4_0pre11~10 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f96fd39dcc9c2563f8ba2976f7b9d23c0b3fcc29 fix i18n zip --- diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm index dfafb0a13..c4427c387 100644 --- a/FS/FS/cust_pay_batch.pm +++ b/FS/FS/cust_pay_batch.pm @@ -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