mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
23 lines
596 B
PHP
Executable File
23 lines
596 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DataCorrectionBillDateSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$all_bills = \Streamline\Models\HospitalBill::all();
|
|
foreach ($all_bills as $bill){
|
|
\Streamline\Models\HospitalBill::where('id', $bill->id)->update([
|
|
'bill_date' => \Carbon\Carbon::parse($bill->bill_date)->toDateString(),
|
|
'bill_due_date' => \Carbon\Carbon::parse($bill->bill_due_date)->toDateString(),
|
|
]);
|
|
}
|
|
}
|
|
}
|