refs #2611 Reconciliation edit added transaction list..

This commit is contained in:
Cüneyt Şentürk
2022-09-05 15:58:36 +03:00
parent ba762c001e
commit 2421bd9a8e
4 changed files with 20 additions and 3 deletions

View File

@ -83,13 +83,22 @@
@endif
<td class="ltr:pl-6 rtl:pr-6 py-4 text-center text-sm font-medium">
@php $type = $item->isIncome() ? 'income' : 'expense'; @endphp
@php
$type = $item->isIncome() ? 'income' : 'expense';
$name = $type . '_' . $item->id;
$checked = $item->reconciled;
if (! $reconciliation->reconciled && array_key_exists($name, $reconciliation->transactions)) {
$checked = $reconciliation->transactions[$name];
}
@endphp
<x-form.input.checkbox name="{{ $type . '_' . $item->id }}"
label=""
id="transaction-{{ $item->id . '-'. $type }}"
:value="$item->amount_for_account"
:checked="$item->reconciled"
:checked="$checked"
data-field="transactions"
v-model="form.transactions.{{ $type . '_' . $item->id }}"
class="text-purple focus:outline-none focus:ring-purple focus:border-purple"