X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fbank_account_reconcile.php;h=6875e068e4b6e2d2949d7ff51e71da2f9b78b891;hb=cf82eee8eeb872796fcf2bc7f252403db4952247;hp=81ebc7a0ee06f3b34c552749815ae92d3f7a7098;hpb=6e534728a5723289ddd80c1c79e0c67a69b10ad1;p=fa-stable.git diff --git a/gl/bank_account_reconcile.php b/gl/bank_account_reconcile.php index 81ebc7a0..6875e068 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) @@ -175,7 +175,7 @@ if ($id != -1) change_tpl_flag($id); -if (isset($_POST['Reconcile'])) { +if (isset($_POST['last']) && isset($_POST['Reconcile'])) { set_focus('bank_date'); foreach($_POST['last'] as $id => $value) if ($value != check_value('rec_'.$id)) @@ -184,7 +184,7 @@ if (isset($_POST['Reconcile'])) { $Ajax->activate('_page_body'); } -if (isset($_POST['ReconcileAll'])) { +if (isset($_POST['last']) && isset($_POST['ReconcileAll'])) { set_focus('bank_date'); foreach($_POST['last'] as $id => $value) set_tpl_flag($id);