-
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
[HOLD for payment 2025-01-15] [$250] Group Chat - Error displayed for Split, Distance expenses created with specific currencies #52310
Comments
Triggered auto assignment to @OfstadC ( |
I found there is a difference between total amount and split shares: transaction:
Object
amount: 519357 /////// not rounded
attendees: [Object] (1)
billable: false
category: ""
comment: {waypoints: Object, customUnit: {customUnitRateID: "_FAKE_P2P_ID_", quantity: 4281.895}, isLoading: false}
created: "2024-11-12"
currency: "KRW"
errorFields: {}
iouRequestType: "distance"
isFromGlobalCreate: false
merchant: "4.28 km @ ₩1213.45 / km"
participants: [{accountID: 18602521, selected: true}] (1)
participantsAutoAssigned: true
pendingFields: {}
reportID: "4715962770440927"
routes: {route0: Object}
shouldShowOriginalAmount: false
splitPayerAccountIDs: [18608989] (1)
splitShares: Object
/////////////// rounded here below
18602521: {amount: 259700, isModified: false}
18608989: {amount: 259700, isModified: false}
Object 견본
transactionID: "1" App/src/pages/iou/request/step/IOURequestStepDistance.tsx Lines 144 to 153 in 64cb4ee
There is code for decision how the total is same with split shares. I tried to round total amount from |
ProposalPlease re-state the problem that we are trying to solve in this issue.The sum of splits must equal the total amount error message displayed and split button non functional What is the root cause of that problem?The total amount is calculated by Line 7661 in 64cb4ee
The total amount of the split bill is rounded before we calculate the split amount Line 51 in 64cb4ee
then if the rounded total amount is different from the current amount, the error appears here App/src/components/MoneyRequestConfirmationList.tsx Lines 452 to 454 in 64cb4ee
What changes do you think we should make in order to solve the problem?When calculating the split amount, we should remove the
Line 51 in 64cb4ee
What alternative solutions did you explore? (Optional) |
@OfstadC This bug also happens for some other currencies like |
Added to Quality and posted in Slack for prioritization |
Does this only affect distance expenses, or does it happen to any split? |
This only affects distance expense, the reason is the rate is odd. |
Will test this a bit more first thing tomorrow morning - had a managed customer issue that threw my day off today 😓 |
Can confirm it does not affect regular splits - just distance. But for the life of me I cannot remember how to change the currency on a distance expense in ND 🤦♀️ So working on that now 😅 |
Figured the currency out - so ignore me lol. Testing them now |
@mkzie2 I couldn't reproduce with VND - Or other currencies with ' |
@mkzie2 are you still able to reproduce with other currencies? 🤔 |
@OfstadC Yes I can, an example for VND. Screen.Recording.2024-11-19.at.17.27.52.mov |
Thanks @mkzie2 - i'm going to have to try this again 🤔 |
I'm still having issues 🤔 . |
@OfstadC this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Tested another handful in the group chat - not workspace chat 😅 : Error occurs on these currencies: Does not occur for: So I believe the theory that it occurs for Currencies where |
This issue has not been updated in over 15 days. @arosiclair, @OfstadC, @rushatgabhane, @mkzie2 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rushatgabhane has been inactive for the last few weeks so assigned @shubham1206agra as the C+ here |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.81-6 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-01-15. 🎊 For reference, here are some details about the assignees on this issue:
|
@shubham1206agra @OfstadC @shubham1206agra 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] |
@jacobkim9881 Could you please share your Upwork Profile link? Thanks! @shubham1206agra Please complete BZ checklist by EOD |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
@OfstadC Offer accepted |
@OfstadC Why @jacobkim9881 needs to be paid here? |
@OfstadC Maybe a mistake, I should be paid here. |
I thought I would be paid for reporting an issue. |
I was going off of this. Is this not correct? CC @arosiclair |
Nope |
@OfstadC I have helped to find the issue and I have reported the issue. Please to check. |
IIRC, there is no bonus for reporting bugs at the moment |
Thanks for confirming @arosiclair @shubham1206agra ! Sorry for causing some confusion here 😅 Payment Summary
|
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.0.59-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @jacobkim9881
Slack conversation (hyperlinked to channel name): ts_external_expensify_open_source
Action Performed:
Prerequisite: Default currency in Korean Won
Expected Result:
Amount equally split and user able to click split button to submit the expense
Actual Result:
The sum of splits must equal the total amount
error message displayed and split button non functionalWorkaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
2024-11-08.7.14.00.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: