mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
Executable
+51
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DataCorrectionInventoryAndCostOfGoodsAccountSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeders.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$drugs = \Streamline\Models\Drug::all();
|
||||
$sundries = \Streamline\Models\Sundry::all();
|
||||
|
||||
$sundry_deposits = \Streamline\Models\SundryDeposit::all();
|
||||
$treatment_deposits = \Streamline\Models\TreatmentDeposits::all();
|
||||
$drugs_cost_of_good_account_id = \Streamline\Models\ChartOfAccount::where('id', 17)->pluck('id')->first();
|
||||
$sundries_cost_of_good_account_id = \Streamline\Models\ChartOfAccount::where('id', 5)->pluck('id')->first();
|
||||
$drugs_inventory_asset_account_id = \Streamline\Models\ChartOfAccount::where('id', 18)->pluck('id')->first();
|
||||
$sundries_inventory_asset_account_id = \Streamline\Models\ChartOfAccount::where('id', 24)->pluck('id')->first();
|
||||
|
||||
|
||||
foreach ($drugs as $drug) {
|
||||
\Streamline\Models\Drug::where('id', $drug->id)->update([
|
||||
'cost_of_goods_account' => $drugs_cost_of_good_account_id,
|
||||
'inventory_account' => $drugs_inventory_asset_account_id
|
||||
]);
|
||||
}
|
||||
foreach ($sundries as $sundry) {
|
||||
\Streamline\Models\Sundry::where('id', $sundry->id)->update([
|
||||
'cost_of_goods_account' => $sundries_cost_of_good_account_id,
|
||||
'inventory_account' => $sundries_inventory_asset_account_id
|
||||
]);
|
||||
}
|
||||
|
||||
foreach ($treatment_deposits as $treatment) {
|
||||
\Streamline\Models\TreatmentDeposits::where('id', $treatment->id)->update([
|
||||
'cost_of_goods_account' => $drugs_cost_of_good_account_id,
|
||||
'inventory_account' => $drugs_inventory_asset_account_id
|
||||
]);
|
||||
}
|
||||
foreach ($sundry_deposits as $sundry) {
|
||||
\Streamline\Models\TreatmentDeposits::where('id', $treatment->id)->update([
|
||||
'cost_of_goods_account' => $sundries_cost_of_good_account_id,
|
||||
'inventory_account' => $sundries_inventory_asset_account_id
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user