|
|
@ -39,6 +39,7 @@ class EmployeeFleet(models.Model): |
|
|
|
check_availability = 0 |
|
|
|
for i in fleet_obj: |
|
|
|
for each in i.reserved_time: |
|
|
|
if each.date_from and each.date_to: |
|
|
|
if each.date_from <= self.date_from <= each.date_to: |
|
|
|
check_availability = 1 |
|
|
|
elif self.date_from < each.date_from: |
|
|
|