You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Tax - Split scan - Selected rate from confirmation page does not show up in split detail view #42643
Version Number: 1.4.76-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 Issue reported by: Applause - Internal Team
@kadiealexander 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
changed the title [-] Tax - Split scan - Selected rate from confirmation page does not show up in split detail view[/-][+][$250] Tax - Split scan - Selected rate from confirmation page does not show up in split detail view[/+]on May 28, 2024
What changes do you think we should make in order to solve the problem?
We need to update the optimisticData and params within the completeSplitBill and startSplitBill function to incorporate taxRate and taxAmount.
What alternative solutions did you explore? (Optional)
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.
Please re-state the problem that we are trying to solve in this issue.
The selected tax rate does not show up in Tax rate row in split details view. The row is empty
What is the root cause of that problem?
We have two bug here
When we start split bill here, we don't accept taxCode and taxAmount param in this function to create optimistic transaction and pass it to param of StartSplitBill API
Pass taxCode and taxAmount as param of StartSplitBill API here. We also need BE change to return taxCode and taxAmount of the transaction when we call StartSplitBill API
Activity
melvin-bot commentedon May 27, 2024
Triggered auto assignment to @kadiealexander (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon May 27, 2024
@kadiealexander 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
lanitochka17 commentedon May 27, 2024
We think that this bug might be related to #vip-split
dragnoir commentedon May 27, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Split scan - Selected rate from confirmation page does not show up in split detail view
What is the root cause of that problem?
On a Workspace, when we split an expense, we go throw this function
App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Lines 344 to 355 in 9a87ce9
We are not passing the Tax detials like rate and amout to startSplitBill
What changes do you think we should make in order to solve the problem?
as we do for
IOU.splitBillApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Lines 380 to 381 in 9a87ce9
We need to pass
taxCodeandtaxAmounttoIOU.startSplitBillthen use it inside the
TransactionUtils.buildOptimisticTransactionApp/src/libs/actions/IOU.ts
Lines 4315 to 4332 in 9a87ce9
POC Video:
20240527_174248.mp4
What alternative solutions did you explore?
bondydaa commentedon May 27, 2024
the revert #42670 has been deployed, please retest and confirm this is no longer reproducible.
kavimuru commentedon May 28, 2024
Issue is not fixed.
42643.mp4
[-] Tax - Split scan - Selected rate from confirmation page does not show up in split detail view[/-][+][$250] Tax - Split scan - Selected rate from confirmation page does not show up in split detail view[/+]melvin-bot commentedon May 28, 2024
Job added to Upwork: https://www.upwork.com/jobs/~016b6987c10090fc2e
melvin-bot commentedon May 28, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (
External)cretadn22 commentedon May 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Split scan - Selected rate from confirmation page does not show up in split detail view
What is the root cause of that problem?
When we split expense by scanning we invoke startSplitBill function, but we don't pass taxRate and taxAmount to this function.
App/src/libs/actions/IOU.ts
Line 4559 in 9a87ce9
One more thing, when adjusting the tax rate and amount, we invoke the completeSplitBill function, but we also don't pass taxRate and taxAmount
App/src/libs/actions/IOU.ts
Line 4800 in 95d328f
What changes do you think we should make in order to solve the problem?
We need to update the optimisticData and params within the completeSplitBill and startSplitBill function to incorporate taxRate and taxAmount.
What alternative solutions did you explore? (Optional)
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.
nkdengineer commentedon May 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The selected tax rate does not show up in Tax rate row in split details view. The row is empty
What is the root cause of that problem?
We have two bug here
taxCodeandtaxAmountparam in this function to create optimistic transaction and pass it to param ofStartSplitBillAPIApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 342 in 2514f29
UpdateMoneyRequestTaxRateAPI because we don't have the case for edit split bill hereApp/src/pages/iou/request/step/IOURequestStepTaxRatePage.tsx
Line 76 in 2514f29
What changes do you think we should make in order to solve the problem?
Accept
taxCode,taxAmountparam instartSplitBillfunction and then use this to create optimistic transaction here.Pas
taxCodeastransactionTaxCodeandtaxAmountastransactionTaxAmountintostartSplitBillfunction hereApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 342 in 2514f29
taxCodeandtaxAmountas param ofStartSplitBillAPI here. We also need BE change to returntaxCodeandtaxAmountof the transaction when we callStartSplitBillAPIApp/src/libs/actions/IOU.ts
Line 4540 in 2514f29
setDraftSplitTransactionas the revert PR here https://github.com/Expensify/App/pull/42670/files#diff-2d4b9c38f6fb668f527da301a60d3c9bb05c865f33aa475d29148bbda45e3cc0App/src/pages/iou/request/step/IOURequestStepTaxRatePage.tsx
Line 76 in 2514f29
What alternative solutions did you explore? (Optional)
NA
DylanDylann commentedon May 29, 2024
This should be hold #39690
cc @MonilBhavsar
MonilBhavsar commentedon May 30, 2024
We can close this. This is new feature and not a bug