5sControl / 5sControl/5s-frontend

[6h] Negative operation time when starting an operation after the end of the employee's working day

Offen
#1,090 12 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @SergBily Auf GitHub ansehen
0.9.0 bug ESMIL Office ready QA done
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Description:
Отрицательное время операции, когда работник стартует новую операцию после окончания рабочего дня, указанного в его карточке

Precondition:
войти в систему в роли администратора, установить какому-либо из работников окончание рабочего дня в поле Work end time в карточке работника в разделе Employees

Steps to reproduce:
1. Войти в систему как работник с установленным окончанием рабочего дня
2. Нажать QR Scanner
3. Отсканировать QR-код после окончания рабочего дня работника
4. Нажать кнопку Start
5. Нажать стрелку Назад
6. Обратить внимание на лейбл Work in progress
7. Нажать My Tasks
8. Открыть таймспан, находящийся в работе
9. Вернуться в главное меню

Actual result:
QR-код доступен для сканирования и операция может быть начата работником после окончания его рабочего дня. Время данной операции отображается по-разному при просмотре из раздела Orders (со знаком минус) и из карточки работника

Expected result:
QR-код недоступен для сканирования работником после окончания его рабочего дня, указанного в карточке работника

Attachments:

https://github.com/user-attachments/assets/3fe2f202-c52c-4430-b5b7-782f54d5c7cd
![Image](https://github.com/user-attachments/assets/9f9bf958-e83b-488c-9d67-66d2f30d68f4)
![Image](https://github.com/user-attachments/assets/1639974c-b16c-4f5c-bb82-0d98a8b345b4)

Environment
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 133.0.6943.137

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue involves the QR scanner component and time validation logic. Start by examining the QR scanner availability check, likely tied to the employee's work end time from their profile. Look for time calculation and display logic in the 'Work in progress' label and the Orders view. The bug likely resides in how start times after the work day are handled and displayed. Check the relevant employee card and order components for time formatting and validation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react, typescript
Bereich
frontend, mobile
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.