From: Rolf Fluehmann Date: Wed, 5 Apr 2017 11:01:41 +0000 (+0200) Subject: Anpassung Erfolgsrechnung X-Git-Tag: release-3.5.4~1143 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=543b7743647b029defd1584cfc8f021edb7a4634;p=kivitendo-erp.git Anpassung Erfolgsrechnung --- diff --git a/SL/RP.pm b/SL/RP.pm index 479d85030..e27ae4ebe 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1875,7 +1875,7 @@ sub erfolgsrechnung { accounts => get_accounts_ch($category), ); foreach my $account (@{$category{accounts}}) { - $account->{total} += ($account->{category} eq $category ? 1 : -1) * get_total_ch($account->{id}, $fromdate, $todate); + $account->{total} += get_total_ch($account->{id}, $fromdate, $todate); $category{total} += $account->{total}; $account->{total} = $form->format_amount($myconfig, $form->parse_amount($myconfig, $account->{total}), 2); }