mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user