Skip to content

Auto Attendance: Certain Shifts being skipped from marking absent #3349

@Toseef786

Description

@Toseef786

Information about bug

Mark Absent for Dates with no Attendance

The frappe/HR default behaviour is working almost accurately but during auto attendance processing, for some records it's skipping to mark "absent". It gets solved when we remove {and part} from (if prev_shift and prev_shift.shift_type.name == self.name:) in the function get_start_and_end_dates under shift_type.py.

For now it is working perfectly but I just need to ask by removing, may this impact on outcomes of different use cases or no it will be fine there also?

Tested use case can be trace through attachments

Shift Types:
Image
Image
Image
Image
Image
Image
Image

One of missing dates tested on: "30-03-2025"

Ref: #1107

Module

HR

Version

Frappe Framework: v15.73.0 (version-15)
Frappe HR: v15.47.6 (version-15)

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions