X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fbatch-cust_pay.html;h=505f2d0ff915856b7d0337150c1f312a1d0ba63f;hb=ad7f49821d40ffd099a45acc32ba91e0e211aede;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..505f2d0ff 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -1,301 +1,38 @@ -<%= 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; +<% include( "/elements/customer-table.html", + name_singular => 'payment', + header => [ '', 'Amount', 'Check #', '' ], + fields => [ sub {'$'}, 'paid', 'payinfo', 'error', ], + types => [ 'immutable', '', '', 'immutable', ], + align => [ 'c', 'r', 'r', 'l' ], + sizes => [ 0, 8, 10, 0, ], + colors => [ '', '', '', '#ff0000' ], + param => { () }, + footer => [ '$', '_TOTAL', '', '' ], + footer_align => [ 'c', 'r', 'r', '' ], + ) %> - <% for ( $row = 0; exists($param->{"custnum$row"}); $row++ ) { %> - - - - - - - - - - - - - - - - <% } %> - -<% } %> - -
Cust #CustomerAmountCheck #
- " rownum="<%= $row %>"> - - - " rownum="<%= $row %>"> - - - - - $" > - - " > - - <% if ( $param->{"error$row"} ) { %> - Error: <%= $param->{"error$row"} %> - <% } %> -
- @@ -304,93 +41,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'); - - +