Merge branch 'call-summary-dialog' of github.com:surajshetty3416/erpnext into call-summary-dialog

This commit is contained in:
Suraj Shetty 2019-07-01 14:29:05 +05:30
commit 56242a5077

View File

@ -18,7 +18,7 @@ class ServiceLevelAgreement(Document):
if self.start_date >= self.end_date:
frappe.throw(_("Start Date of Agreement can't be greater than or equal to End Date."))
if self.end_date < frappe.utils.nowdate():
if self.end_date < frappe.utils.getdate():
frappe.throw(_("End Date of Agreement can't be less than today."))
if self.entity_type and self.entity: