2 'name_singular' => 'sales person',
4 'fields' => [ 'salesperson',
5 { field=>'agentnum', type=>'select-agent', disable_empty=>1, },
6 { field=>'sales_custnum', type=>'search-cust_main', },
7 { field=>'disabled', type=>'checkbox', value=>'Y', },
9 'labels' => { 'salesnum' => 'Sales Person',
10 'salesperson' => 'Name',
11 'agentnum' => 'Agent',
12 'sales_custnum' => 'Master customer',
13 'disabled' => 'Disabled',
15 'viewall_dir' => 'browse',
17 'html_bottom' => sub {
21 include('/elements/table-commissions.html',
22 'source_obj' => $sales,
23 'link_table' => 'sales_pkg_class',
24 #'target_table' => 'pkg_class',
32 unless $FS::CurrentUser::CurrentUser->access_right('Edit sales people');