X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fgl.pl;h=b6d9448287aecb53dfed9d9a52c86b7e4161d725;hb=9d0ebf2831c46d1be13fb79cb3627a05f6681376;hp=7c7fa843e1b36b495232a5651b5f46d2ad31633d;hpb=6aefd19def6a7d2f205e5401451e4c0bf3cebc46;p=kivitendo-erp.git diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 7c7fa843e..b6d944828 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -766,11 +766,11 @@ sub generate_report { } $transdate = ""; - foreach $key (sort keys(%{ $ref->{transdate} })) { + foreach $key (sort keys(%{ $ref->{ac_transdate} })) { if ($key == 0) { - $transdate = "$ref->{transdate}{$key}"; + $transdate = "$ref->{ac_transdate}{$key}"; } else { - $transdate .= "
$ref->{transdate}{$key}"; + $transdate .= "
$ref->{ac_transdate}{$key}"; } } @@ -1111,11 +1111,9 @@ sub display_rows { for $i (1 .. $form->{rowcount}) { $source = qq| - |; + |; $memo = qq| - |; + |; my $selected_accno_full; my ($accno_row) = split(/--/, $form->{"accno_$i"}); @@ -1129,43 +1127,36 @@ sub display_rows { if ($previous_accno && ($previous_accno eq $selected_accno) && ($previous_tax_id ne $selected_tax_id)) { - $lxdebug->message(0, "yeah"); my $item = $taxcharts{$selected_tax_id}; $selected_taxchart = "$item->{id}--$item->{rate}"; } - if ($init) { - $selected_accno = ''; - $selected_taxchart = $taxchart_init; - } + $selected_accno = '' if ($init); + $selected_taxchart = $taxchart_init unless ($selected_taxchart ne ""); $accno = qq|| . - $cgi->popup_menu('-name' => "accno_$i", - '-id' => "accno_$i", - '-onChange' => "setTaxkey(this, $i)", - '-style' => 'width:200px', - '-tabindex' => ($i + 5 + (($i - 1) * 8)), - '-values' => \@chart_values, - '-labels' => \%chart_labels, - '-default' => $selected_accno_full) + NTI($cgi->popup_menu('-name' => "accno_$i", + '-id' => "accno_$i", + '-onChange' => "setTaxkey(this, $i)", + '-style' => 'width:200px', + '-values' => \@chart_values, + '-labels' => \%chart_labels, + '-default' => $selected_accno_full)) . $cgi->hidden('-name' => "previous_accno_$i", '-default' => $selected_accno_full) . qq||; $tax = qq|| . - $cgi->popup_menu('-name' => "taxchart_$i", - '-id' => "taxchart_$i", - '-style' => 'width:200px', - '-tabindex' => ($i + 10 + (($i - 1) * 8)), - '-values' => \@taxchart_values, - '-labels' => \%taxchart_labels, - '-default' => $selected_taxchart) + NTI($cgi->popup_menu('-name' => "taxchart_$i", + '-id' => "taxchart_$i", + '-style' => 'width:200px', + '-values' => \@taxchart_values, + '-labels' => \%taxchart_labels, + '-default' => $selected_taxchart)) . qq||; if ($init) { $korrektur = - qq||; + qq||; if ($form->{transfer}) { $fx_transaction = qq| @@ -1202,16 +1193,12 @@ sub display_rows { } $checked = ($form->{"korrektur_$i"}) ? "checked" : ""; $korrektur = - qq||; + qq||; $form->hide_form("accno_$i"); } else { $korrektur = - qq||; + qq||; if ($form->{transfer}) { $fx_transaction = qq| @@ -1238,12 +1225,9 @@ sub display_rows { print qq| $accno $fx_transaction - - - + + + $korrektur $tax $source @@ -1301,7 +1285,7 @@ sub form_header { qq||; } else { $description = - qq||; + qq||; } $taxincluded = ($form->{taxincluded}) ? "checked" : ""; @@ -1330,7 +1314,7 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - + text('button') . qq|> |; @@ -1342,7 +1326,7 @@ sub form_header { # without JavaScript Calendar $button1 = - qq||; + qq||; } $form->header; @@ -1369,7 +1353,7 @@ sub form_header { - + @@ -1427,7 +1411,7 @@ sub form_header {
| . $locale->text('Reference') . qq| @@ -1405,7 +1389,7 @@ sub form_header {
- +
| . $locale->text('MwSt. inkl.') . qq|
- +
| . $locale->text('MwSt. inkl.') . qq|