From a8f96980823e27ad6890cdd6def27c15eec675e8 Mon Sep 17 00:00:00 2001 From: Himanshu Warekar Date: Sat, 11 May 2019 00:01:43 +0530 Subject: [PATCH] fix: call the correct function --- erpnext/support/doctype/issue/issue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/support/doctype/issue/issue.py b/erpnext/support/doctype/issue/issue.py index 965e53c0a5..b4207269df 100644 --- a/erpnext/support/doctype/issue/issue.py +++ b/erpnext/support/doctype/issue/issue.py @@ -71,8 +71,8 @@ class Issue(Document): if self.status=="Closed" and status !="Closed": self.resolution_date = now() - if not frappe.db.get_value("Issue", self.name, "agreement_fulfilled") == "Ongoing": - self.set_service_level_agreement_variance(issue=self.name) + if frappe.db.get_value("Issue", self.name, "agreement_fulfilled") == "Ongoing": + set_service_level_agreement_variance(issue=self.name) self.update_agreement_status() if self.status=="Open" and status !="Open":