From 10573d0f308502c86e00b50a5e1e3f0fc21cb426 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 Jan 2017 09:33:36 +0200 Subject: [PATCH] Refine promo rules --- app/Models/Company.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Company.php b/app/Models/Company.php index f1bfd81b9a..b0213f9d01 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -107,6 +107,11 @@ class Company extends Eloquent return false; } + // if they've already been pro return false + if ($this->plan_expires && $this->plan_expires != '0000-00-00') { + return false; + } + // if they've already had a discount or a promotion is active return false if ($this->discount_expires || $this->hasActivePromo()) { return false;