5sControl / 5sControl/5s-frontend

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

Aperta
#1,090 12 commenti 0 reazioni 1 assegnatario Rivendicata da @SergBily Vedi su GitHub
0.9.0 bug ESMIL Office ready QA done
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend, mobile
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.