fix: Quotation lost update
(cherry picked from commit 02f9441e1a)
# Conflicts:
# erpnext/selling/doctype/quotation/quotation.py
This commit is contained in:
@@ -115,8 +115,13 @@ class Quotation(SellingController):
|
|||||||
opp.set_status(status=status, update=True)
|
opp.set_status(status=status, update=True)
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
<<<<<<< HEAD
|
||||||
def declare_enquiry_lost(self, lost_reasons_list, detailed_reason=None):
|
def declare_enquiry_lost(self, lost_reasons_list, detailed_reason=None):
|
||||||
if not self.has_sales_order():
|
if not self.has_sales_order():
|
||||||
|
=======
|
||||||
|
def declare_enquiry_lost(self, lost_reasons_list, competitors, detailed_reason=None):
|
||||||
|
if not self.is_fully_ordered() or self.is_partially_ordered():
|
||||||
|
>>>>>>> 02f9441e1a (fix: Quotation lost update)
|
||||||
get_lost_reasons = frappe.get_list("Quotation Lost Reason", fields=["name"])
|
get_lost_reasons = frappe.get_list("Quotation Lost Reason", fields=["name"])
|
||||||
lost_reasons_lst = [reason.get("name") for reason in get_lost_reasons]
|
lost_reasons_lst = [reason.get("name") for reason in get_lost_reasons]
|
||||||
frappe.db.set(self, "status", "Lost")
|
frappe.db.set(self, "status", "Lost")
|
||||||
|
|||||||
Reference in New Issue
Block a user