mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 22:51:49 +00:00
fix: whitelist get_tax_rate
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user