Bill Queue Pro per active branch like Enterprise.
Deploy Ladill Queue / deploy (push) Successful in 33s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user