[freeside-commits] freeside/FS/FS cust_main.pm, 1.271.2.32, 1.271.2.33
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Dec 4 10:27:35 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv23346
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main.pm
Log Message:
ensure a valid date is onhand (fixes #2800)
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.271.2.32
retrieving revision 1.271.2.33
diff -u -d -r1.271.2.32 -r1.271.2.33
--- cust_main.pm 4 Dec 2007 18:19:05 -0000 1.271.2.32
+++ cust_main.pm 4 Dec 2007 18:27:33 -0000 1.271.2.33
@@ -5216,7 +5216,7 @@
$notify_template->compile()
or die "can't compile template: Text::Template::ERROR";
- my $paydate = $customer->paydate;
+ my $paydate = $customer->paydate || '2037-12-31';
$FS::notify_template::_template::first = $customer->first;
$FS::notify_template::_template::last = $customer->last;
$FS::notify_template::_template::company = $customer->company;
@@ -5291,7 +5291,7 @@
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-31';
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