Closed lanitochka17 closed 7 months ago
Job added to Upwork: https://www.upwork.com/jobs/~01680f4e130a8667a2
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External
)
Triggered auto assignment to @CortneyOfstad (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
We think that this bug might be related to #vip-split-p2p-chat-groups
Individual split amount is inconsistent for manual and scan split bill
Inconsistency in duplicate distance error in distance creation and edit flow
In MoneyRequestPreview
, we wrap the total amount in a convertToDisplayString
And hence as you can see in the video attached, there we see both the manual as well as scan split amount same, but in individual page view, we don't do so with scanned split bill
Wrap the individual split bill amount in convertToDisplayString
as well
N/A
@GandalfGwaihir I don't think that is related
When opening a 1:1 DM and money request there, backend is sending two different values for scan and manual:
@CortneyOfstad Can we get an internal engineer to take a look at this
Sounds good!
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
Current assignee @alitoshmatov is eligible for the Internal assigner, not assigning anyone new.
Not overdue β waiting on an engineer to take a look
Looks like no engineer assigned to this issue
@alitoshmatov No worries, that is what the hot pick
tag is for. It allows engineers to know that this one is available if they have any free time to snag it π
Still waiting on an engineering π
@CortneyOfstad @alitoshmatov 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!
Current assignee @alitoshmatov is eligible for the External assigner, not assigning anyone new.
Alright, checked with the team and this can be external, so going to correct the labels. Hopefully we'll get someone to bite, but if not, I'll reach out to CallStack if their team is interested π
The individual split amount is inconsistent between manual and scan split bills, resulting in a discrepancy of $0.01 in the split amount for a $6.50 bill.
We need to review the code responsible for calculating the individual split amounts in both manual and scan split scenarios. The issue likely lies in the rounding logic or the way the total amount is divided among participants when communicating between the frontend and backend.
1. Rounding Logic in iouUtils's calculateAmount:
calculateAmount
must be consistent for both scan and manual splits.2. Currency Conversion Logic in CurrencyUtils:
convertToBackendAmount
and convertToFrontendAmount
could be introducing rounding errors.https://github.com/Expensify/App/blob/c8826dddb35a401faf35598a9ebc77c760c55335/src/libs/CurrencyUtils.ts#L81 https://github.com/Expensify/App/blob/c8826dddb35a401faf35598a9ebc77c760c55335/src/libs/CurrencyUtils.ts#L90
1. Review and Update calculateAmount
Function:
2. Ensure Consistent Conversion Logic:
CurrencyUtils
aligns with how the backend expects to receive and send out currency values.@alitoshmatov thoughts on the proposal above? I have a suspicion that the rounding logic is also affecting this, especially when off by a single cent.
Issue not reproducible during KI retests. (First week)
@brandonhenry Thank you for your proposal but you are not suggesting any meaningful solution.
As of my finding this is definitely related to backend and cannot be handled by external engineers.
cc: @CortneyOfstad
@CortneyOfstad @alitoshmatov 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!
Thanks @alitoshmatov! Going to adjust this to internal π
Current assignee @alitoshmatov is eligible for the Internal assigner, not assigning anyone new.
Adjusted to show a "unassigned" β hopefully that will get eyes on this π
This is considered "Low" Priority, so going to adjust this to Weekly π
@CortneyOfstad @alitoshmatov this issue is now 4 weeks old and preventing us from maintaining WAQ. This should now be your highest priority. Please post below what your plan is to get a PR in review ASAP. Thanks!
Triggered auto assignment to @miljakljajic (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Hi @miljakljajic! I am heading OoO and will be back March 11th, so reassigned to have someone keep this moving until I am back. At this stage, we're waiting for internal engineers to snag this. Is pretty low priority but wanted to have someone watching just in case. Thanks!
Back from OoO β thanks for holding down the fort @miljakljajic!
Issue not reproducible during KI retests. (First week)
I am also having trouble recreating this in testing. @alitoshmatov @lanitochka17 is anyone else able to recreate this consistently?
@alitoshmatov @lanitochka17 bump on the comment above ^^^
@alitoshmatov @lanitochka17 bump again β please provide update by EOD today, thank you!
Sorry @CortneyOfstad, I was having hard time scanning receipt other days.
I tried now and yes the issue is not reproducible
No worries @alitoshmatov! Going to close as this is not reproducible π
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.35-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/4254803 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:
Since the split amount for both manual and split scan requests is the same, which is $6.50, the individual split amount should be the same for both types of request
Actual Result:
The individual split amount for Scan split request is $2.16, while it is $2.17 for Manual split request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/8e5bd4a0-1107-48da-841b-c00faf025aa3
View all open jobs on GitHub
Upwork Automation - Do Not Edit