<?php
/**********************************************************************
***********************************************************************/
$page_security = 'SA_ITEMSTRANSVIEW';
$path_to_root = "../..";

include($path_to_root . "/includes/session.inc");
include_once($path_to_root . "/includes/ui.inc"); 

include_once($path_to_root . "/includes/db/group_companies_db.inc");

include_once($path_to_root . "/inventory/includes/ui/batch_item_issue_ui.inc");
include_once($path_to_root . "/inventory/includes/ui/batch_item_issue_select_ui.inc");
include_once($path_to_root . "/inventory/includes/ui/batch_item_issue_transactions_ui.inc");

include_once($path_to_root . "/inventory/includes/db/batch_item_issue_db.inc");
include_once($path_to_root . "/inventory/includes/db/batch_item_issue_transactions_db.inc");

$js = "";
$js .= get_js_open_window(800, 500);

global $systypes_array;

page(_($help_context = "View Batch Item Issue"), true, false, "", $js);

if (isset($_GET["trans_no"])) {
    $trans_no = $_GET["trans_no"];
}


    display_heading($systypes_array[ST_BATCH_ITEM_ISSUE]." #$trans_no");

    view_batch_item_issue_header(ST_BATCH_ITEM_ISSUE, $trans_no);

//    display_heading($systypes_array[ST_BATCH_ITEM_ISSUE]." Details");

//    view_batch_item_issue_details(ST_BATCH_ITEM_ISSUE, $trans_no); 
    br(1);
    $h = get_batch_item_issue_header_record_type_trans_no(ST_BATCH_ITEM_ISSUE, $trans_no);
    display_batch_item_issue_select_details($h['id'], true); 


end_page(true, false, false, ST_BATCH_ITEM_ISSUE, $trans_no);

?>