projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zahlungseingang:
[kivitendo-erp.git]
/
bin
/
mozilla
/
ct.pl
diff --git
a/bin/mozilla/ct.pl
b/bin/mozilla/ct.pl
index
fe166c5
..
8940fb9
100644
(file)
--- a/
bin/mozilla/ct.pl
+++ b/
bin/mozilla/ct.pl
@@
-95,13
+95,14
@@
sub search {
$label = ucfirst $form->{db};
$form->{title} = $locale->text($label . "s");
$label = ucfirst $form->{db};
$form->{title} = $locale->text($label . "s");
+ $form->{fokus} = 'Form.name';
$form->header;
print qq|
$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}>
<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->{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}) {
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 {
if ($form->{"db"} eq "customer") {
$res = CT->save_customer(\%myconfig, \%$form);
} else {
- $res = CT->save_
custome
r(\%myconfig, \%$form);
+ $res = CT->save_
vendo
r(\%myconfig, \%$form);
}
if (3 == $res) {
}
if (3 == $res) {