1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<% include( 'elements/browse.html',
'title' => 'Discounts',
'name' => 'discounts',
'menubar' => [ 'Add a new discount' =>
$p.'edit/discount.html',
],
'query' => { 'table' => 'discount', },
'count_query' => 'SELECT COUNT(*) FROM discount',
'disableable' => 1,
'disabled_statuspos' => 1,
'header' => [ 'Name', 'Discount', ],
'fields' => [ 'name',
'description',
],
'links' => [ $link,
'',
],
)
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
my $link = [ "${p}edit/discount.html?", 'discountnum' ];
</%init>
|