Hello,
I am trying to implement a Clock In / Clock Out feature in the ERPNext mobile app. The expected behavior is:
- Button display logic:
- If the latest Employee Checkin record has
log_type = "OUT", the Clock In button should be displayed. - If the latest record has
log_type = "IN", the Clock Out button should be displayed.
- Clock In:
- Clicking Clock In creates a new Employee Checkin record.
- The button should immediately switch to Clock Out.
- Check-in time, timer, and address should be displayed.
- Clock Out:
- Clicking Clock Out updates the existing Employee Checkin record.
- Check-out time, total worked time, and address should be displayed.
Issue:
- On one ERPNext instance, this works perfectly.
- On another instance (code is the same), the Clock In button always shows by default, with no time or address.
- When I click Clock In, the record updates in ERPNext, but the button does not switch to Clock Out.
on that not work
that on other instance will work fine

