<?php

function dashboard_get_transport_approvals_users($from_date, $to_date, $user_id=0) {
    $sql_vehicle_requests = dashboard_get_sql_for_approvals($from_date, $to_date, $user_id, ST_VEHICLE_REQUEST);
    $sql_vehicle_allocations = dashboard_get_sql_for_approvals($from_date, $to_date, $user_id, ST_VEHICLE_ALLOCATION);
    $sql_vehicle_charts = dashboard_get_sql_for_approvals($from_date, $to_date, $user_id, ST_VEHICLE_RUNNING_CHART);
    
    $sql = $sql_vehicle_requests 
        ." UNION ".$sql_vehicle_allocations 
        ." UNION ".$sql_vehicle_charts 
            ;   
    
        return dashboard_get_approvals_users($sql);
}

?>