validation this so plsase check and give me code

If start date > system date = Change status of facility to “occupied”
2. If end date > System date = Change status of facility to “ready to vacate”

if self.start_date > frappe.utils.today():
   self.status = "Occupied"
if self.end_date > frappe.utils.today():
   self.status = "Ready to Vacate"
1 Like