Make list grouped.

This commit is contained in:
James Cole
2020-06-27 13:32:40 +02:00
parent e1fbdca5c1
commit 3e8a4d55ef
28 changed files with 144 additions and 61 deletions

View File

@@ -391,6 +391,7 @@ class AutoCompleteController extends Controller
foreach ($piggies as $piggy) {
$currency = $accountRepos->getAccountCurrency($piggy->account) ?? $defaultCurrency;
$currentAmount = $repository->getRepetition($piggy)->currentamount ?? '0';
$piggy->objectGroup = $piggy->objectGroups->first();
$piggy->name_with_amount = sprintf(
'%s (%s / %s)',
$piggy->name,