-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] [Track Tax] The tax amount of a manual IOU will be in negative format #41418
Comments
Triggered auto assignment to @alexpensify ( |
@alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tax amount is shown in negative value. What is the root cause of that problem?The tax amount is taken from App/src/libs/TransactionUtils.ts Lines 301 to 310 in 12042db
For an expense report, we negate the amount value. The reason is explained in the comment in App/src/libs/TransactionUtils.ts Lines 285 to 287 in 12042db
That's true, but it's only when the request is created. Lines 1817 to 1818 in c5a1f96
While we are creating the request, the amount is still in positive value, so negating it will give us a negative tax amount. This doesn't happen on the amount page because we always return the absolute value.
What changes do you think we should make in order to solve the problem?Do the same as what we did on the amount page, that is return the absolute value of the amount. What alternative solutions did you explore? (Optional)If we are creating a new request, don't negate the amount value. |
Job added to Upwork: https://www.upwork.com/jobs/~010f30064172acce83 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@hoangzinh - when you get a chance, can you review if this proposal will fix this issue? Thanks! Heads up, I will be offline until Tuesday, May 7, 2024, and will not actively watch over this GitHub during that period.If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
@alexpensify, @hoangzinh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@hoangzinh any update regarding the proposal? Thanks! |
sorry for late update. @bernhardoj proposal looks good to me #41418 (comment). I think we should go with his main solution. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
the proposal looks good to me. we can return the absolute value 👍 |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @hoangzinh |
@hoangzinh, please keep us posted if you are unable to review this PR. Thanks! |
@alexpensify I can review this PR today or tomorrow. |
Thank you for that update! |
@hoangzinh any news here? Thanks! |
@bernhardoj opened PR and we're nearly done with the PR but the issue has been fixed in another PR #42039 already with the same solution with @bernhardoj. Therefore, I think we should put this issue on the regression period and process payment for Contributor and C+. |
Thanks for that summary! |
Payouts due: TBD
Upwork job is here. |
Triggered auto assignment to @greg-schroeder ( |
Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.@greg-schroeder - Here is the payment summary - #41418 (comment). While I'm offline, I need help here completing the payment process after this one clears the 7-day period. Thanks! |
Hmm. Honestly, I don't think we need to put this in the regression period for #42039 as the contributors in this issue aren't necessarily beholden to that code's performance. And any regressions will be handled by the authors of that PR. I'll pay out the offers for your work now @hoangzinh @bernhardoj |
Thanks, @greg-schroeder, for your help here! |
i gotchu @alexpensify! |
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.69-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: N/A
Email or phone of affected tester (no customers): sustinov@applausemail.com
Issue reported by: Applause - Internal Team
Issue found whene executing PR #41264
Action Performed:
Expected Result:
The tax amount when creating a manual IOU should not be in a negative format
Actual Result:
After editing the Tax amount in an existing IOU, the next time a manual IOU is created, the Tax amount in the edit menu will be in negative format
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6467975_1714572153780.Recording__113.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: