Skip to content

[Due for payment 2025-11-21] [$250] Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses #73342

Closed

Description

@jponikarchuk

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.37-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-1438/folder/13176877/41237360/969659175
Email or phone of affected tester (no customers): applausetester+gm1038292@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Lenovo 80ES / Windows 10 Pro
App Component: Other

Action Performed:

Precondition: User is login with E account and have Self DM chat

  1. Go to FAB> Create expense> Scan
  2. Click Try it out from modal
  3. Navigate back
  4. Click Choose files and upload a receipt
  5. On choose recipient screen select Self DM chat
  6. On confirm details page select Create 2 expenses
  7. Verify you land on Self DM chat

Expected Result:

Amount of the receipt should not be zero

Actual Result:

Manager Mctest scan expense show 0.00 amount when create 2 expenses

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021981477649512462544
  • Upwork Job ID: 1981477649512462544
  • Last Price Increase: 2025-10-23
  • Automatic offers:
    • FitseTLT | Contributor | 109371311
Issue OwnerCurrent Issue Owner: @lschurr

Activity

  1. added
    Daily
    Bug
    on Oct 23, 2025
  2. melvin-bot commented on Oct 23, 2025

    @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. FitseTLT commented on Oct 23, 2025

    @FitseTLT
    Contributor

    Proposal

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

    Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses

    What is the root cause of that problem?

    When we set receipt and navigate we always add new draft transaction even if the main initialTransaction is a test transaction

    !shouldAcceptMultipleFiles || (index === 0 && transactions.length === 1 && !initialTransaction?.receipt?.source)
    ? (initialTransaction as Partial<Transaction>)
    : buildOptimisticTransactionAndCreateDraft({
    initialTransaction: initialTransaction as Partial<Transaction>,
    currentUserPersonalDetails,
    reportID,
    });

    but test receipt transaction are only meant for single transaction not multi receipt transactions

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

    We should check here that the initialTransaction is a test receip and if it is we should not create another transaction instead change initialTransaction

    !shouldAcceptMultipleFiles || (index === 0 && transactions.length === 1 && !initialTransaction?.receipt?.source)

                    !shouldAcceptMultipleFiles || (index === 0 && transactions.length === 1 && (!initialTransaction?.receipt?.source || initialTransaction.receipt.isTestReceipt))
    
    

    do the same for native
    We can also optionally clear draft transaction when going back from confirmation page if the current transaction is a test receipt one.

    What alternative solutions did you explore? (Optional)

  4. added
    External
    on Oct 23, 2025
  5. changed the title [-]Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses[/-] [+][$250] Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses[/+] on Oct 23, 2025
  6. melvin-bot commented on Oct 23, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Oct 23, 2025
  8. melvin-bot commented on Oct 23, 2025

    @melvin-bot

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

  9. hungvu193 commented on Oct 26, 2025

    @hungvu193
    Contributor

    Let's go with @FitseTLT 's main solution

    🎀 👀 🎀

  10. melvin-bot commented on Oct 26, 2025

    @melvin-bot

    Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  11. 18 remaining items

  12. added
    Awaiting Payment
    on Nov 14, 2025
  13. changed the title [-][$250] Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses[/-] [+][Due for payment 2025-11-21] [$250] Expenses - Manager Mctest scan expense shows 0.00 amount when create 2 expenses[/+] on Nov 14, 2025
  14. melvin-bot commented on Nov 14, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. removed
    Reviewing
    on Nov 14, 2025
  16. melvin-bot commented on Nov 14, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.58-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-11-21. 🎊

    For reference, here are some details about the assignees on this issue:

  17. melvin-bot commented on Nov 14, 2025

    @melvin-bot

    @hungvu193 / @FitseTLT The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  18. added
    Daily
    and removed
    Weekly
    on Nov 20, 2025
  19. melvin-bot commented on Nov 27, 2025

    @melvin-bot

    @madmax330 Still overdue 6 days?! Let's take care of this!

  20. hungvu193 commented on Nov 28, 2025

    @hungvu193
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: N/A

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: N/A

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Test:

    Precondition: User is logged in with E account and have Self DM chat

    1. Sign up on a new account
    2. Go to FAB> Create expense> Scan
    3. Click Try it out from modal
    4. Navigate back
    5. Click Choose files and upload a receipt
    6. Choose a recipient
    7. Verify on confirm details page that only one receipt expense is available (no test receipt expense should appear)

    Do we 👍 or 👎 ?

  21. lschurr commented on Dec 1, 2025

    @lschurr
    Contributor

    Payment Summary

    Contributor: @FitseTLT paid $250 via Upwork
    Contributor+: @hungvu193 due $250 via NewDot

  22. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions