Check for active quotations before declaring it as lost (#8969)

This commit is contained in:
Nabin Hait 2017-05-23 12:02:34 +05:30 committed by GitHub
parent a68fff470c
commit fdc7d7f3de

View File

@ -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: