billing: downgrade_now -> downgrade_now_without_creating_additional_invoice.

This commit is contained in:
Vishnu KS
2020-08-13 13:52:58 +05:30
committed by Tim Abbott
parent 0c2d1f068d
commit 0d30f59c97
3 changed files with 8 additions and 5 deletions

View File

@@ -627,7 +627,7 @@ def estimate_annual_recurring_revenue_by_realm() -> Dict[str, int]: # nocoverag
# During realm deactivation we instantly downgrade the plan to Limited.
# Extra users added in the final month are not charged. Also used
# for the cancellation of Free Trial.
def downgrade_now(realm: Realm) -> None:
def downgrade_now_without_creating_additional_invoices(realm: Realm) -> None:
plan = get_current_plan_by_realm(realm)
if plan is None:
return