From 4f1b81b884c6293d6cd216b3ec238a164e3a6fa5 Mon Sep 17 00:00:00 2001 From: RitvikSardana Date: Thu, 10 Oct 2024 12:57:28 +0530 Subject: [PATCH] fix: return currency if no symbol found --- education/education/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/education/education/api.py b/education/education/api.py index cdafedcd..103e3288 100644 --- a/education/education/api.py +++ b/education/education/api.py @@ -706,7 +706,7 @@ def get_student_invoices(student): def get_currency_symbol(currency): - return frappe.db.get_value("Currency", currency, "symbol") + return frappe.db.get_value("Currency", currency, "symbol") or currency def get_posting_date_from_payment_entry_against_sales_invoice(sales_invoice):