Skip to content

Commit

Permalink
fix: Quotation lost update
Browse files Browse the repository at this point in the history
(cherry picked from commit 02f9441)

# Conflicts:
#	erpnext/selling/doctype/quotation/quotation.py
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Jun 17, 2022
1 parent 051e5cd commit 3b9f943
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/selling/doctype/quotation/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ def update_opportunity_status(self, status, opportunity=None):
opp.set_status(status=status, update=True)

@frappe.whitelist()
<<<<<<< HEAD
def declare_enquiry_lost(self, lost_reasons_list, detailed_reason=None):
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"])
lost_reasons_lst = [reason.get("name") for reason in get_lost_reasons]
frappe.db.set(self, "status", "Lost")
Expand Down

0 comments on commit 3b9f943

Please sign in to comment.