[freeside-commits]
freeside/httemplate/misc download-batch.cgi, 1.16, 1.17
Ivan,,,
ivan at wavetail.420.am
Sun Jan 14 23:53:56 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv10449
Modified Files:
download-batch.cgi
Log Message:
add batch expiration date incrementer for 295
Index: download-batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/download-batch.cgi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- download-batch.cgi 10 Jan 2007 00:41:36 -0000 1.16
+++ download-batch.cgi 15 Jan 2007 07:53:54 -0000 1.17
@@ -87,7 +87,13 @@
%
% $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;
More information about the freeside-commits
mailing list