From f1cb0e6f3c157172d22c98c2a2034f320487c330 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 9 Oct 2024 19:07:25 +0530 Subject: [PATCH] fix: usd conversion --- lms/lms/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index bd70e2ce..ca81644b 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -17,6 +17,7 @@ from frappe.utils import ( add_months, cint, cstr, + ceil, flt, fmt_money, format_date, @@ -948,7 +949,7 @@ def check_multicurrency(amount, currency, country=None, amount_usd=None): if apply_rounding and amount % 100 != 0: amount = amount + 100 - amount % 100 - return amount, currency + return ceil(amount), currency def apply_gst(amount, country=None):