also fix this in the future
authormark <mark>
Tue, 12 Oct 2010 00:12:02 +0000 (00:12 +0000)
committermark <mark>
Tue, 12 Oct 2010 00:12:02 +0000 (00:12 +0000)
FS/FS/cust_main.pm

index 7cfdd89..a4bebb5 100644 (file)
@@ -1723,6 +1723,7 @@ sub check {
     } else {
       return "Illegal expiration date: ". $self->paydate;
     }
+    $m = sprintf('%02d',$m);
     $self->paydate("$y-$m-01");
     my($nowm,$nowy)=(localtime(time))[4,5]; $nowm++; $nowy+=1900;
     return gettext('expired_card')