fix(minor): fix create_accounting_dimensions_in_orders.py
This commit is contained in:
parent
6a953d9297
commit
be0f84a722
@ -5,7 +5,7 @@ def execute():
|
||||
data = frappe.db.sql(
|
||||
'select value from tabSingles where doctype="Accounts Settings" and field="enable_discount_accounting"'
|
||||
)
|
||||
discount_account = data and data[0][0] or 0
|
||||
discount_account = data and int(data[0][0]) or 0
|
||||
if discount_account:
|
||||
for doctype in ["Buying Settings", "Selling Settings"]:
|
||||
frappe.db.set_value(doctype, doctype, "enable_discount_accounting", 1, update_modified=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user