From 543b7743647b029defd1584cfc8f021edb7a4634 Mon Sep 17 00:00:00 2001 From: Rolf Fluehmann Date: Wed, 5 Apr 2017 13:01:41 +0200 Subject: [PATCH] Anpassung Erfolgsrechnung --- SL/RP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1