-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-08-28] IOU - Cannot edit the amount field in a negative IOU request #24623
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @srikarparsi ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.We can´'t modify a negative iou request amount What is the root cause of that problem?We shouldn't be able to request a negative amount. The amount we request is always positive, it's just the display that shows a negative sign when two request are canceling each other What changes do you think we should make in order to solve the problem?We can transform the amount to a positive amount using Math.abs before we format the amount and pass it to TextInputWithCurrencySymbol What alternative solutions did you explore? (Optional) |
This is an issue but I'm going to remove the deploy blocker label since it is known that there are issues with editing IOU requests since it is a new feature. #23703 (review) Assigning you to the issue @mountiny since you made the PR for editing requests. But the issue is that negative IOU requests are not editable. Screen.Recording.2023-08-16.at.5.27.26.PM.mov |
The negative values should not really be showing here which is the root cause. The transactions have the negative amount so we are able to compute the total of who owes to who and so when User A owes $10 and user B requests $1 it will be -1 on that report. The sign would then change again if the user B would request $12 and become a payee. I think we would not be allowing negative amounts for the IOU requests hence I think what we could do is to always take positive value of the amount in case of IOUs when displaying it |
Agree with that. |
Got a PR ready for a review, I think this should actually be a deploy blcoker |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
this is fixed |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-08-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
At step 5 (result 1): the negative sign ( - ) should be placed before the currency, not before the numerical number
At step 6 (result. 2): user should be able to edit the amount field
Actual Result:
At step 5 (result 1): the negative sign ( - ) is placed before the numerical number
At step 6 (result. 2): user is unable to edit the amount, either by typing it manually or pasting a number from external source
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.54.5
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6166667_Screen_Recording_2023-08-15_at_4.58.59_PM.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: