require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
if ($task == "pending") {
    while (list($x, $v) = each($_POST)) {
        if (strstr($x, "trigger")) {
            $itemid = substr(strrchr($x, "_"), 1);
            if ($_POST['trigger_' . $itemid] == 'receive') {
                $stock_obj->transfer_insert_into_stock($itemid);
            } elseif ($_POST['trigger_' . $itemid] == 'cancel') {
                $stock_obj->transfer_cancel($itemid);
            }
        }
    }
    header('Location: stock_tz_pass.php');
}
$debug = false;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
* See the file "copy_notice.txt" for the licence notice
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
//if ($mode=="search") {
if (!empty($keyword)) {
    if ($keyword == "*") {
        $search_results = $stock_obj->get_all_order_items($supplier);
    } else {
        $search_results = $stock_obj->get_order_array_search_results($keyword, $supplier);
    }
}
//}
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_purchase_items_step2.php";
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
$tempitems = $_SESSION['items'];
$temporders = $_SESSION['orders'];
$_SESSION['current_stock'] = 1;
while (list($x, $v) = each($_SESSION['items'])) {
    for ($i = 1; $i <= $v; $i++) {
        $stock_obj->create_new_transfer($x, -1, CURRENT_STOCK_ID);
    }
}
unset($_SESSION['items']);
unset($_SESSION['orders']);
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_purchase_items_step4.php";
* elpidio@care2x.org, meggle@merotech.de
*
* See the file "copy_notice.txt" for the licence notice
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
if ($task == "pending") {
    header('Location: stock_tz_pass.php');
}
if (!$orderby) {
    $orderby = "Drugamount";
}
$stockitems = $stock_obj->get_all_stock_amounts($orderby);
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_manage_stock_status_show_items.php";
* elpidio@care2x.org, meggle@merotech.de
*
* See the file "copy_notice.txt" for the licence notice
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
if ($task == "pending") {
    header('Location: stock_tz_pass.php');
}
if (!$orderby) {
    $orderby = "Drugamount";
}
$stockitems = $stock_obj->get_stock_amounts_of_drugsandservices_id($_GET['item_id']);
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_stock_inventory_details.php";
* See the file "copy_notice.txt" for the licence notice
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
//if ($mode=="search") {
if (!empty($keyword)) {
    if ($keyword == "*") {
        $search_results = $stock_obj->get_all_items();
    } else {
        $result_filter = 'stock';
        $search_results = $stock_obj->get_array_search_results($keyword, $result_filter);
    }
}
//}
require "gui/gui_purchase_items_step1.php";
Example #7
0
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
if ($task == "update") {
    while (list($x, $v) = each($_POST)) {
        if (strstr($x, "description")) {
            $itemid = substr(strrchr($x, "_"), 1);
            if ($_POST['description_' . $itemid]) {
                $stock_obj->stock_update($itemid, $_POST['description_' . $itemid], $_POST['type_' . $itemid], $_POST['trigger_' . $itemid]);
            }
        }
    }
    header('Location: stock_tz_pass.php');
}
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_setup_behaviour.php";
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
if ($task == "update") {
    while (list($x, $v) = each($_POST)) {
        if (strstr($x, "trigger")) {
            $itemid = substr(strrchr($x, "_"), 1);
            if ($_POST['trigger_' . $itemid] == 'update') {
                $stock_obj->transfer_update($itemid, $_POST['newdrugid_' . $itemid], $_POST['amount_' . $itemid]);
            } elseif ($_POST['trigger_' . $itemid] == 'delete') {
                $stock_obj->transfer_cancel($itemid);
            }
        }
    }
    header('Location: stock_tz_pass.php');
}
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);