projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
payment posting styled inside customer
[freeside.git]
/
httemplate
/
edit
/
process
/
part_fee.html
diff --git
a/httemplate/edit/process/part_fee.html
b/httemplate/edit/process/part_fee.html
index
1fca231
..
075cdee
100755
(executable)
--- a/
httemplate/edit/process/part_fee.html
+++ b/
httemplate/edit/process/part_fee.html
@@
-17,6
+17,7
@@
],
},
],
],
},
],
+ 'precheck_callback'=> \&precheck,
&>
<%init>
&>
<%init>
@@
-26,4
+27,13
@@
my $acl_edit_global = $curuser->access_right('Edit global fee definitions');
die "access denied"
unless $acl_edit or $acl_edit_global;
die "access denied"
unless $acl_edit or $acl_edit_global;
+sub precheck {
+ my $cgi = shift;
+ if ( $cgi->param('basis') =~ /^(\w+)$/ ) {
+ my $basis = $1;
+ $cgi->param('percent', $cgi->param($basis.'_percent') );
+ }
+ ''; #no error
+}
+
</%init>
</%init>