From: Joe Hunt Date: Fri, 22 Feb 2019 09:01:34 +0000 (+0100) Subject: 0004847: FA allows reconciliation of closed transactions. Fixed by @Braath Waathe. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5ccab5d616a5e6174c0ad1aad9ae4d6369b5d3b8;p=fa-stable.git 0004847: FA allows reconciliation of closed transactions. Fixed by @Braath Waathe. --- diff --git a/gl/bank_account_reconcile.php b/gl/bank_account_reconcile.php index 81ebc7a0..a5738946 100644 --- a/gl/bank_account_reconcile.php +++ b/gl/bank_account_reconcile.php @@ -52,8 +52,8 @@ function rec_checkbox($row) $value = $row['reconciled'] != ''; // save also in hidden field for testing during 'Reconcile' - return checkbox(null, $name, $value, true, _('Reconcile this transaction')) - . hidden($hidden, $value, false); + return is_closed_trans($row['type'], $row['trans_no']) ? "--" : checkbox(null, $name, $value, true, _('Reconcile this transaction')) + . hidden($hidden, $value, false); } function systype_name($dummy, $type)