mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
refactor: fetch payment terms in account settings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user