]> wagnertech.de Git - mfinanz.git/blobdiff - SL/RP.pm
Anpassung Erfolgsrechnung
[mfinanz.git] / SL / RP.pm
index 479d850308a5b541262c4304623125fa05cc27e9..e27ae4ebed2dd664217e4b369e3fdcb814ce7060 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);
     }