mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
refactor(subscription): default prorate 0
(cherry picked from commit eda1dae882)
This commit is contained in:
@@ -483,12 +483,10 @@ class Subscription(Document):
|
|||||||
|
|
||||||
return invoice
|
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`
|
Returns the `Item`s linked to `Subscription Plan`
|
||||||
"""
|
"""
|
||||||
if prorate is None:
|
|
||||||
prorate = False
|
|
||||||
|
|
||||||
prorate_factor = 1
|
prorate_factor = 1
|
||||||
if prorate:
|
if prorate:
|
||||||
|
|||||||
Reference in New Issue
Block a user