Skip to content

[Due for Payment 8th July] [$250] Pay invoice as business flow shows wrong person option to pay #64376

Closed

Description

@cristipaval

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:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @joekaufmanexpensify
Slack conversation (hyperlinked to channel name): #product

Action Performed:

  1. Invoice sender sends an invoice to the receiver.
  2. Receiver views the invoice, selects pay > pay as business > pay elsewhere.
  3. Sender than sends another invoice to the receiver.

Expected Result:

Invoice receiver sees option to pay second invoice, just like they did on the first. This is how the invoice flow works if you initially pay as an individual.

Actual Result:

If you initially pay an invoice as a business, the invoice receiver does not see the option to pay the second invoice sent to them. Instead, the invoice sender is shown the option to pay their own invoice.

Workaround:

N/A

Platform:

  • Web

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

Second invoice after initially paying as individual

2025-05-06_08-52-28.mp4

Second invoice after initially paying as business

https://github.com/user-attachments/assets/ebe51de0-e11e-4b7c-91a9-02abc825772

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021935077999789012410
  • Upwork Job ID: 1935077999789012410
  • Last Price Increase: 2025-06-24
  • Automatic offers:
    • gijoe0295 | Contributor | 107796121
Issue OwnerCurrent Issue Owner: @

Activity

  1. self-assigned this
    on Jun 17, 2025
  2. added
    Daily
    Bug
    on Jun 17, 2025
  3. melvin-bot commented on Jun 17, 2025

    @melvin-bot

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

  4. added
    Weekly
    External
    and removed
    Daily
    on Jun 17, 2025
  5. changed the title [-]Pay invoice as business flow shows wrong person option to pay[/-] [+][$250] Pay invoice as business flow shows wrong person option to pay[/+] on Jun 17, 2025
  6. melvin-bot commented on Jun 17, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Jun 17, 2025
  8. melvin-bot commented on Jun 17, 2025

    @melvin-bot

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

  9. added
    Daily
    and removed
    Weekly
    on Jun 17, 2025
  10. 17 remaining items

  11. changed the title [-][$250] Pay invoice as business flow shows wrong person option to pay[/-] [+][Due for Payment 8th July] [$250] Pay invoice as business flow shows wrong person option to pay[/+] on Jul 3, 2025
  12. trjExpensify commented on Jul 7, 2025

    @trjExpensify
    Contributor

    👋 checklist time here for tomorrow @rojiphil

  13. added
    Daily
    and removed
    Weekly
    on Jul 7, 2025
  14. gijoe0295 commented on Jul 9, 2025

    @gijoe0295
    Contributor
  15. rojiphil commented on Jul 10, 2025

    @rojiphil
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [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:

    • [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: Not Required. The existing checklist is good enough to capture such issues.

    • [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.

    Regression Test Proposal

    Precondition: Sender and receiver have never sent invoice to each other

    Test:

    1. Sender sends an invoice to the receiver.
    2. Receiver views the invoice, selects Pay > Pay as business > Mark as paid
    3. Sender than sends another invoice to the receiver.
    4. Verify receiver sees Mark as paid button on invoice preview
    5. Receiver clicks the invoice preview to open invoice report
    6. Verify receiver sees Mark as paid as a primary action button

    Do we agree 👍 or 👎

  16. rojiphil commented on Jul 10, 2025

    @rojiphil
    Contributor

    @trjExpensify Checklist done. Thanks.

  17. gijoe0295 commented on Jul 11, 2025

    @gijoe0295
    Contributor

    @trjExpensify ready for payment.

  18. trjExpensify commented on Jul 14, 2025

    @trjExpensify
    Contributor

    I can see this should be covered in this test, so I'm not going to suggest adding another.

    Payment summary as follows:

    • $250 to @gijoe0295 for the PR (paid)
    • $250 to @rojiphil fo the C+ review (go ahead and request!)

    Closing!

  19. rojiphil commented on Nov 7, 2025

    @rojiphil
    Contributor

    paid

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

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions