Merge pull request #17598 from deepeshgarg007/lead-fixes

fix: Change lead to party_name in Lead
This commit is contained in:
Deepesh Garg
2019-05-14 14:41:49 +05:30
committed by GitHub

View File

@@ -102,7 +102,7 @@ class Lead(SellingController):
def has_lost_quotation(self):
return frappe.db.get_value("Quotation", {
"lead": self.name,
"party_name": self.name,
"docstatus": 1,
"status": "Lost"
})