$_SESSION['page_title'] = _($help_context = "Journal Entry");
page($_SESSION['page_title'], false, false,'', $js);
+
//--------------------------------------------------------------------------------------------------
function line_start_focus() {
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']);
}
unset ($_SESSION['journal_items']);
}
- check_is_closed($type, $trans_no);
$cart = new items_cart($type);
$cart->order_id = $trans_no;