master
cody 6 months ago
parent 8eaadd6adc
commit 1a7d501da4

@ -215,10 +215,9 @@ class OrdersController extends CommonController
['paramedic_id' => $order->paramedic_id]
];
// if ($order->paramedic_id && ($order->orderAgreements->isEmpty() || ($order->orderAgreements->isNotEmpty() && $order->orderAgreements[0]->paramedic_id != $order->paramedic_id))) {
// $order->need_agreements = 1;
// }
// $order->paramedic_id = null;
if ($order->paramedic_id && ($order->orderAgreements->isEmpty() || ($order->orderAgreements->isNotEmpty() && $order->orderAgreements[0]->paramedic_id != $order->paramedic_id))) {
$order->need_agreements = 1;
}
}
return response()->json($data->toArray());
}

Loading…
Cancel
Save