projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't show 'Bill now' link unless the current user can...
[freeside.git]
/
httemplate
/
edit
/
cust_credit.cgi
diff --git
a/httemplate/edit/cust_credit.cgi
b/httemplate/edit/cust_credit.cgi
index
2fadb47
..
36109cf
100755
(executable)
--- a/
httemplate/edit/cust_credit.cgi
+++ b/
httemplate/edit/cust_credit.cgi
@@
-1,9
+1,6
@@
<% include('/elements/header-popup.html', 'Enter Credit') %>
<% include('/elements/header-popup.html', 'Enter Credit') %>
-% if ( $cgi->param('error') ) {
- <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
- <BR><BR>
-% }
+<% include('/elements/error.html') %>
<FORM NAME="credit_popup" ACTION="<% $p1 %>process/cust_credit.cgi" METHOD=POST>
<INPUT TYPE="hidden" NAME="crednum" VALUE="">
<FORM NAME="credit_popup" ACTION="<% $p1 %>process/cust_credit.cgi" METHOD=POST>
<INPUT TYPE="hidden" NAME="crednum" VALUE="">
@@
-51,12
+48,16
@@
Credit
</FORM>
</BODY>
</HTML>
</FORM>
</BODY>
</HTML>
-
<%once>
<%once>
+
my $conf = new FS::Conf;
my $conf = new FS::Conf;
-</%once>
+</%once>
<%init>
<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Post credit');
+
my($custnum, $amount, $reason);
if ( $cgi->param('error') ) {
#$cust_credit = new FS::cust_credit ( {
my($custnum, $amount, $reason);
if ( $cgi->param('error') ) {
#$cust_credit = new FS::cust_credit ( {
@@
-79,4
+80,5
@@
my $_date = time;
my $otaker = getotaker;
my $p1 = popurl(1);
my $otaker = getotaker;
my $p1 = popurl(1);
+
</%init>
</%init>