fix: whitelist get_tax_rate

This commit is contained in:
vorasmit
2026-06-23 10:38:58 +05:30
parent 060b0df55e
commit 48d5e8732b

View File

@@ -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)