X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fgl.pl;h=521bb07d24f90f5ad2470d33d836855f0694e490;hb=232ccb5f2622a7ecc4cfa40031aba17d7717957a;hp=ea47e2a1ceeabeebe0f9c412ef24a6ca240b37a2;hpb=eb9eac742c9a9b8083de9a4f4a5578c4388d69bb;p=kivitendo-erp.git diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index ea47e2a1c..521bb07d2 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -620,15 +620,17 @@ sub generate_report { |; } - $form->{balance} *= $ml; + $form->{balance} *= $ml; foreach $ref (@{ $form->{GL} }) { $form->{balance} *= $ml; + # if item ne sort print subtotal if ($form->{l_subtotal} eq 'Y') { if ($sameitem ne $ref->{ $form->{sort} }) { &gl_subtotal; } } + #foreach $key (sort keys(%{ $ref->{amount} })) { # $form->{balance} += $ref->{amount}{$key}; #} @@ -656,7 +658,7 @@ sub generate_report { $credit .= "
" . $form->format_amount(\%myconfig, $ref->{credit}{$key}, 2, 0); } - $form->{balance} = abs($form->{balance}) - abs( $ref->{credit}{$key}); + $form->{balance} = abs($form->{balance}) - abs($ref->{credit}{$key}); } $debittax = ""; @@ -698,9 +700,10 @@ sub generate_report { $debitaccno .= "
{debit_accno}{$key}&callback=$callback>$ref->{debit_accno}{$key}"; } - if ($ref->{debit_taxkey}{$key} eq $debittaxkey) { - $ref->{debit_tax_accno}{$key} = $taxaccno; - } + + # if ($ref->{debit_taxkey}{$key} eq $debittaxkey) { + # $ref->{debit_tax_accno}{$key} = $taxaccno; + # } $taxaccno = $ref->{debit_tax_accno}{$key}; $debittaxkey = $ref->{debit_taxkey}{$key}; } @@ -716,9 +719,10 @@ sub generate_report { $creditaccno .= "
{credit_accno}{$key}&callback=$callback>$ref->{credit_accno}{$key}"; } - if ($ref->{credit_taxkey}{$key} eq $credittaxkey) { - $ref->{credit_tax_accno}{$key} = $taxaccno; - } + + # if ($ref->{credit_taxkey}{$key} eq $credittaxkey) { + # $ref->{credit_tax_accno}{$key} = $taxaccno; + # } $taxaccno = $ref->{credit_tax_accno}{$key}; $credittaxkey = $ref->{credit_taxkey}{$key}; } @@ -776,9 +780,8 @@ sub generate_report { $column_data{gifi_accno} = "{gifi_accno}&callback=$callback>$ref->{gifi_accno} "; $column_data{balance} = - "" - . $form->format_amount(\%myconfig, $form->{balance}, 2, 0) - . ""; + "" + . $form->format_amount(\%myconfig, $form->{balance}, 2, 0) . ""; $i++; $i %= 2; @@ -1041,24 +1044,25 @@ sub display_rows { for $i (1 .. $form->{rowcount}) { $source = qq| - |; $memo = qq| - |; if ($init) { $accno = qq| - $form->{chartinit}|; $tax = - qq|$form->{taxchart}|; -# if ($form->{selectprojectnumber}) { -# $project = qq| -# |; -# } + + # if ($form->{selectprojectnumber}) { + # $project = qq| + # |; + # } $korrektur = qq|$accno|; $tax = $taxchart; @@ -1107,14 +1111,14 @@ sub display_rows { . ($i + 10 + (($i - 1) * 8)) . qq|>$tax|; -# if ($form->{selectprojectnumber}) { -# $form->{"projectnumber_$i"} = "" -# if $form->{selectprojectnumber} !~ /$form->{"projectnumber_$i"}/; -# -# $project = $form->{"projectnumber_$i"}; -# $project =~ s/--.*//; -# $project = qq|$project|; -# } + # if ($form->{selectprojectnumber}) { + # $form->{"projectnumber_$i"} = "" + # if $form->{selectprojectnumber} !~ /$form->{"projectnumber_$i"}/; + # + # $project = $form->{"projectnumber_$i"}; + # $project =~ s/--.*//; + # $project = qq|$project|; + # } if ($form->{transfer}) { $checked = ($form->{"fx_transaction_$i"}) ? "1" : ""; @@ -1138,10 +1142,11 @@ sub display_rows { $tax = qq| |; -# if ($form->{selectprojectnumber}) { -# $project = qq| -# |; -# } + + # if ($form->{selectprojectnumber}) { + # $project = qq| + # |; + # } $korrektur = qq| $accno $fx_transaction - - - $korrektur $tax @@ -1182,9 +1187,10 @@ sub display_rows { } $form->hide_form(qw(rowcount selectaccno)); -# print qq| -# |; + + # print qq| + # |; $lxdebug->leave_sub(); } @@ -1259,20 +1265,19 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - {transdate} tabindex="2" $readonly> + text('button') . qq|> |; #write Trigger $jsscript = - Form->write_trigger(\%myconfig, "1", "transdate", "BL", "trigger1", "", - "", ""); + Form->write_trigger(\%myconfig, "1", "transdate", "BL", "trigger1"); } else { # without JavaScript Calendar $button1 = - qq|{transdate} tabindex="2" $readonly>|; + qq||; } $form->header; @@ -1484,12 +1489,12 @@ sub delete {
{script}> |; - map { $form->{$_} =~ s/\"/"/g } qw(reference description chart); + map { $form->{$_} =~ s/\"/"/g } qw(reference description chart taxchart); delete $form->{header}; foreach $key (keys %$form) { - print qq|\n|; + print qq|\n|; } print qq| @@ -1547,9 +1552,9 @@ sub post { unless (($form->{"debit_$i"} eq "") && ($form->{"credit_$i"} eq "")) { if ($form->{"debit_$i"} ne "") { $form->{"credit_$i"} = $form->{"debit_$i"}; - $form->{"debit_$i"} = ""; + $form->{"debit_$i"} = ""; } elsif ($form->{"credit_$i"} ne "") { - $form->{"debit_$i"} = $form->{"credit_$i"}; + $form->{"debit_$i"} = $form->{"credit_$i"}; $form->{"credit_$i"} = ""; } }