5sControl / 5sControl/5s-frontend

[2h] Incorrect rounding during assembly

オープン
#915 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug Front mobile v. 0.8.1
主要言語
TypeScript
スター
3
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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:

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。