-
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
[Track Tax] After the IOU is created, the Tax rate changes to 0% #41408
Comments
Triggered auto assignment to @trjExpensify ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tax rate is incorrect following the submission of the request What is the root cause of that problem?We do not include the default taxRateCode in the API params, the API returns an empty tax rate. What changes do you think we should make in order to solve the problem?When generating the transactionDraft, it's essential to incorporate default tax rate as the transaction.taxRate. What alternative solutions did you explore? (Optional)We need to implement a useEffect to update the default taxRate for transactions, similar to how we handled billable field App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx Lines 148 to 150 in 90435fe
This is my draft implementation and it works well
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.After the IOU is created, the Tax rate changes to 0% What is the root cause of that problem?
App/src/libs/TransactionUtils.ts Line 85 in 90435fe
What changes do you think we should make in order to solve the problem?We need to pass Line 3199 in 90435fe
To ReportUtils.isExpenseReport(iouReport) ? -taxAmount : taxAmount, We also might need to convert the tax amount. What alternative solutions did you explore? (Optional)Resulttax_amount_code.mp4 |
Proposal Updated
|
Proposal UpdatedAdding an alternative solution |
We do not have App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx Lines 43 to 46 in 90435fe
|
CC: @MonilBhavsar is this on your radar? |
Yes, we're already working on this issue in this PR #40443 |
Sounds good! Bumping down to |
We've merged the PR. This is fixed on main branch |
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: v1.4.69-0
Reproducible in staging?: Y
Reproducible in production?: Y
Found when executing PR : #41264
Email or phone of affected tester (no customers): sustinov@applausemail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
After the IOU is created, the Tax rate must remain the same as when the IOU was created
Actual Result:
After the IOU is created, the Tax rate changes to 0%
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6467815_1714562004733.Recording__108.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: