eliminate extraneous newlines
[freeside.git] / httemplate / misc / download-batch.cgi
1 <%
2
3 http_header('Content-Type' => 'text/comma-separated-values');
4
5 for my $cust_pay_batch ( sort { $a->paybatchnum <=> $b->paybatchnum }
6                               qsearch('cust_pay_batch', {} )
7 ) {
8
9 $cust_pay_batch->exp =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/;
10 my( $mon, $y ) = ( $2, $1 );
11 $mon = "0$mon" if $mon < 10;
12 my $exp = "$mon$y";
13
14 %>,,,,<%= $cust_pay_batch->cardnum %>,<%= $exp %>,<%= $cust_pay_batch->amount %>,<%= $cust_pay_batch->paybatchnum %>
15 <% } %>