mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
41 lines
1.1 KiB
PHP
Executable File
41 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DataCorrectionIncomeAccountAmounts extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$service_payments = \Streamline\Models\ServiceDeposit::all();
|
|
$investigation_payments = \Streamline\Models\InvestigationDeposit::all();
|
|
$procedure_payments = \Streamline\Models\ProcedureDeposit::all();
|
|
$sundry_payments = \Streamline\Models\SundryDeposit::all();
|
|
$treatment_payments = \Streamline\Models\TreatmentDeposits::all();
|
|
|
|
foreach ($service_payments as $payment){
|
|
split_service_payment($payment->id);
|
|
}
|
|
|
|
foreach ($investigation_payments as $payment){
|
|
split_investigation_payment($payment->id);
|
|
}
|
|
|
|
foreach ($procedure_payments as $payment){
|
|
split_procedure_payment($payment->id);
|
|
}
|
|
|
|
foreach ($sundry_payments as $payment){
|
|
split_sundry_payment($payment->id);
|
|
}
|
|
|
|
foreach ($treatment_payments as $payment){
|
|
split_treatment_payment($payment->id);
|
|
}
|
|
}
|
|
}
|