[freeside-commits] freeside/FS/FS cust_main.pm,1.298,1.299
Ivan,,,
ivan at wavetail.420.am
Mon Sep 10 17:28:05 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv19324
Modified Files:
cust_main.pm
Log Message:
better default paydate for letters
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.298
retrieving revision 1.299
diff -u -d -r1.298 -r1.299
--- cust_main.pm 17 Aug 2007 14:01:08 -0000 1.298
+++ cust_main.pm 11 Sep 2007 00:28:03 -0000 1.299
@@ -5654,7 +5654,9 @@
my %letter_data = map { $_ => $self->$_ } $self->fields;
$letter_data{payinfo} = $self->mask_payinfo;
- my $paydate = $self->paydate || '2037-12';
+ #my $paydate = $self->paydate || '2037-12';
+ my $paydate = $self->paydate =~ /^\S+$/ ? $self->paydate : '2037-12';
+
my $payby = $self->payby;
my ($payyear,$paymonth,$payday) = split (/-/,$paydate);
my $expire_time = timelocal(0,0,0,$payday,--$paymonth,$payyear);
More information about the freeside-commits
mailing list