Anpassung Erfolgsrechnung
authorRolf Fluehmann <rolf.fluehmann@revamp-it.ch>
Wed, 5 Apr 2017 11:01:41 +0000 (13:01 +0200)
committerRolf Fluehmann <rolf.fluehmann@revamp-it.ch>
Wed, 5 Apr 2017 11:01:41 +0000 (13:01 +0200)
SL/RP.pm

index 479d850..e27ae4e 100644 (file)
--- 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);
     }