James Cole
2026-08-05 19:43:08 +02:00
parent 4f65752938
commit 0c64f51e59
2 changed files with 3 additions and 3 deletions
@@ -298,8 +298,8 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface,
if (null === $row->piggyBank) {
continue;
}
// get currency preference.
$currencyPreference = AccountMeta::query()->where('account_id', $row->piggyBank->account_id)->where('name', 'currency_id')->first();
// get currency preference of the connected account(s).
$currencyPreference = AccountMeta::query()->where('account_id', $row->piggyBank->accounts->first()->id)->where('name', 'currency_id')->first();
if (null !== $currencyPreference) {
$currency = Amount::getTransactionCurrencyById((int) $currencyPreference->data);
}
+1 -1
View File
@@ -511,7 +511,7 @@
<table class="table table-hover">
@foreach($events[$journal['transaction_journal_id']] as $event)
<tr>
<td class="thirty">{{ $event['amount'] }}</td>
<td class="thirty">{!! $event['amount'] !!}</td>
<td>
<a href="{{ route('piggy-banks.show', [$event['piggy_id']]) }}">{{ $event['piggy'] }}</a>
</td>