projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a37da3d
)
add batch expiration date incrementer for 295
author
ivan
<ivan>
Mon, 15 Jan 2007 07:53:54 +0000
(07:53 +0000)
committer
ivan
<ivan>
Mon, 15 Jan 2007 07:53:54 +0000
(07:53 +0000)
httemplate/misc/download-batch.cgi
patch
|
blob
|
history
diff --git
a/httemplate/misc/download-batch.cgi
b/httemplate/misc/download-batch.cgi
index
7e6750c
..
74805b2
100644
(file)
--- a/
httemplate/misc/download-batch.cgi
+++ b/
httemplate/misc/download-batch.cgi
@@
-87,7
+87,13
@@
%
% $cust_pay_batch->exp =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/;
% my( $mon, $y ) = ( $2, $1 );
%
% $cust_pay_batch->exp =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/;
% my( $mon, $y ) = ( $2, $1 );
-% $mon = "0$mon" if $mon < 10;
+% if ( $conf->exists('batch-increment_expiration') ) {
+% my( $curmon, $curyear ) = (localtime(time))[4,5];
+% $curmon++; $curyear-=100;
+% $y++ while $y < $curyear || ( $y == $curyear && $mon < $curmon );
+% }
+% $mon = "0$mon" if $mon =~ /^\d$/;
+% $y = "0$y" if $y =~ /^\d$/;
% my $exp = "$mon$y";
% $batchcount++;
% $batchtotal += $cust_pay_batch->amount;
% my $exp = "$mon$y";
% $batchcount++;
% $batchtotal += $cust_pay_batch->amount;