Limit Pro to 3 branches and leave Business unlimited.
Deploy Ladill POS / deploy (push) Successful in 2m15s

Enforce plan location caps in SubscriptionService, surface upgrade
copy on plans and branch settings, and cover the limits in tests.
This commit is contained in:
isaacclad
2026-07-15 15:24:51 +00:00
parent e2b608a506
commit 5e31bdf629
7 changed files with 142 additions and 7 deletions
+10 -2
View File
@@ -19,8 +19,16 @@ return [
],
'plans' => [
'pro' => ['price_minor' => (int) env('POS_PRO_PRICE_MINOR', 79000)],
'enterprise' => ['price_minor' => (int) env('POS_ENTERPRISE_PRICE_MINOR', 249000)],
'pro' => [
'price_minor' => (int) env('POS_PRO_PRICE_MINOR', 79000),
// null = unlimited
'max_locations' => (int) env('POS_PRO_MAX_LOCATIONS', 3),
],
'enterprise' => [
'price_minor' => (int) env('POS_ENTERPRISE_PRICE_MINOR', 249000),
// null = unlimited branches
'max_locations' => null,
],
],
'prepaid_months' => [6, 12, 24],