diff --git a/app/services/pricing_engine.py b/app/services/pricing_engine.py index 499da965..a546484f 100644 --- a/app/services/pricing_engine.py +++ b/app/services/pricing_engine.py @@ -603,6 +603,9 @@ class PricingEngine: period_pct = 0 devices_pct = 0 promo_group = self.resolve_promo_group(user) + # Only apply promo group discount if the tariff is available for this group + if promo_group is not None and not tariff.is_available_for_promo_group(promo_group.id): + promo_group = None if promo_group is not None: period_pct = promo_group.get_discount_percent('period', period_days) devices_pct = promo_group.get_discount_percent('devices', period_days)