X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fbatch-cust_pay.html;h=84889399d6b6f3cea2c9b71f9441412623feb7d4;hb=3a17b276638200475d54201fa62566b7440e819a;hp=20cc8904571c3a3e685b1b3879758dcb1160cad2;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 20cc89045..84889399d 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -1,300 +1,18 @@ -<%= header( 'Quick payment entry', - menubar( - 'Main Menu' => $p, #popurl(1), - 'Old-style quick payment entry' => - $p. 'search/cust_main-quickpay.html', - ), - ( $cgi->param('error') ? '' : 'onload="addRow()"' ), - ) -%> - -<% if ( $cgi->param('error') ) { %> - <%= $cgi->param('error') %>

-<% } %> +<% include('/elements/header.html', 'Quick payment entry') %> +<% include('/elements/error.html') %>
- - - - - - - - - - - - -<% my $row = 0; - if ( $cgi->param('error') ) { - my $param = $cgi->Vars; -%> - - <% for ( $row = 0; exists($param->{"custnum$row"}); $row++ ) { %> - - - - - - - - - - - - - - - - <% } %> - -<% } %> - -
Cust #CustomerAmountCheck #
- " rownum="<%= $row %>"> - - - " rownum="<%= $row %>"> - - - - - $" > - - " > - - <% if ( $param->{"error$row"} ) { %> - Error: <%= $param->{"error$row"} %> - <% } %> -
+<% include( "elements/customer-table.html", + header => [ '', 'Amount', 'Check #', '' ], + fields => [ sub {'$'}, 'paid', 'payinfo', 'error', ], + types => [ 'immutable', '', '', 'immutable', ], + sizes => [ 0, 8, 10, 0, ], + param => { () }, + ) %> @@ -304,93 +22,11 @@
+<% include('/elements/footer.html') %> -<%= include('/elements/xmlhttp.html', - 'url' => $p. 'misc/xmlhttp-cust_main-search.cgi', - 'subs' => [qw( custnum_search smart_search )], - ) -%> - - +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Post payment batch'); - - +