[freeside-commits] freeside/httemplate/view/cust_main packages.html, 1.70, 1.71 payment_history.html, 1.45, 1.46
Ivan,,,
ivan at wavetail.420.am
Sat Dec 19 17:02:27 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv7431
Modified Files:
packages.html payment_history.html
Log Message:
fix cust_main-packages-years, RT#6798
Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- payment_history.html 19 Dec 2009 22:32:41 -0000 1.45
+++ payment_history.html 20 Dec 2009 01:02:25 -0000 1.46
@@ -226,7 +226,7 @@
%my %target = ();
%
%my $years = $conf->config('payment_history-years') || 2;
-%my $older_than = time - $years * 31556736; #60*60*24*365.24
+%my $older_than = time - $years * 31556926; #60*60*24*365.2422
%my $hidden = 0;
%my $seen = 0;
%my $old_history = 0;
Index: packages.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages.html,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- packages.html 4 Dec 2009 04:40:27 -0000 1.70
+++ packages.html 20 Dec 2009 01:02:25 -0000 1.71
@@ -217,8 +217,7 @@
unless ( $cgi->param('showoldpackages') ) {
my $years = $conf->config('cust_main-packages-years') || 2;
- my $seconds = 31556926; #60*60*24*365.2422 is close enough
- my $then = time - $seconds;
+ my $then = time - $years * 31556926; #60*60*24*365.2422 is close enough
my %hide = ( 'cancelled' => 'cancel',
'one-time charge' => 'setup',
More information about the freeside-commits
mailing list