refactor: fetch payment terms in account settings

This commit is contained in:
Himanshu Warekar
2019-04-17 15:35:43 +05:30
parent 308ae1f155
commit 1865e0df7c
9 changed files with 720 additions and 816 deletions

View File

@@ -419,7 +419,7 @@ def make_purchase_invoice(source_name, target_doc=None):
}
}
if frappe.get_single("Fetch Payment Terms").fetch_payment_terms == 1:
if frappe.get_single("Accounts Settings").automatically_fetch_payment_terms == 1:
fields["Payment Schedule"] = {
"doctype": "Payment Schedule",
"add_if_empty": True