<% include('/elements/header-popup.html', 'Enter Credit') %> <% include('/elements/error.html') %>
Credit <% ntable("#cccccc", 2) %> Date <% time2str("%D",$_date) %> Amount $ % %#print qq! Also post refund!; % <% include( '/elements/tr-select-reason.html', 'field' => 'reasonnum', 'reason_class' => 'R', 'control_button' => "document.getElementById('confirm_credit_button')", 'cgi' => $cgi, ) %> Auto-apply
to invoices % if ( $conf->exists('pkg-balances') ) { <% include('/elements/tr-select-cust_pkg-balances.html', 'custnum' => $custnum, 'cgi' => $cgi ) %> % } else { % }
<%once> my $conf = new FS::Conf; <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post credit'); my $custnum = $cgi->param('custnum'); my $amount = $cgi->param('amount'); my $_date = time; my $otaker = getotaker; my $p1 = popurl(1);