Add specialty module and GP service pricing settings.
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:
isaacclad
2026-07-18 17:19:18 +00:00
co-authored by Cursor
parent ce782382c5
commit 5a1d47b9cc
13 changed files with 631 additions and 19 deletions
@@ -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),