X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6e50e0c2879d0e9b4dbb13b84a51d24388fc8d1f..8cef58b276ce4005c0e2ada350fecd5d7a103e89:/bin/mozilla/oe.pl diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 173ad770f..8058585b9 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -361,12 +361,12 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - {transdate}> + {transdate} onBlur=\"check_right_date_format(this)\"> text('button') . qq|> |; $button2 = qq| - {reqdate}> + {reqdate} onBlur=\"check_right_date_format(this)\"> text('button') . qq|> |; @@ -380,28 +380,30 @@ sub form_header { # without JavaScript Calendar $button1 = qq| - {transdate}>|; + {transdate} onBlur=\"check_right_date_format(this)\">|; $button2 = qq| - {reqdate}>|; + {reqdate} onBlur=\"check_right_date_format(this)\">|; } - if ($form->{id}) { - $openclosed = qq| - - - - -|; + my @tmp; - if (($form->{"type"} eq "sales_order") || - ($form->{"type"} eq "purchase_order")) { - $openclosed .= qq| + if (($form->{"type"} eq "sales_order") || + ($form->{"type"} eq "purchase_order")) { + push(@tmp, qq| - -|; - } + |); + } + if ($form->{id}) { + push(@tmp, qq| + + |); + } + + if (@tmp) { $openclosed .= qq| + + | . join("\n", @tmp) . qq| |; @@ -723,14 +725,17 @@ onchange="document.getElementById('update_button').click();">| . } elsif ($form->{resubmit}) { $onload = qq|document.oe.submit()|; } else { - $onload = "fokus()"; + $onload = "focus()"; } $credittext = $locale->text('Credit Limit exceeded!!!'); if ($creditwarning) { $onload = qq|alert('$credittext')|; } - + + $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; + $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; + $form->{"javascript"} .= qq||; # show history button js $form->{javascript} .= qq||; @@ -1063,7 +1068,7 @@ sub form_footer { |; - &print_options; + print_options(); print qq| @@ -1398,12 +1403,12 @@ sub search { # with JavaScript Calendar $button1 = qq| - + text('button') . qq|> |; $button2 = qq| - + text('button') . qq|> |; @@ -1416,9 +1421,9 @@ sub search { # without JavaScript Calendar $button1 = qq| - |; + |; $button2 = qq| - |; + |; } $form->get_lists("projects" => { "key" => "ALL_PROJECTS", @@ -1976,6 +1981,7 @@ sub save_and_close { # saving the history if(!exists $form->{addition}) { + $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; $form->{addition} = "SAVED"; $form->save_history($form->dbconnect(\%myconfig)); } @@ -2057,6 +2063,7 @@ sub save { # saving the history if(!exists $form->{addition}) { + $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; $form->{addition} = "SAVED"; $form->save_history($form->dbconnect(\%myconfig)); } @@ -2128,6 +2135,7 @@ sub yes { $form->redirect($msg); # saving the history if(!exists $form->{addition}) { + $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; $form->{addition} = "DELETED"; $form->save_history($form->dbconnect(\%myconfig)); }