diff --git a/include/opening.inc.php b/include/opening.inc.php deleted file mode 100644 index 18fa6cae9..000000000 --- a/include/opening.inc.php +++ /dev/null @@ -1,268 +0,0 @@ -request("sa", "string", ""); -$g_user->Check(); - -require_once NOALYSS_INCLUDE.'/lib/user_menu.php'; - -// Correct (last step) -if (isset($_POST['correct'])) -{ - $p_jrn=$http->request("p_jrn", "number"); - $ledger=new Acc_Ledger($cn, $p_jrn); - require_once NOALYSS_INCLUDE.'/operation_ods_new.inc.php'; - return; -} - -// confirm before saving -if (isset($_POST['summary'])) -{ - try - { - $p_jrn=$http->request("p_jrn", "number"); - $ledger=new Acc_Ledger($cn, $p_jrn); - $ledger->with_concerned=false; - $ledger->verify($_POST); - require_once NOALYSS_INCLUDE.'/operation_ods_confirm.inc.php'; - } - catch (Exception $e) - { - echo alert($e->getMessage()); - require(NOALYSS_INCLUDE.'/operation_ods_new.inc.php'); - } - return; -} - -// record -if (isset($_POST['save'])) -{ - $p_jrn=$http->request("p_jrn", "number"); - $array=$_POST; - $ledger=new Acc_Ledger($cn, $p_jrn); - $ledger->with_concerned=false; - try - { - $ledger->save($array); - $jr_id=$cn->get_value('select jr_id from jrn where jr_internal=$1', - array($ledger->internal)); - - echo '