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

include_once($path_to_root . "/includes/session.inc");
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/assets/includes/ui/asset_expense_details_inquiry_ui.inc");
include_once($path_to_root . "/inventory/includes/ui/item_transactions_inquiry_ui.inc"); 
include_once($path_to_root . "/inventory/includes/db/item_transactions_inquiry_db.inc"); 
include_once($path_to_root . "/petty_cash/includes/ui/i_owe_you_expense_details_inquiry_ui.inc"); 
include_once($path_to_root . "/petty_cash/includes/db/i_owe_you_batch_expenses_inquiry_db.inc"); 
include_once($path_to_root . "/gl/includes/ui/utility_bill_expense_details_inquiry_ui.inc"); 
include_once($path_to_root . "/gl/includes/db/utility_bill_inquiry_db.inc"); 
include_once($path_to_root . "/includes/db/group_companies_db.inc");  
include_once($path_to_root . "/transport/includes/db/vehicles_db.inc");

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

page(_($help_context = "Asset Expense Details Inquiry"), false, false, "", $js);

start_form();

    $Ajax->activate('itm_trns');
    
    div_start('itm_trns');
    
        display_asset_expense_details_inquiry_selecting_parameters();

        if (isset($_POST['SearchItemTrans'])) {
            display_asset_expense_details_inquiry_details($_POST['project_id'], $_POST['from_date'], $_POST['to_date'], $_POST['asset_id']);
        } else {
            display_note('Select filters then click search button.', 2, 2);
        }
    
    div_end();

end_form(2);

end_page(@$_GET['popup'], false, false);

?>