Fix bugs v3

This commit is contained in:
Djery-Tom 2022-02-09 13:49:37 +01:00
parent 3503ba65ce
commit 20d0824276
1 changed files with 2 additions and 3 deletions

View File

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