<% include('/elements/header-popup.html', 'Enter Credit') %> <% include('/elements/error.html') %>
<% ntable("#cccccc", 2) %> Date <% time2str($date_format, $_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, ) %> Additional info Auto-apply
to invoices % if ( $conf->exists('pkg-balances') ) { <% include('/elements/tr-select-cust_pkg-balances.html', 'custnum' => $custnum, 'cgi' => $cgi ) %> % } else { % }
<%init> my $conf = new FS::Conf; my $date_format = $conf->config('date_format') || '%m/%d/%Y'; 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);