You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$Orders = Orders::select('orders.id', DB::raw('orders.code as text'), DB::raw("0 AS duration"), DB::raw("0 as progress"), 'orders.validity_date AS end_date', DB::raw("0 as parent"))
36
-
->where('orders.statu', '=', 1)
37
-
->Orwhere('orders.statu', '=', 2)
38
-
->orderBy('orders.validity_date')
39
-
->get()->map(function($tag){
40
-
return [
41
-
'id' => $tag->id,
42
-
'text' => $tag->text,
43
-
'duration' => $tag->duration,
44
-
'progress' => $tag->progress,
45
-
'end_date' => $tag->end_date,
46
-
'parent' => $tag->parent,
47
-
];
48
-
});
42
+
// Récupérer la ligne de commande
43
+
$orderLine = OrderLines::find($order_lines_id);
49
44
50
-
$OrderLines = OrderLines::select(DB::raw('CONCAT(\'l_\',order_lines.id) AS id_tempo'), DB::raw('CONCAT(order_lines.code, \'\', order_lines.label) as text'), DB::raw("0 AS duration"), DB::raw("0 as progress"), 'order_lines.internal_delay AS end_date', DB::raw('order_lines.orders_id as parent'))
$tasks = Task::select('tasks.id', DB::raw('CONCAT(\'#\',tasks.id, \'\', tasks.label) as text'), DB::raw("(tasks.qty * tasks.unit_time + tasks.seting_time) AS duration"), 'tasks.end_date AS end_date', DB::raw('CONCAT(\'l_\',tasks.order_lines_id) as parent'), DB::raw("methods_services.color as color"))
0 commit comments