Bug 646 - Current manpower with inconsistent decimal place
Summary: Current manpower with inconsistent decimal place
Status: RESOLVED FIXED
Alias: None
Product: Group31Bullship
Classification: Unclassified
Component: User Interface (show other bugs)
Version: Demo 1.0
Hardware: All All
: --- enhancement
Assignee: Fiona Ling
URL:
Depends on:
Blocks:
 
Reported: 2021-12-05 17:19 HKT by Matthew Chan
Modified: 2021-12-05 17:28 HKT (History)
2 users (show)

See Also:


Attachments
Inconsistent decimal place (123.75 KB, image/png)
2021-12-05 17:19 HKT, Matthew Chan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Chan 2021-12-05 17:19:51 HKT
Created attachment 100 [details]
Inconsistent decimal place

Problem description:
Current manpower has an inconsistent decimal place, which affects the UI of the program 

Step to reproduce:
1. Repeat creating transaction
2. Check the current manpower, which may display manpower with different decimal place

Actual result:
The current manpower displayed with inconsistent decimal place

Expected result:
The current manpower should be displayed with a consistent decimal place (e.g. 3 decimal places)
Comment 1 Kannachan 2021-12-05 17:28:29 HKT
The problem is caused by returning only the manpower without limiting its decimal places. As the manpower calculation will sometimes change its decimal place, we have added function to limit its decimal place to 3 decimal places.