Harden per-branch billing with seat caps and mid-cycle expansion.
Deploy Ladill Frontdesk / deploy (push) Successful in 55s

Enforce billed_branches when adding or reactivating branches, charge
wallet for extra seats mid-cycle, fix Settings for Enterprise, and
cover multi-branch checkout and renewal amounts in tests.
This commit is contained in:
isaacclad
2026-07-16 08:08:10 +00:00
parent bdbf572f19
commit 59433f2b7b
8 changed files with 449 additions and 24 deletions
@@ -43,7 +43,11 @@ class SettingsController extends Controller
'notificationEvents' => config('frontdesk.notification_events'),
'plan' => $plan,
'isPro' => $plans->isPro($organization),
'proPriceMinor' => $plans->proPriceMinor(),
'isEnterprise' => $plans->isEnterprise($organization),
'hasPaidPlan' => $plans->hasPaidPlan($organization),
'billedBranches' => $plans->billedBranches($organization),
'activeBranchCount' => $plans->activeBranchCount($organization),
'proPriceMinor' => $plans->proPricePerBranchMinor(),
'monthlyUsage' => $monthlyUsage,
'freeEmailAllowance' => $freeEmailAllowance,
'emailCostFormatted' => $pricing->formatMinor($pricing->emailCostMinor()),