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