X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_bill_pay.cgi;h=b6a0647682a9aa26fd237f3fb563798f7c4c72bc;hb=1d920e3661c29398763d05c82bbe3a493a19fbae;hp=2035e4b642f631b7685390b30cea01a71bef43ed;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/cust_bill_pay.cgi b/httemplate/edit/cust_bill_pay.cgi index 2035e4b64..b6a064768 100755 --- a/httemplate/edit/cust_bill_pay.cgi +++ b/httemplate/edit/cust_bill_pay.cgi @@ -1,39 +1,8 @@ -% -% -%my($paynum, $amount, $invnum); -%if ( $cgi->param('error') ) { -% $paynum = $cgi->param('paynum'); -% $amount = $cgi->param('amount'); -% $invnum = $cgi->param('invnum'); -%} else { -% my($query) = $cgi->keywords; -% $query =~ /^(\d+)$/; -% $paynum = $1; -% $amount = ''; -% $invnum = ''; -%} -% -%my $otaker = getotaker; -% -%my $p1 = popurl(1); -% -% -<% header("Apply Payment", '') %> -% if ( $cgi->param('error') ) { - - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/header-popup.html', 'Apply Payment') %> +<% include('/elements/error.html') %>
-% -%my $cust_pay = qsearchs('cust_pay', { 'paynum' => $paynum } ); -%die "payment $paynum not found!" unless $cust_pay; -% -%my $unapplied = $cust_pay->unapplied; -% - Payment #<% $paynum %> @@ -43,28 +12,18 @@ Payment #<% $paynum %>
Amount: $<% $cust_pay->paid %>
Unapplied amount: $<% $unapplied %> -% -%my @cust_bill = grep $_->owed != 0, -% qsearch('cust_bill', { 'custnum' => $cust_pay->custnum } ); -% -% - -