-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [$250] Expense - Incorrect payment amount in LHN and report when report has track & submitted expense #61080
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
Comments
Triggered auto assignment to @sonialiap ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-29 15:17:38 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Incorrect payment amount in LHN and report when report has track & submitted expense What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
but the amount is used for other types of action in the function so if needed we can use the total spend for other cases as approve here Lines 4196 to 4200 in 62fdc63
and only add a new remibursable amount variable and use it for the cases that apply like our case of pay here. Or alternatively we can take the correct amount from the the iouAction originalMessage.amount to align with what we display in the report screen here)
But if we are ok with a FE workaround we can calculate the reimbursable amount from the iou report's break down just like we are doing here What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can make test to assert that the canceled payment action created has got the correct amount with the non-reimbursable amount deducted from the total. What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021917864478821489895 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
@FitseTLT's proposal makes sense to me. We are using
We do need a BE fix for the cancelled message as well. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Can look at the backend here, though probably not until tomorrow! Front end update sounds good too |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@dangrous Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@FitseTLT I think you can get started on the FE PR for this as it doesn't rely on BE changes. |
backend is merged! Not yet deployed but shouldn't be long since it's in the repo without staging. |
BE has been deployed to production https://github.com/Expensify/Auth/pull/15166 |
@FitseTLT Can you let us know when we can expect a PR? |
Will draft the pr today |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 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 2025-05-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@jjcoffee @sonialiap @jjcoffee The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
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: 9.1.33-5
Reproducible in staging?: Y
Reproducible in production?: Y
**If this was caught during regression testing, add the test name, ID and lin
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
In Step 11, the paid system message in the expense report and LHN should show "paid MYR 120.00 elsewhere"
In Step 14, the payment cancelation system message in the expense report and LHN should be "canceled the MYR 120.00 payment" because RM120.00 was paid in Step 11 (the payment button also shows Pay RM120.00 elsewhere)
Actual Result:
In Step 11, the paid system message in the expense report is "paid MYR 120.00 elsewhere", whereas LHN shows "paid MYR 220.00 elsewhere"
In Step 14, the payment cancelation system message in the expense report and LHN is "canceled the MYR 220.00 payment", when RM120.00 was paid in Step 11
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Bug6816480_1745936374999.20250429_220556.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: