Fixed transaction date check messages.
[fa-stable.git] / gl / gl_journal.php
index bc3e15e963286245665aec8bcee31404c28b80cf..bb744de690a12445aa7f9488c47e81c78f35b951 100644 (file)
@@ -97,6 +97,7 @@ function create_cart($type=0, $trans_no=0)
                unset ($_SESSION['journal_items']);
        }
 
+       check_is_closed($type, $trans_no);
        $cart = new items_cart($type);
     $cart->order_id = $trans_no;
 
@@ -157,7 +158,7 @@ if (isset($_POST['Process']))
        } 
        elseif (!is_date_in_fiscalyear($_POST['date_'])) 
        {
-               display_error(_("The entered date is not in fiscal year."));
+               display_error(_("The entered date is out of fiscal year or is closed for further data entry."));
                set_focus('date_');
                $input_error = 1;
        }