Bill Queue Pro per active branch like Enterprise.
Deploy Ladill Queue / deploy (push) Successful in 33s

Show /branch/mo pricing with live branch totals on the plans page,
charge subscribe/prepaid/renewals by branch count, and store pro_billed_branches.
This commit is contained in:
isaacclad
2026-07-16 09:33:03 +00:00
parent 4e45ef4b65
commit 8892316664
6 changed files with 163 additions and 37 deletions
+12 -2
View File
@@ -74,9 +74,19 @@ class PlanService
return $max === null || $currentCount < $max;
}
public function proPriceMinor(): int
public function proPricePerBranchMinor(): int
{
return (int) config('qms.plans.pro.price_minor', 249000);
return (int) config(
'qms.plans.pro.price_minor_per_branch',
config('qms.plans.pro.price_minor', 249000)
);
}
public function proPriceMinor(Organization $organization): int
{
$branches = max(1, $this->activeBranchCount($organization));
return $branches * $this->proPricePerBranchMinor();
}
public function enterprisePricePerBranchMinor(): int