Zahlungseingang:
[kivitendo-erp.git] / bin / mozilla / ct.pl
index fe166c5..8940fb9 100644 (file)
@@ -95,13 +95,14 @@ sub search {
 
   $label = ucfirst $form->{db};
   $form->{title} = $locale->text($label . "s");
+  $form->{fokus} = 'Form.name';
 
   $form->header;
 
   print qq|
-<body>
+<body onload="fokus()">
 
-<form method=post action=$form->{script}>
+<form method=post action=$form->{script} name="Form">
 
 <input type=hidden name=db value=$form->{db}>
 
@@ -661,7 +662,7 @@ sub form_header {
     "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_contact";
 
   my $pjx = new CGI::Ajax( 'get_contact' => $get_contact_url );
-  $form->{selectcontact} = "<option value=0></option>";
+  $form->{selectcontact} = "<option value=0>" . $locale->text('New contact') . "</option>";
   if (@{ $form->{CONTACTS} }) {
     foreach $item (@{ $form->{CONTACTS} }) {
       if ($item->{cp_id} == $form->{cp_id}) {
@@ -1411,7 +1412,7 @@ sub save {
   if ($form->{"db"} eq "customer") {
     $res = CT->save_customer(\%myconfig, \%$form);
   } else {
-    $res = CT->save_customer(\%myconfig, \%$form);
+    $res = CT->save_vendor(\%myconfig, \%$form);
   }
 
   if (3 == $res) {