From e8fb3448ac1b9dae5410f88cf70eb36cd822c247 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 25 Feb 2014 23:13:32 -0800 Subject: non-package fees, #25899 --- httemplate/edit/process/part_fee.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 httemplate/edit/process/part_fee.html (limited to 'httemplate/edit/process') 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; + + -- cgit v1.2.1