X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fgl.pl;h=5834a485f0daf7f814df08f7f0903e72f42bf7e7;hb=dbd0ae115bd9a6ba0ede24f9655a29df6bf7dc3b;hp=4b34a5080690a3205842396ad9065b7919047cb4;hpb=09fe7f33a735ecc3f4a3112ad716f674983b00cc;p=kivitendo-erp.git
diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl
index 4b34a5080..5834a485f 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 {
|
@@ -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";
@@ -1161,71 +1167,71 @@ sub form_header {
. " $form->{previous_gldate}"
. qq|
-
- | . $locale->text('Reference') . qq| |
- |
-
-
+ |
+
|;
if ($form->{id}) {
print qq|
-
- | . $locale->text('Belegnummer') . qq| |
- |
-
-
- |
-
|;
+
+ | . $locale->text('Belegnummer') . qq| |
+ |
+
+
+ |
+
|;
}
print qq|
- $department|;
+ $department|;
if ($form->{id}) {
print qq|
-
- | . $locale->text('Description') . qq| |
- $description |
+
+ | . $locale->text('Description') . qq| |
+ $description |
-
- |
-
-
- |
-
|;
+
+
+
+
+ |
+ |;
} else {
print qq|
-
- | . $locale->text('Description') . qq| |
- $description |
-
-
- |
-
|;
+
+ | . $locale->text('Description') . qq| |
+ $description |
+
+
+ |
+
|;
}
print qq|
@@ -1247,13 +1253,13 @@ sub form_header {
-
- |
+ |
+ |
. $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| |
@@ -1262,14 +1268,14 @@ sub form_header {
if ($form->{show_details}) {
print 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| |
|;
}
print qq|
-
+
$jsscript
|;
@@ -1422,8 +1428,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!'))
|