Search
<%init> my $curuser = $FS::CurrentUser::CurrentUser; my @searches = (); push @searches, 'customers' if $curuser->access_right('List customers'); push @searches, 'prospects' if $curuser->access_right('List prospects'); push @searches, 'invoices' if $curuser->access_right('View invoices'); push @searches, 'services' if $curuser->access_right('View customer services'); push @searches, 'tickets' if FS::Conf->new->exists('ticket_system'); my %hints = ( 'customers' => '(cust #, name, company)', 'prospects' => '(name, company, phone)', 'invoices' => '(invoice #)', 'services' => '(user, email, phone...)', 'tickets' => '(ticket #, subject, email)', );