Fixed reconciliation -> transactions issue..
This commit is contained in:
parent
3691c9a0c5
commit
7b4a9c711c
@ -82,13 +82,18 @@
|
|||||||
|
|
||||||
<x-table.td kind="amount" class="none-truncate">
|
<x-table.td kind="amount" class="none-truncate">
|
||||||
@php
|
@php
|
||||||
|
$reconciliation_transactions = [];
|
||||||
$type = $item->isIncome() ? 'income' : 'expense';
|
$type = $item->isIncome() ? 'income' : 'expense';
|
||||||
$name = $type . '_' . $item->id;
|
$name = $type . '_' . $item->id;
|
||||||
|
|
||||||
$checked = $item->reconciled;
|
$checked = $item->reconciled;
|
||||||
|
|
||||||
if (! $reconciliation->reconciled && array_key_exists($name, $reconciliation->transactions)) {
|
if (! empty($reconciliation->transactions)) {
|
||||||
$checked = (empty($reconciliation->transactions[$name]) || $reconciliation->transactions[$name] === 'false') ? 0 : 1;
|
$reconciliation_transactions = $reconciliation->transactions;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! $reconciliation->reconciled && array_key_exists($name, $reconciliation_transactions)) {
|
||||||
|
$checked = (empty($reconciliation_transactions[$name]) || $reconciliation_transactions[$name] === 'false') ? 0 : 1;
|
||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user