-
Notifications
You must be signed in to change notification settings - Fork 3k
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-14] [$500] [MEDIUM] Expense Report - In an offline created expense report, a negative request amount is displayed in the Header and Title #36267
Comments
Job added to Upwork: https://www.upwork.com/jobs/~013de0165fd934bba3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @mallenexpensify ( |
We think that this bug might be related to #vip-bills |
ProposalPlease re-state the problem that we are trying to solve in this issue.Optimistically created Expense report contains a negative value in the title. What is the root cause of that problem?When setting the optimistic Lines 2820 to 2824 in ad3d78c
The Note: this happens only with the enabled report fields beta. With it, we show the report field value in the title. Otherwise, we calculate the title dynamically and negate this amount correctly. What changes do you think we should make in order to solve the problem?When coming online, the We should change the optimistic expense report creation to set the reportName: `Expense Report ${reportID}`, Line 2841 in ad3d78c
What alternative solutions did you explore? (Optional)If we don't want to change the report title format, but keep the "${policy} owes $amount" format for the optimistic expense reports, we should simply use the const formattedTotal = CurrencyUtils.convertToDisplayString(total, currency); |
Checking to see if this fits with #wave6-collect-submitters cuz of "Create a manual request and send it to the WS room" |
@mallenexpensify Should this be further reviewed? |
Yes please @mananjadhav , thanks for asking. I've added this to the wave 6 project. |
@mallenexpensify @nkuoch The proposal by @paultsimura looks promising but I want to confirm if we want to update the report title to match what comes from the backend or just fix the total? 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @nkuoch, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hmm I'm not 100% sure, so checking with @marcaaron ? |
Haven't worked much on this feature, but happy to lend a hand...
@paultsimura are you saying that if we are not on the beta the bug does not exist? I didn't quite follow how this relates to "report fields".
Where does this happen? In the backend? And you are suggesting we need to also do it in the frontend?
This explanation generally makes sense to me. Gonna pass this to @thienlnam though since I believe they have worked on the report fields stuff. |
@mananjadhav I did not understand this question. What does "fix the total" mean to you? |
Is this still happening? We merged a PR recently that disables the report title for anything other than expense / paid collect policies. So this should no longer show up for IOU reports |
Let me try to answer to all of the above 🙂 @thienlnam – it's still happening. I'm sure the QA team just mixed the Expense/IOU terminology a bit. Here's the recording from the latest Screen.Recording.2024-02-15.at.10.27.44-compressed.mp4 |
Yes, without beta it doesn't happen because, without this beta, we use the report title that's calculated on the fly (on the client). For the Expense report, the title is calculated based on the report's total. cc: @marcaaron |
Ah I see, thanks for the clarification. cc @trjExpensify I think we've talked about this, but should the Expense report title be overwritten on an expense report with report fields like this? |
@mananjadhav commented here |
@mananjadhav @paultsimura @mallenexpensify @thienlnam this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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 2024-03-14. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@mananjadhav plz fill out the BZ checklist from above, thx |
While we added the Nevertheless, I think it. makes sense to add a regression test for this one. I think the Test steps from the PR are good. I am not sure how do we mention the preconditions here @mallenexpensify. @mallenexpensify Can you please add the payout summary so that I can raise the request? |
Contributor: @paultsimura paid $500 via Upwork Thanks @mananjadhav , I just copy/pasted the preconditions from the PR, along with the steps. |
$500 approved for @mananjadhav based on summary above. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.39-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:
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 #35913
Action Performed:
Preconditions:
Set up an OldDot administrator account, invite the employee to the policy https://sites.google.com/applausemail.com/applause-expensifyproject/wiki-guides/newdot-categories?authuser=0
Expected Result:
IOU created offline should not display a negative amount in the header and title
Actual Result:
In an offline created IOU, a negative request amount is displayed in the Header and Title
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6373401_1707479630694.Recording__1319.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: