mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
Merge pull request #2315 from raizasafeel/fix/types
fix: allow None for optional args in get_order_summary
This commit is contained in:
@@ -1721,7 +1721,7 @@ def get_discussion_replies(topic: str):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_order_summary(doctype: str, docname: str, coupon: str = None, country: str = None):
|
||||
def get_order_summary(doctype: str, docname: str, coupon: str | None = None, country: str | None = None):
|
||||
details = get_paid_course_details(docname) if doctype == "LMS Course" else get_paid_batch_details(docname)
|
||||
|
||||
details.amount, details.currency = check_multicurrency(
|
||||
|
||||
Reference in New Issue
Block a user