$dataActivity = Activity::whereRaw("'".$currentDate."' BETWEEN DATE(m_activity.start_date) AND DATE(m_activity.end_date)")->where('parent_id', $dataHeader->id)->where("proyek_id", $val['proyek_id'])->where("version_gantt_id", $val['last_gantt_id'])->get();
}else{
$dataActivity = Activity::whereRaw("'".$currentDate."' BETWEEN DATE(m_activity.start_date) AND DATE(m_activity.end_date)")->whereNull('parent_id')->where("proyek_id", $val['proyek_id'])->where("version_gantt_id", $val['last_gantt_id'])->get();
->select('tcio.id as clock_in_out_id','mu.id as user_id', 'mu.name as fullname', 'tcio.clock_in', 'tcio.clock_out', 'tcio.clock_in_lat', 'tcio.clock_in_lng',
return response()->json(['status'=>'failed', 'data'=>$data, 'message'=>'Tidak dapat melakukan presensi. Anda belum di assign ke area kerja.','code'=>200], 200);
return response()->json(['status'=>'failed', 'data'=>$data, 'message'=>'Tidak dapat melakukan presensi. Anda berada di luar area kerja.','code'=>200], 200);
return response()->json(['status'=>'failed', 'data'=>$data, 'message'=>'Tidak dapat melakukan presensi. Anda belum di assign ke area kerja.','code'=>200], 200);
return response()->json(['status'=>'failed', 'data'=>$data, 'message'=>'Tidak dapat melakukan presensi. Anda berada di luar area kerja.','code'=>200], 200);
POST {{hostname}}/assign-material/ForReportActivityByMaterial
@ -796,17 +889,217 @@ GET {{hostname}}/presence/clockinout/262
Authorization: Bearer {{token}}
content-type: application/json
######
POST {{hostname}}/presence/add
Authorization: Bearer {{token}}
content-type: application/json
{
"clock_in_lat": -6.16678379060529,
"clock_in_lng": 106.9175039866567,
"clock_time": "2023-02-16T14:48:17+07:00",
"type": "in",
"user_id": 1247
}
######
POST {{hostname}}/presence/add
Authorization: Bearer {{token}}
content-type: application/json
{
"clock_out_lat": -6.2622811,
"clock_out_lng": 106.7881746,
"clock_time": "2022-04-25T16:40:17+07:00",
"type": "out",
"user_id": 262
"clock_in_lat": -1.4264273154149407,
"clock_in_lng": 113.98530036945851,
"clock_time": "2023-02-13T16:40:17+07:00",
"type": "in",
"user_id": 1
}
######
# POST {{hostname}}/
GET {{hostname}}/assign-material/datatablesForReportActivity?draw=2&columns[0][data]=material_name&columns[0][name]=material_name&columns[0][searchable]=true&columns[0][orderable]=true&columns[0][search][value]=&columns[0][search][regex]=false&columns[1][data]=type&columns[1][name]=type&columns[1][searchable]=true&columns[1][orderable]=true&columns[1][search][value]=&columns[1][search][regex]=false&columns[2][data]=qty_planning&columns[2][name]=&columns[2][searchable]=true&columns[2][orderable]=true&columns[2][search][value]=&columns[2][search][regex]=false&columns[3][data]=qty_sum&columns[3][name]=&columns[3][searchable]=true&columns[3][orderable]=true&columns[3][search][value]=&columns[3][search][regex]=false&columns[4][data]=uom&columns[4][name]=uom&columns[4][searchable]=true&columns[4][orderable]=true&columns[4][search][value]=&columns[4][search][regex]=false&columns[5][data]=action&columns[5][name]=action&columns[5][searchable]=true&columns[5][orderable]=true&columns[5][search][value]=&columns[5][search][regex]=false&order[0][column]=0&order[0][dir]=asc&start=0&length=10&search[value]=&search[regex]=false&idact=2511&_=1675418553660
Authorization: Bearer {{token}}
content-type: application/json
######
GET {{hostname}}/dashboard/get-total-project-per-schedule-health
Authorization: Bearer {{token}}
content-type: application/json
######
GET {{hostname}}/dashboard/get-detail-expenditure
Authorization: Bearer {{token}}
content-type: application/json
######
GET {{hostname}}/presence/bulk-update-location
Authorization: Bearer {{token}}
content-type: application/json
#####
GET https://nominatim.oslogdev.com/reverse?lat=-6.2622811&lon=106.7881746&format=json
######
POST {{hostname}}/waypoint/add
Authorization: Bearer {{token}}
content-type: application/json
{
"user_id": 1247,
"lat": -6.2622811,
"lng": 106.7881746,
"wptime": "2023-02-07T10:40:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0
}
######
POST {{hostname}}/map-monitoring/search
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id" : [75, 76, 78]
}
######
POST {{hostname}}/waypoint/add-bulk
Authorization: Bearer {{token}}
content-type: application/json
{
"wp_records": [
{
"user_id": 1247,
"lon": 106.88702067952579,
"lat": -6.193331793510694,
"wptime": "2023-02-07T10:40:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0,
"datesend": "2023-02-07T10:40:17+07:00"
},
{
"user_id": 1247,
"lon": 106.88731982052337,
"lat": -6.1933255977790225,
"wptime": "2023-02-07T10:41:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0,
"datesend": "2023-02-07T10:41:17+07:00"
},
{
"user_id": 1247,
"lon": 106.88765896352822,
"lat": -6.193328086924183,
"wptime": "2023-02-07T10:42:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0,
"datesend": "2023-02-07T10:42:17+07:00"
},
{
"user_id": 1247,
"lon": 106.88812637133634,
"lat": -6.1933373805197505,
"wptime": "2023-02-07T10:43:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0,
"datesend": "2023-02-07T10:43:17+07:00"
},
{
"user_id": 1247,
"lon": 106.88867721532353,
"lat": -6.1933448515770095,
"wptime": "2023-02-07T10:44:17+07:00",
"speed": 0,
"angle": 0,
"satelite": 0,
"datesend": "2023-02-07T10:44:17+07:00"
}
]
}
#####
POST {{hostname}}/map-monitoring/search
Authorization: Bearer {{token}}
content-type: application/json
{
"time_from": "2023-02-10 00:00:00",
"time_to": "2023-02-10 23:59:00",
}
# {
# "columns": [
# {
# "logic_operator": "range",
# "name": "created_at",
# "operator": "AND",
# "value": "2023-02-10 00:00:00",
# "value1": "2023-02-10 23:59:00"
# }
# ],
# "joins": [
# {
# "column_join": "user_id",
# "column_results": [
# "username", "name"
# ],
# "name": "m_users"
# }
# ],
# "orders": {
# "ascending": false,
# "columns": [
# "created_at"
# ]
# },
# "paging": {
# "length": 25,
# "start": 0
# }
# }
<<<<<<< HEAD
GET /stock_master?name=SEARCH
######
GET {{hostname}}/request-material/get-material-integration
Authorization: Bearer {{token}}
content-type: application/json
######
POST {{hostname}}/presence/reportk3
Authorization: Bearer {{token}}
content-type: application/json
{
"time" : "2023-02-16T14:48:17+07:00", // untuk report date, time_clockin/out