date issue fixed serial no
diff --git a/erpnext/stock/doctype/serial_no/serial_no.py b/erpnext/stock/doctype/serial_no/serial_no.py
index e61678c..59a0667 100644
--- a/erpnext/stock/doctype/serial_no/serial_no.py
+++ b/erpnext/stock/doctype/serial_no/serial_no.py
@@ -4,7 +4,7 @@
 from __future__ import unicode_literals
 import frappe
 
-from frappe.utils import cint, cstr, flt, add_days, nowdate
+from frappe.utils import cint, cstr, flt, add_days, nowdate, getdate
 from frappe import _, ValidationError
 
 from erpnext.controllers.stock_controller import StockController
@@ -38,16 +38,16 @@
 		if not self.warranty_expiry_date and not self.amc_expiry_date:
 			self.maintenance_status = None
 
-		if self.warranty_expiry_date and self.warranty_expiry_date < nowdate():
+		if self.warranty_expiry_date and getdate(self.warranty_expiry_date) < getdate(nowdate()):
 			self.maintenance_status = "Out of Warranty"
 
-		if self.amc_expiry_date and self.amc_expiry_date < nowdate():
+		if self.amc_expiry_date and getdate(self.amc_expiry_date) < getdate(nowdate()):
 			self.maintenance_status = "Out of AMC"
 
-		if self.amc_expiry_date and self.amc_expiry_date >= nowdate():
+		if self.amc_expiry_date and getdate(self.amc_expiry_date) >= getdate(nowdate()):
 			self.maintenance_status = "Under AMC"
 
-		if self.warranty_expiry_date and self.warranty_expiry_date >= nowdate():
+		if self.warranty_expiry_date and getdate(self.warranty_expiry_date) >= getdate(nowdate()):
 			self.maintenance_status = "Under Warranty"
 
 	def validate_warehouse(self):