X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6ce9fc3a6dd815115cb4a6b29a1edf39b54a87ef..05174f19ea29a44817ef9172c7fbdb7f89212806:/bin/mozilla/gl.pl diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 5834a485f..1baed9102 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -1154,7 +1154,14 @@ sub form_header { - + | . + + ($form->{saved_message} ? qq| + + | : '') . + +qq|
$form->{title}
$form->{saved_message} +
@@ -1602,6 +1609,12 @@ sub post { my $form = $main::form; my $locale = $main::locale; + if ($::myconfig{mandatory_departments} && !$form->{department}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + $form->{title} = $locale->text("$form->{title} General Ledger Transaction"); $form->{storno} = 0;