refactor(subscription): default prorate 0

(cherry picked from commit eda1dae882)
This commit is contained in:
ravibharathi656
2025-09-19 16:48:35 +05:30
committed by Mergify
parent f27b754570
commit 3fcbb10155

View File

@@ -483,12 +483,10 @@ class Subscription(Document):
return invoice
def get_items_from_plans(self, plans: list[dict[str, str]], prorate: bool | None = None) -> list[dict]:
def get_items_from_plans(self, plans: list[dict[str, str]], prorate: int = 0) -> list[dict]:
"""
Returns the `Item`s linked to `Subscription Plan`
"""
if prorate is None:
prorate = False
prorate_factor = 1
if prorate: