freeside/FS/FS cust_main.pm,1.150,1.151

ivan ivan at pouncequick.420.am
Mon Apr 19 18:23:09 PDT 2004


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv15092

Modified Files:
	cust_main.pm 
Log Message:
accept expiration dates in the same format they are output...

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- cust_main.pm	20 Apr 2004 00:58:04 -0000	1.150
+++ cust_main.pm	20 Apr 2004 01:23:06 -0000	1.151
@@ -895,7 +895,7 @@
     my( $m, $y );
     if ( $self->paydate =~ /^(\d{1,2})[\/\-](\d{2}(\d{2})?)$/ ) {
       ( $m, $y ) = ( $1, length($2) == 4 ? $2 : "20$2" );
-    } elsif ( $self->paydate =~ /^(20)?(\d{2})[\/\-](\d{2})[\/\-]\d+$/ ) {
+    } elsif ( $self->paydate =~ /^(20)?(\d{2})[\/\-](\d{1,2})[\/\-]\d+$/ ) {
       ( $m, $y ) = ( $3, "20$2" );
     } else {
       return "Illegal expiration date: ". $self->paydate;




More information about the freeside-commits mailing list