Skip to content

Commit

Permalink
Merge branch 'develop' into refactor_payment_reconciliation_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Jun 17, 2022
2 parents 3a238b4 + a0cab76 commit 4a90cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/quotation/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def update_opportunity_status(self, status, opportunity=None):

@frappe.whitelist()
def declare_enquiry_lost(self, lost_reasons_list, competitors, detailed_reason=None):
if not self.has_sales_order():
if not (self.is_fully_ordered() or self.is_partially_ordered()):
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 4a90cd6

Please sign in to comment.