projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83ce207
)
fix Pg date parsing of expdate and thus paydate_monthyear method and thus bug#862...
author
ivan
<ivan>
Fri, 25 Jun 2004 18:28:04 +0000
(18:28 +0000)
committer
ivan
<ivan>
Fri, 25 Jun 2004 18:28:04 +0000
(18:28 +0000)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
07f0a34
..
c3a8ad8
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-2174,7
+2174,7
@@
paydate (credit card expiration date for CARD customers)
sub paydate_monthyear {
my $self = shift;
- if ( $self->paydate =~ /^(\d{4})-(\d{
2})-\d{
2}$/ ) { #Pg date format
+ if ( $self->paydate =~ /^(\d{4})-(\d{
1,2})-\d{1,
2}$/ ) { #Pg date format
( $2, $1 );
} elsif ( $self->paydate =~ /^(\d{1,2})-(\d{1,2}-)?(\d{4}$)/ ) {
( $1, $3 );