From: Joe Hunt Date: Mon, 16 Jan 2012 23:59:34 +0000 (+0100) Subject: 0001285: Restrict the voiding transaction of closed fiscal year X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ea98c5d3fdd4b2432d1ad8177556e08cb8470819;p=textcart.git 0001285: Restrict the voiding transaction of closed fiscal year --- diff --git a/admin/void_transaction.php b/admin/void_transaction.php index 841ff08..d3639d1 100644 --- a/admin/void_transaction.php +++ b/admin/void_transaction.php @@ -121,6 +121,8 @@ function select_link($row) { if (!isset($row['type'])) $row['type'] = $_POST['filterType']; + if (!is_date_in_fiscalyear($row['trans_date'], true)) + return ""; return button('Edit'.$row["trans_no"], _("Select"), _("Select"), ICON_EDIT); }