feat: multicurrency

This commit is contained in:
Jannat Patel
2023-09-12 12:13:41 +05:30
parent 04501143ec
commit f137f8e048
3 changed files with 39 additions and 18 deletions

View File

@@ -14,8 +14,12 @@ def get_context(context):
validate_access(doctype, docname, module)
get_billing_details(context)
check_multicurrency(context)
apply_gst(context)
context.amount, context.currency = check_multicurrency(
context.amount, context.currency
)
if context.currency == "INR":
context.amount, context.gst_applied = apply_gst(context.amount, None)
def validate_access(doctype, docname, module):