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

include($path_to_root . "/includes/session.inc");
include($path_to_root . "/includes/ui/ui_input.inc"); 
include_once($path_to_root . "/dashboard/includes/ui/view_dashboard_transport_item_consumptions_ui.inc"); 
include_once($path_to_root . "/dashboard/includes/db/view_dashboard_transport_item_consumptions_db.inc");  
include_once($path_to_root . "/dashboard/includes/db/dashboard_transport_item_consumption_db.inc");  
include_once($path_to_root . "/transport/includes/db/vehicles_db.inc");
//include_once($path_to_root . "/inventory/includes/db/petty_cash_item_receive_db.inc"); 
include_once($path_to_root . "/projects/includes/db/projects_db.inc"); 


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

page(_($help_context = "Dashboard Transport Item Consumption View"), true, false, "", $js);

$from_date = $to_date = $item_code = '';
$vehicle_id = 0;

if (isset($_GET['vid'])) {
    $vehicle_id = $_GET['vid'];
}
if (isset($_GET['item'])) {
    $item_code = $_GET['item'];
}
if (isset($_GET['from_date'])) {
    $from_date = $_GET['from_date'];
}
if (isset($_GET['to_date'])) {
    $to_date = $_GET['to_date'];
}

dashboard_view_transport_item_consumptions($vehicle_id, $from_date, $to_date, $item_code);

end_page(true, false, false, DASH_SC_PETTY_CASH_EXPENSES, $_GET['vid']);

?>