From 20c1183d2673b62bd0e29eb65f0a9a2c974b8027 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 30 Oct 2001 19:05:27 +0000 Subject: depriciate cust_pay_batch.trancode web interface to view pending batch --- httemplate/browse/cust_pay_batch.cgi | 68 ++++++++++++++++++++++++++++++++++++ httemplate/docs/schema.html | 2 +- httemplate/index.html | 1 + 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100755 httemplate/browse/cust_pay_batch.cgi (limited to 'httemplate') diff --git a/httemplate/browse/cust_pay_batch.cgi b/httemplate/browse/cust_pay_batch.cgi new file mode 100755 index 000000000..7779bd0c3 --- /dev/null +++ b/httemplate/browse/cust_pay_batch.cgi @@ -0,0 +1,68 @@ +<% +# + +use strict; +use vars qw( $cgi $p ); # $part_referral ); +use CGI; +use CGI::Carp qw(fatalsToBrowser); +use Date::Format; +use FS::UID qw(cgisuidsetup); +use FS::Record qw(qsearch); +use FS::CGI qw(header menubar popurl table); +use FS::queue; + +$cgi = new CGI; + +&cgisuidsetup($cgi); + +$p = popurl(2); + +print header("Pending credit card batch", menubar( + 'Main Menu' => $p, +# 'Add new referral' => "../edit/part_referral.cgi", +)), &table(), < + # + inv# + Customer + Card name + Card + Exp + Amount + +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! ( retry |!. +# qq! remove )!; +# } + my $cardnum = $cust_pay_batch->{cardnum}; + $cardnum =~ s/.{4}$/xxxx/; + print < + $cust_pay_batch->{paybatchnum} + $cust_pay_batch->{invnum} + $cust_pay_batch->{custnum} + $cust_pay_batch->{last}, $cust_pay_batch->{last} + $cust_pay_batch->{payname} + $cardnum + $cust_pay_batch->{exp} + \$$cust_pay_batch->{amount} + +END + +} + +print < + + +END + +%> diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html index 145d55fc2..a5bf16c37 100644 --- a/httemplate/docs/schema.html +++ b/httemplate/docs/schema.html @@ -127,7 +127,7 @@
  • cust_pay_batch - Pending batch
      -
    • trancode - 77 for charges +
    • paybatchnum
    • cardnum
    • exp - card expiration
    • amount diff --git a/httemplate/index.html b/httemplate/index.html index 236b72b20..97016e680 100644 --- a/httemplate/index.html +++ b/httemplate/index.html @@ -60,6 +60,7 @@
  • NAS ports
  • Joe queue +
  • Pending credit card batch
    -- cgit v1.2.1