master
cody 6 months ago
parent 81384b72a6
commit 86563f33ae

@ -215,9 +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;
}
// 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;
}
return response()->json($data->toArray());

Loading…
Cancel
Save