fix: Change lead to party_name

This commit is contained in:
deepeshgarg007
2019-05-14 14:40:18 +05:30
parent f85d6aeecd
commit 2389e2c438

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"
})