X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit_bill.cgi;h=59a74b279c063a3f1f6b995e746f65993a210e9f;hb=3a17b276638200475d54201fa62566b7440e819a;hp=249ba31d0f4c2187a5421b33c7814c11bbf8ca43;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/edit/cust_credit_bill.cgi b/httemplate/edit/cust_credit_bill.cgi index 249ba31d0..59a74b279 100755 --- a/httemplate/edit/cust_credit_bill.cgi +++ b/httemplate/edit/cust_credit_bill.cgi @@ -1,9 +1,6 @@ -<% header("Apply Credit", '') %> +<% include('/elements/header-popup.html', 'Apply Credit') %> -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %>
@@ -56,6 +53,10 @@ function changed(what) { <%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Apply credit'); + my($crednum, $amount, $invnum); if ( $cgi->param('error') ) { #$cust_credit_bill = new FS::cust_credit_bill ( { @@ -88,5 +89,5 @@ my @cust_bill = sort { $a->_date <=> $b->_date } grep { $_->owed != 0 } qsearch('cust_bill', { 'custnum' => $cust_credit->custnum } ); - +