From: Moritz Bunkus Date: Fri, 22 Jun 2012 12:02:26 +0000 (+0200) Subject: Ansprechpersonensuche um PLZ, Ort ergänzt X-Git-Tag: release-3.0.0beta1~320 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=87c46045dc9c7c26954404d81f08f0ab3e2f8840;p=kivitendo-erp.git Ansprechpersonensuche um PLZ, Ort ergänzt Und nach Straße, PLZ, Ort sortierbar gemacht --- diff --git a/SL/CT.pm b/SL/CT.pm index fda2353ed..fabc3cac8 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -1171,7 +1171,7 @@ sub search_contacts { 'vcnumber' => 'vcnumber, cp_name, cp_givenname', ); - my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email vcname vcnumber); + my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city vcname vcnumber); my $order_by = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name'; $::form->{sort} = $order_by; diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 56fad897f..31c70d0cc 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -301,7 +301,7 @@ sub list_contacts { my $cvar_configs = CVar->get_configs('module' => 'Contacts'); my @columns = qw( - cp_id vcname vcnumber cp_name cp_givenname cp_street cp_phone1 cp_phone2 + cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_birthday cp_gender ); @@ -327,6 +327,8 @@ sub list_contacts { 'cp_name' => { 'text' => $::locale->text('Name'), }, 'cp_givenname' => { 'text' => $::locale->text('Given Name'), }, 'cp_street' => { 'text' => $::locale->text('Street'), }, + 'cp_zipcode' => { 'text' => $::locale->text('Zipcode'), }, + 'cp_city' => { 'text' => $::locale->text('City'), }, 'cp_phone1' => { 'text' => $::locale->text('Phone1'), }, 'cp_phone2' => { 'text' => $::locale->text('Phone2'), }, 'cp_mobile1' => { 'text' => $::locale->text('Mobile1'), }, diff --git a/templates/webpages/ct/search_contact.html b/templates/webpages/ct/search_contact.html index be678147a..0f7c12714 100644 --- a/templates/webpages/ct/search_contact.html +++ b/templates/webpages/ct/search_contact.html @@ -73,10 +73,20 @@ + + + + + + + + + +