mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
Merge pull request #56345 from vorasmit/fix-get-tax-rate
fix: whitelist `get_tax_rate`
This commit is contained in:
@@ -177,6 +177,7 @@ class TaxService:
|
|||||||
return amount, base_amount
|
return amount, base_amount
|
||||||
|
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_tax_rate(account_head: str) -> dict:
|
def get_tax_rate(account_head: str) -> dict:
|
||||||
return frappe.get_cached_value("Account", account_head, ["tax_rate", "account_name"], as_dict=True)
|
return frappe.get_cached_value("Account", account_head, ["tax_rate", "account_name"], as_dict=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user