summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-12-20 01:02:53 +0000
committerivan <ivan>2009-12-20 01:02:53 +0000
commit6c7a5399878b6cd3531842340c56cf814b9cc1a2 (patch)
treedc2b9665b5d938402b93c5fabca8a6aa0f0e3985
parent9b350e0965755e59d39637f75a9bce11d0a1cca7 (diff)
fix cust_main-packages-years, RT#6798
-rwxr-xr-xhttemplate/view/cust_main/packages.html3
-rw-r--r--httemplate/view/cust_main/payment_history.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index bd056a31c..31aa262f4 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -217,8 +217,7 @@ sub get_packages {
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',
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index 8208400bb..56a2c4dde 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -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;