App icon indicating copy to clipboard operation
App copied to clipboard

[$175] Spend-IOU and Invoice report not displayed in Spend - Reports

Open applause-bot[bot] opened this issue 1 week ago • 14 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.52-1 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/App/pull/100979 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Windows 10/Chrome App Component: Search

Action Performed:

Preconditions:

  • Account add a personal bank account
  • Account B send IOU to Account A
  • Account B send invoice to Account A
  • Log in to account A; enable payInvoiceViaExpensify in beta page
  1. Open https://staging.new.expensify.com/
  2. Navigate to Spend > Reports
  3. Search for filter "type: invoice"

Expected Result:

IOU are displayed in Spend Reports and Invoice report are displayed when filter type:Invoice

Actual Result:

At step 2, IOU report is not displayed At step 3, Invoice report is not displayed

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [ ] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/cb73bd84-c77a-4733-8a4a-0cd34e09d4c7

https://github.com/user-attachments/assets/fe2096d0-2b1b-467a-beae-373875ef6f56

View all open jobs on GitHub

Applause Internal Information Exported by: Chandana Kiran Bug ID: 7320412

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @inimaga

applause-bot[bot] avatar Nov 23 '26 14:11 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/e42352b76a57b461d295066576be610e32262ceb68c5c7aa49ef798a4ab23a10

https://platform.applause.com/services/links/v1/external/fa1cde40ebd749e47f7d099daf45ed4bcc3218e884e8561bafb8d3d0b4b14518

applause-bot[bot] avatar Nov 23 '26 14:11 applause-bot[bot]

This PR is failing because of issue https://github.com/Expensify/App/issues/107738

Checking...

situchan avatar Nov 23 '26 14:11 situchan

Current assignee @situchan is eligible for the External assigner, not assigning anyone new.

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

🤖 Web test steps verification results: ❌ fail

Preliminary analysis (low confidence): Search may be omitting the received IOU report and invoice transaction, but the root cause is unconfirmed. Web verification was blocked by a suspended browser session—not a reproduced product failure.

Web app at the blocked verification state
Step Status
Open App as recipient AThe browser session was suspended and exposed no readable UI. Account identity, bank account, and incoming-request prerequisites could not be confirmed.
Web app at the blocked verification state
❌
Check the incoming IOU under Spend > ReportsRuntime: Blocked, not tested.
Code evidence: The report-row builder explicitly accepts IOUs; it does not require the current user to own them (SearchUIUtils.ts:3114–3128). Reports uses server-provided search snapshots rather than listing every locally available report (SearchResultsProvider.tsx:48–80). Backend omission is possible, but retained filters or stale snapshots remain alternatives.
❌
Check the received invoice using type: invoiceRuntime: Blocked, not tested; no Search request or response captured.
Code evidence: Whitespace after the colon is supported (searchParser.peggy:223–234). Invoice results require transaction entries; returning only the invoice report is insufficient (SearchUIUtils.ts:2041–2065).
Related issue: Invoice received is not shown when searching type: invoice closely matches this symptom.
Next diagnostic: Capture the recipient’s clean Search requests and matching responses for both searches. Check for the affected IOU report and invoice transaction, then compare the applied snapshot. If the server omits them, escalate internally for backend investigation. No code fix is verified yet.
❌

view run · no recording available

MelvinBot avatar Nov 23 '26 14:11 MelvinBot

I reproduced in production too so not regression from #100979

https://github.com/user-attachments/assets/8b637d34-a1e1-472b-91e8-b41a9dd24ebb

situchan avatar Nov 23 '26 15:11 situchan

Claude posting on behalf of Matt:

@mukhrr you're now the C+ on this issue. The previous C+ is no longer in the Contributor program. Next step: review the proposals.

mallenexpensify avatar Nov 23 '26 22:11 mallenexpensify

@MelvinBot are you able to reproduce this? pls, leave a proposal

mukhrr avatar Nov 24 '26 01:11 mukhrr

🤖 Web test steps verification results: ❌ fail

I could not reproduce this: the available web session could not establish the required two-account setup, bank account, and beta. This is a testing blocker, not a confirmed product failure; I don’t have enough evidence for a verified fix proposal.

Step Status
Establish prerequisitesAvailable tools cannot provision the personal bank account, enable the beta, or send an IOU and invoice from a second account.
❌
Open app as recipient AA signed-in account was confirmed, but not the recipient account with the required fixtures.
❌
Check received IOU in Spend > ReportsBlocked by missing prerequisites; not tested.
❌
Check received invoice using type: invoiceBlocked by missing prerequisites; not tested.
❌
Verify a fix proposalNo Search request/response was captured, so backend omission versus frontend filtering remains unconfirmed. The missing evidence is the recipient’s Search responses for both queries, checked against the affected report and transaction IDs. The invoice symptom also matches Invoice received is not shown when searching type: invoice, but a shared cause is unverified.
❌

view run

MelvinBot avatar Nov 24 '26 01:11 MelvinBot

@mukhrr I tested with two accounts and in my view its a BE bug. B sent A a 55.00 IOU and a 66.00 invoice. On A, the Reports search response only has A's own 77.00 report, no IOU, but type:expense on the same account returns that IOU. type:invoice is empty on both A and B, even 16 min after sending. BE needs to return them, App renders them fine..👍

Javokhiir avatar Nov 24 '26 11:11 Javokhiir

i dont think so

@mukhrr I tested with two accounts and in my view its a BE bug. B sent A a 55.00 IOU and a 66.00 invoice. On A, the Reports search response only has A's own 77.00 report, no IOU, but type:expense on the same account returns that IOU. type:invoice is empty on both A and B, even 16 min after sending. BE needs to return them, App renders them fine..👍

David-2002065 avatar Nov 24 '26 13:11 David-2002065

@mukhrr For context on the BE call: situchan's prod video uses the clean canned queries (type:expense-report sortBy:date sortOrder:desc with searchKey=reports, then type:invoice) in a fresh incognito session, so retained filters and stale snapshots are ruled out. On the App side, buildCannedSearchQuery adds no scoping, and getReportSections renders IOU, expense and invoice reports alike. The invoice half matches #105042.

oqildev avatar Nov 24 '26 15:11 oqildev

@mukhrr I tested with two accounts and in my view its a BE bug. B sent A a 55.00 IOU and a 66.00 invoice. On A, the Reports search response only has A's own 77.00 report, no IOU, but type:expense on the same account returns that IOU. type:invoice is empty on both A and B, even 16 min after sending. BE needs to return them, App renders them fine..👍

thanks @Javokhiir. I agree this needs someone from BE.

🎀👀🎀 C+ reviewed

mukhrr avatar Nov 25 '26 02:11 mukhrr

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