Add a title to the table, so multiple balances per account are possible.

This commit is contained in:
James Cole
2024-05-12 08:09:50 +02:00
parent 4b3eb6dace
commit fc5143337a
3 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ class CorrectAccountBalance extends Command
$sum = $entry->amount_sum;
AccountBalance::updateOrCreate(
['account_id' => $account, 'transaction_currency_id' => $currency],
['title' => 'balance', 'account_id' => $account, 'transaction_currency_id' => $currency],
['balance' => $sum]
);
}