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