mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
fix: shift fetching fails in Employee Checkin if shift assignment has an end date
Co-authored-by: Ejaaz Khan <ejaazrkhan@gmail.com>
This commit is contained in:
@@ -251,7 +251,7 @@ def get_shifts_for_date(employee: str, for_timestamp: datetime) -> List[Dict[str
|
|||||||
Criterion.any(
|
Criterion.any(
|
||||||
[
|
[
|
||||||
assignment.end_date.isnull(),
|
assignment.end_date.isnull(),
|
||||||
(assignment.end_date.isnotnull() & (getdate(for_timestamp.date()) >= assignment.end_date)),
|
(assignment.end_date.isnotnull() & (getdate(for_timestamp.date()) <= assignment.end_date)),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user