mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 23:18:40 +00:00
fix: simplify get_round_off_applicable_accounts function signature
This commit is contained in:
@@ -1130,9 +1130,7 @@ def get_itemised_tax_breakup_html(doc):
|
|||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_round_off_applicable_accounts(
|
def get_round_off_applicable_accounts(company, account_list, doc=None):
|
||||||
company: str, account_list: list | str, doc: str | dict | Document | None = None
|
|
||||||
):
|
|
||||||
# required to set correct region
|
# required to set correct region
|
||||||
with temporary_flag("company", company):
|
with temporary_flag("company", company):
|
||||||
return get_regional_round_off_accounts(company, account_list, doc)
|
return get_regional_round_off_accounts(company, account_list, doc)
|
||||||
|
|||||||
Reference in New Issue
Block a user