0001285: Restrict the voiding transaction of closed fiscal year
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Jan 2012 23:59:34 +0000 (00:59 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Jan 2012 23:59:34 +0000 (00:59 +0100)
admin/void_transaction.php

index 841ff08e4e0eb48c95c841c5756e196aad2d7a46..d3639d16a161c043045df174f1549b1f1481ddb0 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 "";
        return button('Edit'.$row["trans_no"], _("Select"), _("Select"), ICON_EDIT);
 }