Skip to content
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

Taxes - Error shows up when selecting tax rate in split scan menu #40755

Closed
6 tasks done
izarutskaya opened this issue Apr 23, 2024 · 35 comments
Closed
6 tasks done

Taxes - Error shows up when selecting tax rate in split scan menu #40755

izarutskaya opened this issue Apr 23, 2024 · 35 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 23, 2024

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: 1.4.64-2
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Collect workspace has a few tax rates.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create a split scan.
  4. When the receipt is scanning, enter amount and merchant.
  5. Click Tax rate.
  6. Select a different tax rate.

Expected Result:

User is able to select a different tax rate without issue.

Actual Result:

Error "Unexpected error editing this expense, please try again later" shows up when selecting a different tax rate.
The selected tax rate is highlighted in tax rate list, but the Tax rate row in split menu still shows the previous tax rate.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6458354_1713850176267.bandicam_2024-04-23_12-52-14-955.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0145ac3902090baef8
  • Upwork Job ID: 1782707567042936832
  • Last Price Increase: 2024-05-07
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Triggered auto assignment to @grgia (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 23, 2024

Triggered auto assignment to @Christinadobrzyn (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 23, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@izarutskaya
Copy link
Author

@Christinadobrzyn 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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Apr 23, 2024
@melvin-bot melvin-bot bot changed the title Taxes - Error shows up when selecting tax rate in split scan menu [$250] Taxes - Error shows up when selecting tax rate in split scan menu Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0145ac3902090baef8

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External)

@nkdengineer
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Error "Unexpected error editing this expense, please try again later" shows up when selecting a different tax rate.
The selected tax rate is highlighted in tax rate list, but the Tax rate row in split menu still shows the previous tax rate.

What is the root cause of that problem?

We're not handling the case for edit split bill tax rate in IOURequestStepTaxRatePage so when we select a tax rate in this page, this isn't updated in confirmation page

const updateTaxRates = (taxes: OptionsListUtils.TaxRatesOption) => {

What changes do you think we should make in order to solve the problem?

Like other IOU step pages, we should subscribe splitTransactionDraft in IOURequestStepTaxRatePage and then if we're editing split bill we will get the taxRate data from splitTransactionDraft to display the selected tax rate correctly. And when we save the tax rate we will call setDraftSplitTransaction if we're editing the split bill.

const updateTaxRates = (taxes: OptionsListUtils.TaxRatesOption) => {

We should do the same for tax amount page.

What alternative solutions did you explore? (Optional)

NA

@MonilBhavsar
Copy link
Contributor

We can demote it from a blocker as Tax for splits is WIP here
#39690

Though if this is a blocker, we might have shipped some bad code related to this workflow

@mountiny
Copy link
Contributor

Seems like we can demote based on the comment but lets make sure this is fixed fast

@MonilBhavsar
Copy link
Contributor

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@c3024
Copy link
Contributor

c3024 commented May 1, 2024

@MonilBhavsar

From the issue

Actual Result:
Error "Unexpected error editing this expense, please try again later" shows up when selecting a different tax rate.
The selected tax rate is highlighted in tax rate list, but the Tax rate row in split menu still shows the previous tax rate.

The first part needs to be handled from backend.
The second part needs a frontend fix as well as suggested by @nkdengineer because tax is similar to any other field like category.

cc: @grgia

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
@Christinadobrzyn
Copy link
Contributor

Tracking #40443 and #39690

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 7, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented May 7, 2024

@MonilBhavsar @grgia @Christinadobrzyn @c3024 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@Christinadobrzyn
Copy link
Contributor

Tracking #40443 and #39690

I wonder if this should be weekly for the time being? @c3024 @MonilBhavsar @grgia what do you think?

@c3024
Copy link
Contributor

c3024 commented May 7, 2024

Those issues do not cover Split Bill flow. So, this issue will not fixed with that PR.

Copy link

melvin-bot bot commented May 7, 2024

@MonilBhavsar @grgia @Christinadobrzyn @c3024 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@Christinadobrzyn
Copy link
Contributor

Ah thank you @c3024.

@MonilBhavsar @c3024 @grgia can you confirm the best next step or a status for this? TY!

@MonilBhavsar MonilBhavsar changed the title [$250] Taxes - Error shows up when selecting tax rate in split scan menu [HOLD Issue 39690][$250] Taxes - Error shows up when selecting tax rate in split scan menu May 8, 2024
@MonilBhavsar
Copy link
Contributor

Those issues do not cover Split Bill flow. So, this issue will not fixed with that PR.

#39690 does

@c3024
Copy link
Contributor

c3024 commented May 8, 2024

Those issues do not cover Split Bill flow. So, this issue will not fixed with that PR.

#39690 does

Thanks.

Sorry for the confusion @Christinadobrzyn. This can be moved to Weekly. Looks like PR for issue #39690 will take some time.

@Christinadobrzyn Christinadobrzyn added Weekly KSv2 and removed Daily KSv2 labels May 8, 2024
@Christinadobrzyn
Copy link
Contributor

monitoring - #39690

1 similar comment
@Christinadobrzyn
Copy link
Contributor

monitoring - #39690

Copy link

melvin-bot bot commented May 28, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented May 28, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Christinadobrzyn
Copy link
Contributor

monitoring - #39690

1 similar comment
@Christinadobrzyn
Copy link
Contributor

monitoring - #39690

@Christinadobrzyn
Copy link
Contributor

monitoring - #39690

Just a heads up - I'm going to be ooo until June 24th. I'm not going to assign anyone new but if you need a new BZ teammate for any reason please feel free to ask for one to be assigned here.

@MonilBhavsar MonilBhavsar changed the title [HOLD Issue 39690][$250] Taxes - Error shows up when selecting tax rate in split scan menu Taxes - Error shows up when selecting tax rate in split scan menu Jun 12, 2024
@MonilBhavsar
Copy link
Contributor

This bug is fixed, we can close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants