mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 07:15:11 +00:00
fix: handle payment terms template when disabled
(cherry picked from commit f23dc07914)
This commit is contained in:
committed by
Mergify
parent
8f26168a55
commit
80c20531aa
@@ -464,6 +464,8 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False, ar
|
|||||||
|
|
||||||
if automatically_fetch_payment_terms:
|
if automatically_fetch_payment_terms:
|
||||||
mapping["Payment Schedule"] = {"doctype": "Payment Schedule", "add_if_empty": True}
|
mapping["Payment Schedule"] = {"doctype": "Payment Schedule", "add_if_empty": True}
|
||||||
|
else:
|
||||||
|
mapping["Quotation"]["field_no_map"] = ["payment_terms_template"]
|
||||||
|
|
||||||
doclist = get_mapped_doc(
|
doclist = get_mapped_doc(
|
||||||
"Quotation",
|
"Quotation",
|
||||||
|
|||||||
Reference in New Issue
Block a user