-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Expense - Amount is not automatically updated when sending track expense to WS with expenses #54967
Comments
Triggered auto assignment to @OfstadC ( |
[info] [Network] Finished API request in 203ms - {"command":"GetMissingOnyxMessages","jsonCode":200,"requestID":"8ff16711ca2aeaa3-ICN"}
response:
{
"key": "report_4032014771979031",
"onyxMethod": "merge",
"value": {
"chatType": "",
"lastActorAccountID": 18943404,
"lastMessageText": "",
"lastVisibleActionCreated": "2025-01-09 03:39:42.157",
"managerID": 18943404,
////////////////////////////////
"nonReimbursableTotal": -400,
////////////////////////////////
"ownerAccountID": 18943404,
"parentReportActionID": "4915136744835963433",
"parentReportID": "8073481827929905",
"policyID": "E5988D7694E5985B",
"reportID": "4032014771979031",
"reportName": "Expense Report #4032014771979031",
"stateNum": 1,
"statusNum": 1,
/////////////////////////////
"total": "-42500",
/////////////////////////////
"type": "expense",
"visibility": ""
}
} The paybutton should show 425 but it shows 421 because the amount at the button is |
Job added to Upwork: https://www.upwork.com/jobs/~021878876293261303313 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@jacobkim9881 Can you please use the proposal template? |
ProposalPlease re-state the problem that we are trying to solve in this issue.After submitting tracked expense, report preview shows false amount. What is the root cause of that problem?
As a result of submitting tracked expense, [info] [Network] Finished API request in 203ms - {"command":"GetMissingOnyxMessages","jsonCode":200,"requestID":"8ff16711ca2aeaa3-ICN"}
response:
{
"key": "report_4032014771979031",
"onyxMethod": "merge",
"value": {
"chatType": "",
"lastActorAccountID": 18943404,
"lastMessageText": "",
"lastVisibleActionCreated": "2025-01-09 03:39:42.157",
"managerID": 18943404,
////////////////////////////////
"nonReimbursableTotal": -400,
////////////////////////////////
"ownerAccountID": 18943404,
"parentReportActionID": "4915136744835963433",
"parentReportID": "8073481827929905",
"policyID": "E5988D7694E5985B",
"reportID": "4032014771979031",
"reportName": "Expense Report #4032014771979031",
"stateNum": 1,
"statusNum": 1,
/////////////////////////////
"total": "-42500",
/////////////////////////////
"type": "expense",
"visibility": ""
}
} And the total is calculated here: App/src/components/ReportActionItem/ReportPreview.tsx Lines 619 to 626 in 58343c7
Lines 3050 to 3076 in 58343c7
According to What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
@jacobkim9881 Thanks for the proposal. Your RCA is not correct. I don't see why |
@huult Can you please follow the proposal template? Also please check if this bug occurs offline too (whether we are missing optimistic data or if it's really a backend issue) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Still looking for proposals |
Same ^ |
Issue not reproducible during KI retests. (First week) |
Still looking for proposals |
Still looking for proposals |
Same ^ |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Same ^ |
@s77rt Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Same ^ |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Still looking for proposals |
So "Share it with my accountant" is within track expense? I think the expense shared with an accountant is not track expense. For an example, when I have "Submit it to someone" to another account on self DM, it has "nonReimbursableTotal" as 0. As it is moved into a chat room with another account, it isn't a track expense. On the other hand "Share it with my accountant" to a workspace has none 0 "nonReimbursableTotal" value. Track expenses in self DM should have none 0 value but the shared expense with an accountant is moved into a workspace from self DM. |
@jacobkim9881 Can you still reproduce the bug? |
Oh, it isn't reproducible. |
However it isn't an issue? As a second check, I think the amount can be different if "Share it with my accountant" is a track expense. |
@jacobkim9881 The amount shouldn't change as track expenses are non-reimbursable and you can't pay a non-reimbursable expenses. |
@OfstadC We can close this as it's no longer reproducible |
@s77rt Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@OfstadC Let's close this one |
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: 9.0.82-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): ibellicotest+161@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Money Requests
Action Performed:
Expected Result:
Amount should be automatically updated on the expenses report preview when submitting the track expense to chat.
Actual Result:
When a track expense is submitted to a workspace chat that already has an expense on it, using the "Share with my accountant" option, the expenses report preview, shows only the amount of the first expense and is not automatically updated. Also, the "Pay Elsewhere" button shows an incorrect amount.
Amounts are updated only after opening expenses report and returning to chat,
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: