mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Adjustments for email quotas
This commit is contained in:
parent
2757fae1f2
commit
8383dc1c6d
@ -503,8 +503,10 @@ class Account extends BaseModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isPaid()) {
|
if ($this->isPaid()) {
|
||||||
|
$multiplier = $this->plan == 'enterprise' ? 2 : 1.2;
|
||||||
|
|
||||||
$limit = $this->paid_plan_email_quota;
|
$limit = $this->paid_plan_email_quota;
|
||||||
$limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 30;
|
$limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * (20 * $multiplier);
|
||||||
} else {
|
} else {
|
||||||
$limit = $this->free_plan_email_quota;
|
$limit = $this->free_plan_email_quota;
|
||||||
$limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 1.5;
|
$limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 1.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user