Add Seeder UpdateTarifLMSSeeder
This commit is contained in:
@@ -144,7 +144,8 @@ class UpdateTarifLMSSeeder extends Seeder
|
||||
$dokUmum = JadwalDokter::query()
|
||||
->where('nIDSpesialis', $spesialisUmum->nID)
|
||||
->whereHas('healthcare', function($hc) use ($tarif) {
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to']);
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to'])
|
||||
->withTrashed();
|
||||
})
|
||||
->withTrashed()
|
||||
->update($updateUmum);
|
||||
@@ -170,7 +171,8 @@ class UpdateTarifLMSSeeder extends Seeder
|
||||
})
|
||||
->where('sIsSubSpesialis', 0)
|
||||
->whereHas('healthcare', function($hc) use ($tarif) {
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to']);
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to'])
|
||||
->withTrashed();
|
||||
})
|
||||
->withTrashed()
|
||||
->update($updateSpesialis);
|
||||
@@ -198,7 +200,8 @@ class UpdateTarifLMSSeeder extends Seeder
|
||||
})
|
||||
->where('sIsSubSpesialis', 1)
|
||||
->whereHas('healthcare', function($hc) use ($tarif) {
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to']);
|
||||
$hc->whereIn('sKodeRS', $tarif['applied_to'])
|
||||
->withTrashed();
|
||||
})
|
||||
->withTrashed()
|
||||
->update($updateSubSpesialis);
|
||||
|
||||
Reference in New Issue
Block a user