mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
perf: Use cached accounts settings (#47947)
This commit is contained in:
@@ -354,7 +354,7 @@ class TransactionBase(StatusUpdater):
|
||||
self.set_rate_based_on_price_list(item_obj, item_details)
|
||||
|
||||
def add_taxes_from_item_template(self, item_obj: object, item_details: dict) -> None:
|
||||
if item_details.item_tax_rate and frappe.db.get_single_value(
|
||||
if item_details.item_tax_rate and frappe.get_settings(
|
||||
"Accounts Settings", "add_taxes_from_item_tax_template"
|
||||
):
|
||||
item_tax_template = frappe.json.loads(item_details.item_tax_rate)
|
||||
|
||||
Reference in New Issue
Block a user