diff options
author | ivan <ivan> | 2009-08-24 08:50:47 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-08-24 08:50:47 +0000 |
commit | d9a702d507ac900c84a21b9336db3112da313ed8 (patch) | |
tree | b0821925d66a5ec232c9ae952a4f44a89405418c /FS | |
parent | 6859dc3c623542c1a1f823cc6c18c0191527380a (diff) |
(start of) customer move script, RT#5351
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index ca5a4e83f..cdfe93848 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1845,6 +1845,8 @@ sub check { 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 =~ /^19(\d{2})[\/\-](\d{1,2})[\/\-]\d+$/ ) { + ( $m, $y ) = ( $2, "19$1" ); } elsif ( $self->paydate =~ /^(20)?(\d{2})[\/\-](\d{1,2})[\/\-]\d+$/ ) { ( $m, $y ) = ( $3, "20$2" ); } else { |