Skip to content

Commit

Permalink
chore: fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Jun 17, 2022
1 parent 02f9441 commit e457288
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.is_fully_ordered() or self.is_partially_ordered():
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 e457288

Please sign in to comment.