From 48d5e8732b02cb12cd1c1a3a07355126be45d992 Mon Sep 17 00:00:00 2001 From: vorasmit Date: Tue, 23 Jun 2026 10:38:58 +0530 Subject: [PATCH] fix: whitelist `get_tax_rate` --- erpnext/accounts/services/taxes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/services/taxes.py b/erpnext/accounts/services/taxes.py index 2705bf4ea73..8f77ba4eb14 100644 --- a/erpnext/accounts/services/taxes.py +++ b/erpnext/accounts/services/taxes.py @@ -177,6 +177,7 @@ class TaxService: return amount, base_amount +@frappe.whitelist() def get_tax_rate(account_head: str) -> dict: return frappe.get_cached_value("Account", account_head, ["tax_rate", "account_name"], as_dict=True)