-
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 2024-03-06] [$500] Copy to clipboard on the system message for paid expense copies negative amount #35375
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0170b576c255476ae4 |
Triggered auto assignment to @twisterdotcom ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copied "paid" report action contains a negative amount What is the root cause of that problem?Since the Paid action means the user pays money, not receives it, the IOU amount is set with a negative value in the Lines 4377 to 4398 in 480ae8d
What changes do you think we should make in order to solve the problem?When building an optimistic Paid report action, we should set the same Lines 3089 to 3099 in 6198343
What alternative solutions did you explore? (Optional)When building the getIOUReportActionDisplayMessage, use const formattedAmount = CurrencyUtils.convertToDisplayString(Math.abs(amount), currency) ?? ''; |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy to clipboard on the system message for paid expense copies negative amount What is the root cause of that problem?In here, when generating optimistic data for the pay money request, we're always negating the amount ( This is wrong because the amount will only be stored as negative for the Workspace expense report, for other IOUs, it will be positive, more context here (and a lot of other places). If we go online, this problem no longer happens because the data from back-end is correct (positive) So the root cause is the optimistic data of the amount in normal IOU case is wrong. What changes do you think we should make in order to solve the problem?In here, only negate the total amount if the
Simply changing to What alternative solutions did you explore? (Optional)Using |
@tienifr proposal's main solution makes sense. Good point on catching the Expense Report case. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@twisterdotcom, @parasharrajat, @grgia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@grgia just waiting on you to confirm |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@tienifr assigned! |
PR reviewed. |
PR deployed to PROD. |
@twisterdotcom PR hit production. Melvin is malfunctioning. Please add HOLD for payment label. |
Eugh, no Melvin comments either. 😭 Why do you make me do work Melvin. |
@twisterdotcom, @parasharrajat, @grgia, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Wow, I need to pay this. Sorry for the tardiness. |
Payment Summary:
|
Payment requested as per #35375 (comment) |
$500 approved for @parasharrajat |
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.33-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4211589
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:
Action Performed:
Expected Result:
The system message must be copied without the "-" sign in front of the currency
Actual Result:
Copy to clipboard on the system message for paid expense copies negative amount
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6360699_1706609460840.Recording__1214.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: