Closed kjw142857 closed 7 months ago
@kjw142857 How about you update the UG to inform users that amounts should not exceed two decimal points as the app behavior is not optimal for any higher precision? Any further tweaks to validity checks can be a planned enhancement.
Hi Prof, thank you for the reply! We will adopt your guideline.
To summarise, here is what we will do:
Hi Prof @damithc, we are considering two approaches to modifying a problematic behaviour in our app and would like to see whether either/both of them are allowed.
linkloan
andeditloan
) allow passing in of a monetary value (the loan value) as a parameter.linkloan
that the loan value must be (up) to 2d.p., following the general consensus that money should be to at most 2 decimal places. However, we missed out including this foreditloan
(bug in the UG). It must be noted that it does not make much sense forlinkloan
to disallow > 2d.p. buteditloan
to allow it.linkloan
command is erroneously able to accept > 2d.p. values. The > 2d.p. values are accepted by the app and stored correctly, and displayed correctly when a user accesses the loan. This bug was reported by testers in v1.3 due to its difference from the UG.0.0001
would be displayed as0.00
in the success message. Therefore, this might fall under incorrect results in Q5 of the FAQs for the feature freeze, since the value displayed in the success message is not the value the user entered.Which of these two lines of thinking would be allowed to approach the issue while maintaining adherence to the feature freeze?
linkloan
command being to accept 2d.p. values, since our v1.3 user guide says it doesn't. We should modify ourlinkloan
(and possibly by extension,editloan
?) command(s) to reject values that are more than 2d.p., upon which the success message will always be correct.Here are some screenshots for reference: Adding a > 2d.p. loan to the user (not supposed to be allowed...) which succeeds Success message does not show the loan value correctly But when viewing the user's loans, the loan value is shown correctly (and it is also stored correctly)