5sControl / 5sControl/5s-frontend

Order is created with time 0 minutes

Đang mở
#920 0 bình luận 0 reaction 1 người được giao Được @ThanhDoIVan nhận Xem trên GitHub
bug Front mobile
Ngôn ngữ chính
TypeScript
Star
3
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Precondition:
Go to https://stage.5scontrol.com\mobile
Login as admin
Отсканировать QR с операцией сборка.
Login - петров_петр
пароль - 1234

Description:
После сканирования QR операции, а после отменить (не выбрав никое время), в заказах появляется данная операция с временем 0 минут

Step to reproduce:
1. Отсканировать QR под worker
2. Кликнуть на иконку "Назад" сверху слева
3. Проверить заказ под админом

Expected result:
Появляется заказ. Время указывается 0 минут

Actual result:
Заказ не должен создаваться

Attachment:
![Image](https://github.com/user-attachments/assets/499655b4-3073-47d5-b59a-9eecdc5949e7)
![Image](https://github.com/user-attachments/assets/2b802c2c-0642-4583-8717-30b28d985285)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

The issue describes a mobile frontend bug where an order is incorrectly created with 0 minutes when a QR scan operation is cancelled. Start by examining the mobile login flow and QR scanning components. Look for the order creation logic and the condition that triggers it when the 'back' icon is clicked. Check the state management for the operation time to see why a zero value is passed. Verify the expected behavior by testing the cancellation path.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
react, typescript
Lĩnh vực
frontend, mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.