From 33fafb77288f3413e257efcfbbf5e1434fed78ae Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Oct 2016 16:43:13 +0530 Subject: [PATCH] Set warranty claim resolution date as today only if it is not set --- erpnext/support/doctype/warranty_claim/warranty_claim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/warranty_claim/warranty_claim.py b/erpnext/support/doctype/warranty_claim/warranty_claim.py index b4427bebd5..a3428a25af 100644 --- a/erpnext/support/doctype/warranty_claim/warranty_claim.py +++ b/erpnext/support/doctype/warranty_claim/warranty_claim.py @@ -19,7 +19,7 @@ class WarrantyClaim(TransactionBase): if session['user'] != 'Guest' and not self.customer: frappe.throw(_("Customer is required")) - if self.status=="Closed" and \ + if self.status=="Closed" and not self.resolution_date and \ frappe.db.get_value("Warranty Claim", self.name, "status")!="Closed": self.resolution_date = now_datetime()