projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
on accounts overview: show time applied after multipliers, not actual time worked
[freeside.git]
/
httemplate
/
edit
/
quick-charge.html
diff --git
a/httemplate/edit/quick-charge.html
b/httemplate/edit/quick-charge.html
index
92e0ae7
..
95ec70c
100644
(file)
--- a/
httemplate/edit/quick-charge.html
+++ b/
httemplate/edit/quick-charge.html
@@
-82,6
+82,7
@@
function validate_quick_charge () {
<TD>
$<INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $amount %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge_amount()">
</TD>
<TD>
$<INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $amount %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge_amount()">
</TD>
+<% include('/elements/tr-select-pkg_class.html', '') %>
<% include('/elements/tr-select-taxclass.html') %>
</TR>
<TD>Description:</TD>
<% include('/elements/tr-select-taxclass.html') %>
</TR>
<TD>Description:</TD>
@@
-163,6
+164,9
@@
function validate_quick_charge () {
</HTML>
<%init>
</HTML>
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('One-time charge');
+
$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
my $custnum = $1;
$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
my $custnum = $1;