mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
fix: minor fix
This commit is contained in:
@@ -4,8 +4,8 @@ def execute():
|
||||
doc = frappe.get_doc("Accounts Settings")
|
||||
discount_account = doc.enable_discount_accounting
|
||||
if discount_account:
|
||||
buying_settings = frappe.get_doc("Buying Settings")
|
||||
selling_settings = frappe.get_doc("Selling Settings")
|
||||
buying_settings = frappe.get_doc("Buying Settings", "Buying Settings")
|
||||
selling_settings = frappe.get_doc("Selling Settings", "Selling Settings")
|
||||
|
||||
buying_settings.enable_discount_accounting = 1
|
||||
selling_settings.enable_discount_accounting = 1
|
||||
|
||||
Reference in New Issue
Block a user