Skip to content

Bulk Pay - Select mulitple IOUs Bulk Pay button is not displayed #72541

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: v9.2.30-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #70792
Email or phone of affected tester (no customers): applausetester+ndk52@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Windows 11 Home/Chrome
App Component: Money Requests

Action Performed:

Precondition: Submit an IOUs from each of accounts A and B to account C.

  1. Open https://staging.new.expensify.com/
  2. As C, Navigate to Reports > Expense
  3. Select both IOUs
  4. Click on left green button

Expected Result:

User can bulk pay multipe IOUs

Actual Result:

Bulk Pay button disappears when selecting multiple IOU

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

bandicam.2025-10-14.10-54-52-051.mp4

View all open jobs on GitHub

Activity

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

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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. nyomanjyotisa commented on Oct 14, 2025

    @nyomanjyotisa
    Member

    Proposal

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

    Bulk Pay - Select multiple IOUs Bulk Pay button is not displayed

    What is the root cause of that problem?

    Current logic requires all selected reports to have the same reportType and the same policyID

    ((hasLastPaymentMethod && report.policyID) || (getReportType(report.reportID) === getReportType(firstReport?.reportID) && report.policyID === firstReport?.policyID)) &&

    When selecting multiple IOUs from different accounts, each IOU report has a different policyID because they originate from different user accounts

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

    Modify the logic in the getPayOption function to allow bulk pay for IOUs with the same report type, even if they have different policy IDs

    ((hasLastPaymentMethod && report.policyID) || (getReportType(report.reportID) === getReportType(firstReport?.reportID) && (getReportType(report.reportID) === CONST.REPORT.TYPE.IOU || report.policyID === firstReport?.policyID))) &&

    ((hasLastPaymentMethod && report.policyID) || (getReportType(report.reportID) === getReportType(firstReport?.reportID) && report.policyID === firstReport?.policyID)) &&

    What alternative solutions did you explore? (Optional)

    None

  4. mountiny commented on Oct 14, 2025

    @mountiny
    Contributor

    Linked to #70792

  5. hungvu193 commented on Oct 14, 2025

    @hungvu193
    Contributor

    I'd say this is not a bug. According to this docs, we only show the bulk option when the user pays for the first time if these IOUs are:

    • Same type
    • Same workspace (policyID)
    • Awaiting payment.
  6. joekaufmanexpensify commented on Oct 14, 2025

    @joekaufmanexpensify
    Contributor

    Yeah, this is a quirk of IOUs. They are on different policies when sent from different senders. We could refactor this so you can bulk pay multiple IOUs on different policies if you have no lastPaymentMethod set, but I am not sure we need to do that now. I'd vote to punt and revisit if we get feedback on this.

  7. melvin-bot commented on Oct 20, 2025

    @melvin-bot

    @strepanier03, @hungvu193, @grgia, @getusha Eep! 4 days overdue now. Issues have feelings too...

  8. grgia commented on Oct 21, 2025

    @grgia
    Contributor

    Alright. Closing out!

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.DailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions