5sControl / 5sControl/5s-frontend

[2h] Incorrect rounding during assembly

Offen
#915 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug Front mobile v. 0.8.1
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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:

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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