Update supplier_quotation.py
This commit is contained in:
parent
107099aac9
commit
59a67c3586
@ -104,9 +104,6 @@ def make_purchase_order(source_name, target_doc=None):
|
||||
|
||||
@frappe.whitelist()
|
||||
def make_quotation(source_name, target_doc=None):
|
||||
def set_missing_values(source, target):
|
||||
quotation = frappe.get_doc(target)
|
||||
|
||||
doclist = get_mapped_doc("Supplier Quotation", source_name, {
|
||||
"Supplier Quotation": {
|
||||
"doctype": "Quotation",
|
||||
@ -119,7 +116,7 @@ def make_quotation(source_name, target_doc=None):
|
||||
"condition": lambda doc: frappe.db.get_value("Item", doc.item_code, "is_sales_item")==1,
|
||||
"add_if_empty": True
|
||||
}
|
||||
}, target_doc, set_missing_values)
|
||||
}, target_doc)
|
||||
|
||||
return doclist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user