X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fb37acdc4c87cf9bc4ef6abb54e486c1b3829d6c..a1070c2d94abd46d8bba45c2a57609e59f2582a9:/SL/RP.pm diff --git a/SL/RP.pm b/SL/RP.pm index 68c6c75b6..19af9d8a7 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -800,7 +800,7 @@ sub trial_balance { # but we use the same function to collect information if ($form->{project_id}) { - $project = qq| AND ac.project_id = | . conv_i($form->{project_id}, 'NULL') . qq|) |; + $project = qq| AND (ac.project_id = | . conv_i($form->{project_id}, 'NULL') . qq|) |; } # get beginning balances @@ -1642,7 +1642,7 @@ sub bwa { $form->{ "$key" . "neutraleraufwand" } + $form->{ "$key" . "neutralertrag" }; $form->{ "$key" . "ergebnis" } = - $form->{ "$key" . "ergebnisvorsteuern" } + $form->{35}{$key}; + $form->{ "$key" . "ergebnisvorsteuern" } - $form->{35}{$key}; if ($form->{ "$key" . "gesamtleistung" } > 0) { foreach $category (@categories) {