Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
corporate: Fix 'free_trial=True` for legacy customers during upgrade.
Prakhar Pratyusha764f9ce25e2
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 08df9216baf..ae20aa88de4 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -1736,6 +1736,9 @@ class BillingSession(ABC):free_trial = Falseremote_server_legacy_plan = self.get_remote_server_legacy_plan(customer)+ if remote_server_legacy_plan is not None:+ # Free trial is not available for legacy customers.+ free_trial = Falseshould_schedule_upgrade_for_legacy_remote_server = (remote_server_legacy_plan is not Noneand upgrade_request.remote_server_plan_start_date == "billing_cycle_end_date"