Merged stable branch up to 2.3.10
[fa-stable.git] / admin / void_transaction.php
index 87d9a3b0df35ed7743f99b96d19e70876ebd7f7d..474217a0c32a942cccea23ed0225b8d865884327 100644 (file)
@@ -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 _("N/A");
        return button('Edit'.$row["trans_no"], _("Select"), _("Select"), ICON_EDIT);
 }