mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
chore: fix condition
This commit is contained in:
@@ -127,7 +127,7 @@ class Quotation(SellingController):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def declare_enquiry_lost(self, lost_reasons_list, competitors, detailed_reason=None):
|
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"])
|
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