summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-02-25 23:13:32 -0800
committerMark Wells <mark@freeside.biz>2014-02-25 23:33:56 -0800
commite8fb3448ac1b9dae5410f88cf70eb36cd822c247 (patch)
treef8ace47a98d8093c5a37d2d059927346f57ce772 /httemplate/edit/process
parentb6c0ce19ea154eeec1f992a528c5c7e3ef877e81 (diff)
non-package fees, #25899
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/part_fee.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/edit/process/part_fee.html b/httemplate/edit/process/part_fee.html
new file mode 100644
index 000000000..25656e9b0
--- /dev/null
+++ b/httemplate/edit/process/part_fee.html
@@ -0,0 +1,20 @@
+<& elements/process.html,
+ 'debug' => 1,
+ 'table' => 'part_fee',
+ 'agent_virt' => 1,
+ 'agent_null_right' => 'Edit global fee definitions',
+ 'viewall_dir' => 'browse',
+ 'process_o2m' => {
+ 'table' => 'part_fee_msgcat',
+ 'fields' => [ 'locale', 'itemdesc' ],
+ },
+&>
+<%init>
+
+my $curuser = $FS::CurrentUser::CurrentUser;
+my $acl_edit = $curuser->access_right('Edit fee definitions');
+my $acl_edit_global = $curuser->access_right('Edit global fee definitions');
+die "access denied"
+ unless $acl_edit or $acl_edit_global;
+
+</%init>