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:
+40
@@ -0,0 +1,40 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user