require('job_trackings_tablet_header.php');
?>
$id = $_GET['id'];
$job_id = $_GET['job_id'];
$tracking_id = $_GET['tracking_id'];
$context_detail = array(
"id" => $job_id,
);
if($job_type == 4)
{
$summary = new list_job_summary_cost_plus($context_detail );
}
else
{
$summary = new list_job_summary($context_detail );
}
$summary->get_data();
$departments_with_time = $summary->final_results;
//bug::bug_array("",$departments_with_time);
?>
$jobs = new views_jobs($context_detail);
$jobs->set()->view_tablet();
?>
$job_details = common_jobs::get_details($job_id);
$quote_id = $job_details['quote_id'];
$quote_details = common_quotes::get_details($quote_id);
$job_type = $quote_details['job_type'];
if($job_type != 4)
{
$department = common_department:: get_all_factory_department_with_quote_not_complete($job_id);
}
else
{
$department = common_production_department::get_all_active_departments();
}
if(!empty($tracking_id))
{
$current_dept = common_job_trackings::get_current_dept($tracking_id);
}
?>