Skip to content

[Due for payment 2026-04-01] [Due for payment 2026-03-30] [$250] Tax - Tax is no longer valid error shown in IOU details after editing tax rate value #73033

Closed

Description

@lanitochka17

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: 9.2.34-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

Action Performed:

  1. Sign in to ND
  2. Create a workspace, enable Taxes in More features
  3. Open Taxes page, add a new tax rate, setting the tax value to something greater than 0
  4. Navigate to the workspace chat and create an expense, selecting the tax rate from step 3
  5. Verify that the tax rate and tax amount are displayed correctly in the expense details
  6. Navigate to the workspace settings and change the value for the used tax rate
  7. Navigate to the expense details and observe the Tax field and the Tax amount field

Expected Result:

The previous tax rate and amount are displayed in the Tax field and Tax amount field for the existing expense details after updating the tax value. There is an error on the rate tax rate field telling you it's no longer valid. Changing the tax rate resolves the error and updates the amount.

Actual Result:

dTax field shows the updated value, but there is an error "Tax no longer valid". The tax amount does not change accordingly to a new value. After selecting a different tax rate and returning to the updated one the error is not shown and the amount is calculated correctly

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6980011_1760985190594.Tax_rate_not_valid.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021981443480364943722
  • Upwork Job ID: 1981443480364943722
  • Last Price Increase: 2025-12-18
  • Automatic offers:
    • huult | Contributor | 109911258
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @joekaufmanexpensify

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 20, 2025
  2. melvin-bot commented on Oct 20, 2025

    @melvin-bot

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

  3. joekaufmanexpensify commented on Oct 21, 2025

    @joekaufmanexpensify
    Contributor

    @zsgreenwald @heyjennahay @MonilBhavsar I see you worked on tax tracking. Is this a bug? I am not sure we want to automatically update the tax amount for existing expenses if you change the rate.

    Perhaps the bug is that we do update the tax rate for existing expenses, and we should instead show the prior rate + amount (with the violation) unless you change the toggle the rate or something?

  4. heyjennahay commented on Oct 21, 2025

    @heyjennahay
    Contributor

    Hmm I'm not sure if we actually considered this scenario.

    If the tax rate use is disabled then I would expect to see the "Rate not valid" violation

    Given the underlying tax rate itself is still active and just the amount is changed, I would expect that for editable expenses, the tax amount would be updated

    Testing this in OldDot it also seems totally broken 😅

    1. The tax rate IS updated but to a totally random one, neither the existing or the default
    2. The tax amount isn't updated
    3. The default tax message incorrectly states the default rate is one other than the one set in the workspace
    Image Image

    My gut tells me that if a rate is changing that the user will create a new tax rate rather than modify the existing one which is probably why we never came across this bug before.

    That said, I think we should treat the "old" version of the rate like an invalid tax rate so:

    1. Flag tax rate as being invalid
    2. Don't change the amount
    3. Flag the tax amount as also being invalid (maybe?)
    4. To resolve, the user should re-select the rate from the list then we set the "new" version of the tax rate and re-calculate the tax amount
      Which is effectively what we do now in ND.

    The alternative is that we just update according to the new tax rate amount on expenses where it is allowed (i.e. prior to approval) and don't show that the expense had a different one applied. As long as updates are restricted to editable expenses then I don't think it's a huge problem and maybe would remove some confusion from users.

    Thoughts @joekaufmanexpensify @MonilBhavsar @zsgreenwald ?

  5. hasib711 commented on Oct 21, 2025

    @hasib711

    Proposal

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

    Update tax amount when tax rate was changed.

    What is the root cause of that problem?

    When the report information is displayed, we consider it to reflect the updated transaction.
    However, we do not input the updated transaction.
    App/blob/main/src/components/ReportActionItem/MoneyRequestView.tsx
    Line 117

    function MoneyRequestView({
       allReports,
       report,
       expensePolicy,
       shouldShowAnimatedBackground,
       readonly = false,
       updatedTransaction,
       isFromReviewDuplicates = false,
       mergeTransactionID,
       }: MoneyRequestViewProps) {
    

    App/blob/main/src/pages/home/report/ReportActionItemContentCreated.tsx
    Line 184

    <MoneyRequestView
                                        allReports={allReports}
                                        report={transactionThreadReport}
                                        expensePolicy={policy}
                                        shouldShowAnimatedBackground={false}
                                    />
    

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

    We need to input the updated transaction

    What alternative solutions did you explore? (Optional)

  6. melvin-bot commented on Oct 21, 2025

    @melvin-bot

    📣 @hasib711! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  7. hasib711 commented on Oct 21, 2025

    @hasib711

    Contributor details
    Your Expensify account email: hasibupwork711@gmail.com
    Upwork Profile Link: https://www.upwork.com/freelancers/~015950e9572980f803

  8. melvin-bot commented on Oct 21, 2025

    @melvin-bot

    ✅ Contributor details stored successfully. Thank you for contributing to Expensify!

  9. joekaufmanexpensify commented on Oct 22, 2025

    @joekaufmanexpensify
    Contributor

    That said, I think we should treat the "old" version of the rate like an invalid tax rate so:

    1. Flag tax rate as being invalid
    2. Don't change the amount
    3. Flag the tax amount as also being invalid (maybe?)
    4. To resolve, the user should re-select the rate from the list then we set the "new" version of the tax rate and re-calculate the
    5. tax amount. Which is effectively what we do now in ND.

    This makes sense to me and is what I was thinking here. To do this, we'd just need to not change the tax rate / amount on existing expenses when you update the rate, and continue showing the violation.

  10. joekaufmanexpensify commented on Oct 23, 2025

    @joekaufmanexpensify
    Contributor

    Updated OP to reflect that

  11. melvin-bot commented on Oct 23, 2025

    @melvin-bot
  12. changed the title [-]Tax - Tax is no longer valid error shown in IOU details after editing tax rate value[/-] [+][$250] Tax - Tax is no longer valid error shown in IOU details after editing tax rate value[/+] on Oct 23, 2025
  13. 165 remaining items

  14. joekaufmanexpensify commented on Mar 30, 2026

    @joekaufmanexpensify
    Contributor

    That's reasonable, I am good with that 👍

  15. joekaufmanexpensify commented on Mar 30, 2026

    @joekaufmanexpensify
    Contributor
  16. joekaufmanexpensify commented on Mar 30, 2026

    @joekaufmanexpensify
    Contributor

    Payment Summary

  17. joekaufmanexpensify commented on Mar 30, 2026

    @joekaufmanexpensify
    Contributor

    @huult $250 sent and contract ended

  18. joekaufmanexpensify commented on Mar 30, 2026

    @joekaufmanexpensify
    Contributor

    @thesahindia please request payment at your earliest convenience. Closing as this is otherwise all set 👍

  19. mallenexpensify commented on Mar 30, 2026

    @mallenexpensify
    Contributor
  20. huult commented on Mar 31, 2026

    @huult
    Contributor

    @thesahindia is currently OOO, so I’ll step in to help collect and re-share the relevant information.

    These are regression issues caused by our PR:
    #85652
    #85730
    #85729

    He is explained in this comment: #73033 (comment)

    FYI @mallenexpensify

  21. joekaufmanexpensify commented on Mar 31, 2026

    @joekaufmanexpensify
    Contributor

    Yes. It was quite an involved issue with a lot of discussion to align on the correct solution, so it felt reasonable to me not to reduce based on that. Let me know if you have concerns with that @mallenexpensify

  22. garrettmknight commented on Jul 28, 2026

    @garrettmknight
    Contributor

    $250 approved for @thesahindia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions