From 5ccab5d616a5e6174c0ad1aad9ae4d6369b5d3b8 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 22 Feb 2019 10:01:34 +0100 Subject: [PATCH] 0004847: FA allows reconciliation of closed transactions. Fixed by @Braath Waathe. --- gl/bank_account_reconcile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2