-
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
[$500] IOU - Total amount is not updated when change the different currency IOU in offline #35209
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0110932b60eddd10f4 |
Triggered auto assignment to @bfitzexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Only amount of the first request is displayed in total What is the root cause of that problem?In here, when updating money request, we only recalculate the What changes do you think we should make in order to solve the problem?Update this block to account for the cases of changing currency as well. There're 3 cases:
When subtracted/added is mentioned above, it's understood that if the When currency is mentioned above, it means What alternative solutions did you explore? (Optional)We can recalculate the iouReport total based on its money requests, when currency/amount is updated. That means we don't calculate the diff/changes and add to the iouReport total, but we'll calculate based on all the money requests from the ground up, this might help reduce chances of error. Not related, but we can also reconsider the location of the |
@cubuspl42, @bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
ProposalPlease re-state the problem that we are trying to solve in this issue.When money requests are being made with different currencies offline, amount total of report thread is not calculated based on each currency. What is the root cause of that problem?The frontend app should wait for response with calculated amount total from server when currencies are different. If it is online then the server calculates amount total but if it is offline and then amount total is shown as un-calculated without any filter. When offline the amount total is calculated but it is false calculation for different currencies to money request thread. Technically the calculation is not from the server but frontend. The un-matched amount total go through not only report preview but also report header, LHN, report setting page, share code page and browser notification.What changes do you think we should make in order to solve the problem?When it is offline and when the report thread with more than 2 reports has different currencies, total amount will be shown as 'TBD'. For this If it has different currencies, as optimistic data To check offline, we should import default function from On report preview page, On such tags at LHN, money report header, What alternative solutions did you explore? (Optional)Fetch currency information from web and use in frontend. |
@jacobkim9881 So, effectively you're just suggesting to stop calculating any total sum while offline? This is not an acceptable behavior. |
I approve the proposal by @dukenv0307 C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hi, @cubuspl42. Thanks for reviewing. I want to apologize for the short and unclear proposal. I would like to reply to your question shortly. For suggesting to stop calculating, it was only for limited money requests. Based on the proposal, only problematic report threads will be stopped to calculate. |
With my proposal, the PR will solve un-calculated total at report's name on LHN too. I hope your reconsideration. |
📣 @cubuspl42 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I want to say my proposal doesn't stop to calculate the amount. My proposal makes un-calculated amount total shown as |
@jacobkim9881 Thanks for your proposal and the explanations. I understand what you're suggesting. Out of these two proposals, I decided that the other is a better way forward. |
@cubuspl42 I see and respect your decision. I hope the issue will be solved well. |
How is this one going @dukenv0307? |
Bump @dukenv0307, can you please provide an update? |
I'm working on the PR, thanks for your bump. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This is officially a disaster. I believe we underestimated the impact of the change. |
I think all the deploy blockers related to this have been resolved now. Maybe we can close this out? |
@bfitzexpensify I think we're ready for payment now. |
For whatever is left of it, anyway 😅 |
OK, there was a lot to try and follow here. I'm going to bring the price down to $125 - it should be halved again (3 regressions in total), but $62.50 feels too low for the work put in. Payments complete. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.32-2
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #34011
Action Performed:
Expected Result:
Total from two IOS request should be present, since both requests are in same currency
Actual Result:
Only amount of the first request is displayed in total
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6355235_1706222767182.Recording__1927.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: