Fix bugs v2
This commit is contained in:
parent
1f709e6e6f
commit
3503ba65ce
|
@ -699,12 +699,12 @@ class HealthCareSheetController extends Controller
|
||||||
$prescription->created_at = $prescription->updated_at = $datetime;
|
$prescription->created_at = $prescription->updated_at = $datetime;
|
||||||
$prescription->save();
|
$prescription->save();
|
||||||
|
|
||||||
$nhp = NhHealthCareSheetsPrescription::create([
|
$nhPrescription = NhHealthCareSheetsPrescription::create([
|
||||||
'sheet_id' => $healthCareSheet->id,
|
'sheet_id' => $healthCareSheet->id,
|
||||||
'prescription_id' => $prescription->id
|
'prescription_id' => $prescription->id,
|
||||||
]);
|
]);
|
||||||
$nhp->created_at = $nhp->updated_at = $datetime;
|
$nhPrescription->created_at = $nhPrescription->updated_at = $datetime;
|
||||||
$nhp->save();
|
$nhPrescription->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($request->input('exams', []) as $e) {
|
foreach ($request->input('exams', []) as $e) {
|
||||||
|
|
Loading…
Reference in New Issue