mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #1336
This commit is contained in:
@@ -320,10 +320,12 @@ class ReconcileController extends Controller
|
||||
'notes' => implode(', ', $data['transactions']),
|
||||
];
|
||||
|
||||
$journal = $repository->store($journalData);
|
||||
$repository->store($journalData);
|
||||
}
|
||||
Log::debug('End of routine.');
|
||||
|
||||
Preferences::mark();
|
||||
|
||||
Session::flash('success', trans('firefly.reconciliation_stored'));
|
||||
|
||||
return redirect(route('accounts.show', [$account->id]));
|
||||
@@ -438,6 +440,8 @@ class ReconcileController extends Controller
|
||||
|
||||
$this->repository->update($journal, $data);
|
||||
|
||||
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
if (1 === (int)$request->get('return_to_edit')) {
|
||||
Session::put('reconcile.edit.fromUpdate', true);
|
||||
|
@@ -88,14 +88,13 @@
|
||||
{% set transactionAmount = transaction.transaction_foreign_amount %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if transaction.reconciled %}
|
||||
{{ transaction|transactionReconciled }}
|
||||
<input type="hidden" name="cleared[]" data-younger="{% if transaction.date > end %}true{% else %}false{% endif %}"
|
||||
<input type="hidden" name="cleared[]" data-younger="{% if transaction.date < start %}true{% else %}false{% endif %}"
|
||||
class="cleared" data-id="{{ transaction.id }}" value="{{ transactionAmount }}">
|
||||
{% else %}
|
||||
<input type="checkbox" name="reconciled[]"
|
||||
data-younger="{% if transaction.date > end %}true{% else %}false{% endif %}"
|
||||
data-younger="{% if transaction.date < start %}true{% else %}false{% endif %}"
|
||||
value="{{ transactionAmount }}" data-id="{{ transaction.id }}" disabled class="reconcile_checkbox">
|
||||
{% endif %}
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user