X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fgl_journal.php;fp=gl%2Fgl_journal.php;h=d516bdac8eaa8ff8e03367d750ba5684903f70e9;hb=96f82e64b766fa59a3ebc3176e4efd17736f6878;hp=107c6d6328a21813fcb7186d0b4233139918a450;hpb=7e830126b96477e969fe3b48d9fc0e78f6c1fe00;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index 107c6d63..d516bdac 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -36,6 +36,7 @@ if (isset($_GET['ModifyGL'])) { $_SESSION['page_title'] = _($help_context = "Journal Entry"); page($_SESSION['page_title'], false, false,'', $js); + //-------------------------------------------------------------------------------------------------- function line_start_focus() { @@ -80,14 +81,17 @@ if (isset($_GET['AddedID'])) if (isset($_GET['NewJournal'])) { create_cart(0,0); -} +} elseif (isset($_GET['ModifyGL'])) { + check_is_editable($_GET['trans_type'], $_GET['trans_no']); + if (!isset($_GET['trans_type']) || $_GET['trans_type']!= 0) { display_error(_("You can edit directly only journal entries created via Journal Entry page.")); hyperlink_params("$path_to_root/gl/gl_journal.php", _("Entry &New Journal Entry"), "NewJournal=Yes"); display_footer_exit(); } + create_cart($_GET['trans_type'], $_GET['trans_no']); } @@ -100,7 +104,6 @@ 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;