sub search {
$main::lxdebug->enter_sub();
- $main::auth->assert('customer_vendor_edit');
-
my $form = $main::form;
my $locale = $main::locale;
sub search_contact {
$::lxdebug->enter_sub;
- $::auth->assert('customer_vendor_edit');
$::form->{CUSTOM_VARIABLES} = CVar->get_configs('module' => 'Contacts');
($::form->{CUSTOM_VARIABLES_FILTER_CODE},
sub list_names {
$main::lxdebug->enter_sub();
- $main::auth->assert('customer_vendor_edit');
-
my $form = $main::form;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my @columns = (
'id', 'name', "$form->{db}number", 'contact', 'main_contact_person',
- 'phone', 'discount',
+ 'department_1', 'department_2', 'phone', 'discount',
'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city',
'business', 'payment', 'invnumber', 'ordnumber', 'quonumber', 'salesman',
'country', 'gln', 'insertdate', 'pricegroup', 'contact_origin', 'invoice_mail',
'name' => { 'text' => $form->{IS_CUSTOMER} ? $::locale->text('Customer Name') : $::locale->text('Vendor Name'), },
'contact' => { 'text' => $locale->text('Contact'), },
'main_contact_person' => { 'text' => $locale->text('Main Contact Person'), },
+ 'department_1' => { 'text' => $locale->text('Department') . " 1", },
+ 'department_2' => { 'text' => $locale->text('Department') . " 2", },
'phone' => { 'text' => $locale->text('Phone'), },
'fax' => { 'text' => $locale->text('Fax'), },
'email' => { 'text' => $locale->text('E-mail'), },
sub list_contacts {
$::lxdebug->enter_sub;
- $::auth->assert('customer_vendor_edit');
$::form->{sortdir} = 1 unless defined $::form->{sortdir};