mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 14:58:24 +00:00
Check for active quotations before declaring it as lost (#8969)
This commit is contained in:
@@ -75,7 +75,7 @@ class Opportunity(TransactionBase):
|
||||
self.lead = lead_name
|
||||
|
||||
def declare_enquiry_lost(self,arg):
|
||||
if not self.has_lost_quotation():
|
||||
if not self.has_active_quotation():
|
||||
frappe.db.set(self, 'status', 'Lost')
|
||||
frappe.db.set(self, 'order_lost_reason', arg)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user