Make list grouped.

This commit is contained in:
James Cole
2020-06-27 13:08:51 +02:00
parent 1b31d20877
commit e1fbdca5c1
2 changed files with 31 additions and 4 deletions

View File

@@ -281,6 +281,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
$currency = app('amount')->getDefaultCurrency();
$set = $this->getPiggyBanks();
/** @var PiggyBank $piggy */
foreach ($set as $piggy) {
$currentAmount = $this->getRepetition($piggy)->currentamount ?? '0';