Fix bugs v2

This commit is contained in:
Djery-Tom 2022-02-09 13:47:29 +01:00
parent 1f709e6e6f
commit 3503ba65ce
1 changed files with 4 additions and 4 deletions

View File

@ -699,12 +699,12 @@ class HealthCareSheetController extends Controller
$prescription->created_at = $prescription->updated_at = $datetime;
$prescription->save();
$nhp = NhHealthCareSheetsPrescription::create([
$nhPrescription = NhHealthCareSheetsPrescription::create([
'sheet_id' => $healthCareSheet->id,
'prescription_id' => $prescription->id
'prescription_id' => $prescription->id,
]);
$nhp->created_at = $nhp->updated_at = $datetime;
$nhp->save();
$nhPrescription->created_at = $nhPrescription->updated_at = $datetime;
$nhPrescription->save();
}
foreach ($request->input('exams', []) as $e) {