X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/09fe7f33a735ecc3f4a3112ad716f674983b00cc..c8c6d6d:/bin/mozilla/gl.pl diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 4b34a5080..1baed9102 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -250,10 +250,10 @@ sub search { } my $department = qq| - - | . $locale->text('Department') . qq| - - + + | . $locale->text('Department') . qq| + + | if $form->{selectdepartment}; $form->get_lists("projects" => { "key" => "ALL_PROJECTS", @@ -321,83 +321,83 @@ sub search { - - - - - - - $department - - - - - - - - - - - - - - + + + + + + + $department + + + + + + + + + + + + + + $button1 - + $button2 - - - - + + + +
| . $locale->text('Reference') . qq|| . $locale->text('Source') . qq|
| . $locale->text('Description') . qq|
| . $locale->text('Notes') . qq|
| . $locale->text('Project Number') . qq|$projectnumber
| . $locale->text('From') . qq|
| . $locale->text('Reference') . qq|| . $locale->text('Source') . qq|
| . $locale->text('Description') . qq|
| . $locale->text('Notes') . qq|
| . $locale->text('Project Number') . qq|$projectnumber
| . $locale->text('From') . qq|| . $locale->text('To (time)') . qq|| . $locale->text('To (time)') . qq|
| . $locale->text('Include in Report') . qq| - - - + + + -
-  | +
| . $locale->text('Include in Report') . qq| + + + - - -
+  | . $locale->text('All') . qq| -  | +  | . $locale->text('Asset') . qq| -  | +  | . $locale->text('Liability') . qq| -  | +  | . $locale->text('Revenue') . qq| -  | +  | . $locale->text('Expense') . qq| -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| . $locale->text('ID') . qq|| . $locale->text('Date') . qq|| . $locale->text('Reference') . qq|| . $locale->text('Description') . qq|| . $locale->text('Notes') . qq|
| . $locale->text('Debit') . qq|| . $locale->text('Credit') . qq|| . $locale->text('Source') . qq|| . $locale->text('Account') . qq|
| . $locale->text('Subtotal') . qq|| . $locale->text('Project Number') . qq|
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
| . $locale->text('ID') . qq|| . $locale->text('Date') . qq|| . $locale->text('Reference') . qq|| . $locale->text('Description') . qq|| . $locale->text('Notes') . qq|
| . $locale->text('Debit') . qq|| . $locale->text('Credit') . qq|| . $locale->text('Source') . qq|| . $locale->text('Account') . qq|
| . $locale->text('Subtotal') . qq|| . $locale->text('Project Number') . qq|
+ + + @@ -965,6 +965,8 @@ sub display_rows { '-values' => \@project_values, '-labels' => \%project_labels, '-default' => $form->{"project_id_$i"} )); + my $projectnumber_hidden = qq| + |; my $copy2credit = 'onkeyup="copy_debit_to_credit()"' if $i == 1; @@ -983,10 +985,14 @@ sub display_rows { $memo $projectnumber |; - } + } else { print qq| $source_hidden $memo_hidden + $projectnumber_hidden + |; + } + print qq| |; } @@ -1085,11 +1091,11 @@ sub form_header { my $department; $department = qq| - - | . $locale->text('Department') . qq| - - - + + | . $locale->text('Department') . qq| + + + | if $form->{selectdepartment}; if ($init) { $form->{fokus} = "gl.reference"; @@ -1148,7 +1154,14 @@ sub form_header { - + | . + + ($form->{saved_message} ? qq| + + | : '') . + +qq| - - - - + |; if ($form->{id}) { print qq| - - - - - |; + + + + + |; } print qq| - $department|; + $department|; if ($form->{id}) { print qq| - - - + + + - - |; +
$form->{title}
$form->{saved_message} +
@@ -1161,71 +1174,71 @@ sub form_header { . " $form->{previous_gldate}" . qq|
| . $locale->text('Reference') . qq| - - - + + + + - |; + +
| . $locale->text('Date') . qq|
| . $locale->text('Reference') . qq| + + + $button1 - -
| . $locale->text('Date') . qq|
-
+
| . $locale->text('Belegnummer') . qq| - - - - - -
| . $locale->text('Buchungsdatum') . qq|{gldate} $readonly onBlur=\"check_right_date_format(this)\">
-
| . $locale->text('Belegnummer') . qq| + + + + + +
| . $locale->text('Buchungsdatum') . qq|{gldate} $readonly onBlur=\"check_right_date_format(this)\">
+
| . $locale->text('Description') . qq|$description
| . $locale->text('Description') . qq|$description - - - - - -
| . $locale->text('MwSt. inkl.') . qq|
-
- - - - - -
| . $locale->text('Mitarbeiter') . qq|
-
+ + + + +
| . $locale->text('MwSt. inkl.') . qq|
+ + + + + + + +
| . $locale->text('Mitarbeiter') . qq|
+ + |; } else { print qq| - - | . $locale->text('Description') . qq| - $description - - - - - - -
| . $locale->text('MwSt. inkl.') . qq|
- - |; + + | . $locale->text('Description') . qq| + $description + + + + + + +
| . $locale->text('MwSt. inkl.') . qq|
+ + |; } print qq| @@ -1247,13 +1260,13 @@ sub form_header { - - + - - + - @@ -1262,14 +1275,14 @@ sub form_header { if ($form->{show_details}) { print qq| - - - + + + |; } print qq| - + $jsscript |; @@ -1422,8 +1435,8 @@ sub yes { # saving the history if(!exists $form->{addition} && $form->{id} ne "") { $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; - $form->{addition} = "DELETED"; - $form->save_history($form->dbconnect(\%myconfig)); + $form->{addition} = "DELETED"; + $form->save_history($form->dbconnect(\%myconfig)); } # /saving the history $form->redirect($locale->text('Transaction deleted!')) @@ -1596,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;
| +
| . $locale->text('Account') . qq|| . $locale->text('Chart balance') . qq|| + | . $locale->text('Chart balance') . qq|| . $locale->text('Debit') . qq|| + | . $locale->text('Credit') . qq| | . $locale->text('Tax') . qq|| . $locale->text('Source') . qq|| . $locale->text('Memo') . qq|| . $locale->text('Project Number') . qq|| . $locale->text('Source') . qq|| . $locale->text('Memo') . qq|| . $locale->text('Project Number') . qq|