Add specialty module and GP service pricing settings.
Deploy Ladill Care / deploy (push) Successful in 51s
Deploy Ladill Care / deploy (push) Successful in 51s
Admin dashboard module cards open per-module settings with editable service prices; GP consultation and clinic fees live under Settings → GP pricing (inventory drugs unchanged). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\Prescription;
|
||||
use App\Models\Visit;
|
||||
use App\Models\WorkflowStage;
|
||||
use App\Services\Care\CareFeatures;
|
||||
use App\Services\Care\CarePricingService;
|
||||
|
||||
/**
|
||||
* Owns FinancialObligation lifecycle and answers whether a stage's financial
|
||||
@@ -154,9 +155,16 @@ class FinancialGateService
|
||||
|
||||
protected function defaultAmountFor(WorkflowStage $stage, Visit $visit): int
|
||||
{
|
||||
$org = Organization::query()->find($visit->organization_id);
|
||||
$pricing = app(CarePricingService::class);
|
||||
|
||||
return match ($stage->charge_code) {
|
||||
'patient_card', 'registration' => (int) config('care.billing.patient_card_fee_minor', 0),
|
||||
'consultation' => (int) config('care.billing.consultation_fee_minor', 0),
|
||||
'patient_card', 'registration' => $org
|
||||
? $pricing->patientCardFee($org)
|
||||
: (int) config('care.billing.patient_card_fee_minor', 0),
|
||||
'consultation' => $org
|
||||
? $pricing->consultationFee($org)
|
||||
: (int) config('care.billing.consultation_fee_minor', 0),
|
||||
'lab' => $this->investigationTotal($visit, imaging: false),
|
||||
'imaging' => $this->investigationTotal($visit, imaging: true),
|
||||
'pharmacy' => $this->pharmacyTotal($visit),
|
||||
|
||||
Reference in New Issue
Block a user