=item paybatchnum - primary key (automatically assigned)
-=item trancode - 77 for charges
-
=item cardnum
=item exp - card expiration
my $error =
$self->ut_numbern('paybatchnum')
- || $self->ut_numbern('trancode')
+ || $self->ut_numbern('trancode') #depriciated
|| $self->ut_number('cardnum')
|| $self->ut_money('amount')
|| $self->ut_number('invnum')
|| $self->ut_text('address1')
|| $self->ut_textn('address2')
|| $self->ut_text('city')
- || $self->ut_text('state')
+ || $self->ut_textn('state')
;
return $error if $error;
$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
=head1 VERSION
-$Id: cust_pay_batch.pm,v 1.3 2001-10-02 16:00:30 jeff Exp $
+$Id: cust_pay_batch.pm,v 1.6 2002-02-22 23:08:11 ivan Exp $
=head1 BUGS