Merge pull request #17823 from abhijitkumbharInd/develop

fix: Vehicle Master - Last carbon check accepting future date.(#17821)
diff --git a/erpnext/hr/doctype/vehicle/vehicle.py b/erpnext/hr/doctype/vehicle/vehicle.py
index ef5bfe5..a75cfa6 100644
--- a/erpnext/hr/doctype/vehicle/vehicle.py
+++ b/erpnext/hr/doctype/vehicle/vehicle.py
@@ -11,4 +11,6 @@
 class Vehicle(Document):
 	def validate(self):
 		if getdate(self.start_date) > getdate(self.end_date):
-			frappe.throw(_("Insurance Start date should be less than Insurance End date"))
\ No newline at end of file
+			frappe.throw(_("Insurance Start date should be less than Insurance End date"))
+		if getdate(self.carbon_check_date) > getdate():
+			frappe.throw(_("Last carbon check date cannot be a future date"))
\ No newline at end of file