Merge branch 'develop' into accounting_dimension_consistency

This commit is contained in:
Deepesh Garg
2022-04-26 14:26:08 +05:30
committed by GitHub
28 changed files with 511 additions and 164 deletions

View File

@@ -0,0 +1,9 @@
import frappe
def execute():
doc = frappe.get_doc("Accounts Settings")
discount_account = doc.enable_discount_accounting
if discount_account:
for doctype in ["Buying Settings", "Selling Settings"]:
frappe.db.set_value(doctype, doctype, "enable_discount_accounting", 1, update_modified=False)