This commit is contained in:
James Cole
2018-04-22 07:16:09 +02:00
parent 36329e596e
commit 529dd490b7
2 changed files with 7 additions and 4 deletions

View File

@@ -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);

View File

@@ -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>