blob: 960843adfda9a6e72e4c44ad89cb6a109db8baa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<!-- $Id: cust_pay_batch.cgi,v 1.2 2002-01-30 14:18:08 ivan Exp $ -->
<%
print header("Pending credit card batch", menubar(
'Main Menu' => $p,
# 'Add new referral' => "../edit/part_referral.cgi",
)), &table(), <<END;
<TR>
<TH>#</TH>
<TH><font size=-1>inv#</font></TH>
<TH COLSPAN=2>Customer</TH>
<TH>Card name</TH>
<TH>Card</TH>
<TH>Exp</TH>
<TH>Amount</TH>
</TR>
END
foreach my $cust_pay_batch ( sort {
$a->getfield('paybatchnum') <=> $b->getfield('paybatchnum')
} qsearch('cust_pay_batch',{}) ) {
# my $date = time2str( "%a %b %e %T %Y", $queue->_date );
# my $status = $hashref->{status};
# if ( $status eq 'failed' || $status eq 'locked' ) {
# $status .=
# qq! ( <A HREF="$p/edit/cust_pay_batch.cgi?jobnum=$jobnum&action=new">retry</A> |!.
# qq! <A HREF="$p/edit/cust_pay_batch.cgi?jobnum$jobnum&action=del">remove </A> )!;
# }
my $cardnum = $cust_pay_batch->{cardnum};
$cardnum =~ s/.{4}$/xxxx/;
print <<END;
<TR>
<TD>$cust_pay_batch->{paybatchnum}</TD>
<TD><A HREF="../view/cust_bill.cgi?$cust_pay_batch->{invnum}">$cust_pay_batch->{invnum}</TD>
<TD><A HREF="../view/cust_main.cgi?$cust_pay_batch->{custnum}">$cust_pay_batch->{custnum}</TD>
<TD>$cust_pay_batch->{last}, $cust_pay_batch->{last}</TD>
<TD>$cust_pay_batch->{payname}</TD>
<TD>$cardnum</TD>
<TD>$cust_pay_batch->{exp}</TD>
<TD align="right">\$$cust_pay_batch->{amount}</TD>
</TR>
END
}
print <<END;
</TABLE>
</BODY>
</HTML>
END
%>
|