2022-04-08 11:57:53 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
doc = frappe.get_doc("Accounts Settings")
|
|
|
|
discount_account = doc.enable_discount_accounting
|
|
|
|
if discount_account:
|
2022-04-08 12:50:41 +00:00
|
|
|
for doctype in ["Buying Settings", "Selling Settings"]:
|
2022-04-08 22:25:25 +00:00
|
|
|
frappe.db.set_value(doctype, doctype, 'enable_discount_accounting', 1, update_modified=False)
|