5sControl / 5sControl/5s-frontend

[2h] Incorrect rounding during assembly

Aperta
#915 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug Front mobile v. 0.8.1
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Precondition:
Go to https://office.5scontrol.com/
Login as admin

Description:
При суммировании времени разных сборок в одном заказе, некорректно округляется время

Step to reproduce:
1. Перйти в заказы
2. Выбрать заказ 123123
3. Обратить внимание на общее время сборки
4. Перейти в сборку
5. Обратить внимание на время
6. Выбрать первую сборку
7. Сверить время работы этой сборки

Expected result:
Время сборки везде совпадает. Округляется в большую или меньшую сторону

Actual result:
Общее время всех сборок округляется неправильно. Время отдельно взятой сборки также не совпадает

Attachment:

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The issue describes a rounding error in assembly time totals within an order. Start by locating the order and assembly components in the frontend codebase, likely under `src/components/` or `src/pages/`. Look for time calculation and summation logic, possibly involving utility functions for rounding. Check the data flow from the API to the UI to identify where the discrepancy occurs. Verify the fix by comparing the total time displayed on the order page with the sum of individual assembly times.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.