Skip to content

[$250] Expense - Expense amount is not added but substracted when submitting from the expense report #51249

Closed

Description

@IuliiaHerets

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.0.52-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh081006@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Submit expense > Manual.
  3. Submit a manual expense to any user.
  4. In the main chat, click on the expense preview.
  5. In the expense report, click + > Submit expense > Manual (important).
  6. Submit a manual expense of the same amount in Step 3.

Expected Result:

The total amount of the expenses will be calculated correctly.

Actual Result:

The expense amount is 0.00.
Expense amount is not added but substracted when submitting from the expense report

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6642009_1729600385033.20241022_203023.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021848735249840900998
  • Upwork Job ID: 1848735249840900998
  • Last Price Increase: 2024-10-22
Issue OwnerCurrent Issue Owner: @ishpaul777

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 22, 2024
  2. melvin-bot commented on Oct 22, 2024

    @melvin-bot

    Triggered auto assignment to @lschurr (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. melvin-bot commented on Oct 22, 2024

    @melvin-bot

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

  4. melvin-bot commented on Oct 22, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Oct 22, 2024

    @github-actions
    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.
  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Oct 22, 2024
  7. melvin-bot commented on Oct 22, 2024

    @melvin-bot
  8. changed the title [-]Expense - Expense amount is not added but substracted when submitting from the expense report[/-] [+][$250] Expense - Expense amount is not added but substracted when submitting from the expense report[/+] on Oct 22, 2024
  9. 7 remaining items

  10. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor

    Looking at server logs, I'm wondering if this is because the first RequestMoney creates the transaction with a negative amount, and subsequent ones create the transaction with a positive amount

  11. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor

    @bernhardoj are you able to reproduce on the latest main?

  12. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor

    I think this is happening because the App code on staging is sending a policyID when it should not be.

  13. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor

    Caused by this PR #49412

    Removing this line fixes this bug.

  14. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor
  15. flodnv commented on Oct 22, 2024

    @flodnv
    Contributor

    @ishpaul777 is taking over this.

  16. removed
    DeployBlockerIndicates it should block deploying the API
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 22, 2024
  17. melvin-bot commented on Nov 5, 2024

    @melvin-bot

    @flodnv @lschurr @ishpaul777 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!

  18. flodnv commented on Nov 6, 2024

    @flodnv
    Contributor

    This was fixed

  19. melvin-bot commented on Nov 6, 2024

    @melvin-bot

    @flodnv @lschurr Be sure to fill out the Contact List!

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorHourlyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions