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

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

Closed
5 of 8 tasks
IuliiaHerets opened this issue Oct 22, 2024 · 18 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 Hourly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 22, 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: 9.0.52-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
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
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

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.

Copy link

melvin-bot bot commented Oct 22, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 22, 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.

@flodnv flodnv added the External Added to denote the issue can be worked on by a contributor label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

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

@melvin-bot melvin-bot bot 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 Oct 22, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

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

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

I reproduced and can confirm this is a bug only on staging, and probably a blocker.

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

Strange, I can't reproduce on the latest main.

@bernhardoj
Copy link
Contributor

The RequestMoney API returns the total as 0
image

@flodnv flodnv added the DeployBlocker Indicates it should block deploying the API label Oct 22, 2024
@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

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

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

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

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

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

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

Caused by this PR #49412

Removing this line fixes this bug.

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

I'm proposing we revert the PR: https://expensify.slack.com/archives/C01GTK53T8Q/p1729612151981119

@flodnv
Copy link
Contributor

flodnv commented Oct 22, 2024

@ishpaul777 is taking over this.

@flodnv flodnv removed DeployBlocker Indicates it should block deploying the API Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 22, 2024
@yuwenmemon yuwenmemon removed the DeployBlockerCash This issue or pull request should block deployment label Oct 22, 2024
Copy link

melvin-bot bot commented Nov 5, 2024

@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!

@melvin-bot melvin-bot bot added the Overdue label Nov 5, 2024
@flodnv
Copy link
Contributor

flodnv commented Nov 6, 2024

This was fixed

@flodnv flodnv closed this as completed Nov 6, 2024
@melvin-bot melvin-bot bot removed the Overdue label Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

@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
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Hourly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants