mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 09:16:15 +00:00
Multiply sum by -1.
This commit is contained in:
@@ -232,7 +232,7 @@ class CategoryRepository implements CategoryRepositoryInterface
|
||||
public function spentInPeriod(Collection $categories, Collection $accounts, Carbon $start, Carbon $end): string
|
||||
{
|
||||
$sum = $this->sumInPeriod($categories, $accounts, TransactionType::WITHDRAWAL, $start, $end);
|
||||
|
||||
$sum = bcmul($sum, '-1');
|
||||
return $sum;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user