my credit card bug
Jeff Garner
jmgarner at uswest.net
Tue Jan 11 21:22:13 PST 2000
I fixed it by adding the following to the /edit/cust_main.cgi
under sub expselect
if ( $date =~ /^(\d{4})-(\d{1})-\d{2}$/ ) { #PostgreSQL date format
( $m, $y ) = ( $2, $1 );
it appears my credit exp dates were getting setup as yyyy-m-dd ex 2002-6-01
The key was
if ( $date =~ /^(\d{4})-(\d{2})-\d{2}$/ ) { #PostgreSQL date format
( $m, $y ) = ( $2, $1 );
so I added the line with \d{1} and it worked good
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20000112/1ffa3963/attachment.html
More information about the freeside-users
mailing list