You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-05-26] [Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice #90997
Version Number: 9.3.75-6 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:#89166 Email or phone of affected tester (no customers):sojdnosjdosjoisjg@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Enable Invoices in workspace settings > More features.
Go to staging.new.expensify.com
Go to Spend tab.
Open FAB > Send invoice.
Send an invoice with merchant to any user.
Click on the inline merchant field on the expense row.
Clear merchant and hit Enter.
Expected Result:
Merchant field can be cleared when inline editing invoice (merchant is not a requirement for invoice).
Actual Result:
Merchant field cannot be cleared when inline editing invoice.
👋 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:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #89166 - "feat: Add inline editing for tables on desktop (V2)" by @mohammadjafarinejad (High confidence) Related Issues: #82534, #88711
Recommendation: REVERT
PR #89166 introduced the inline merchant editing feature for the Search/Expenses table. Its isValidMerchant validation does not allow clearing the merchant field on invoice reports, even though merchant is not required for invoices.
Assigned: @mohammadjafarinejad (PR author), @ahmedGaber93, @puneetlath (approving reviewers) from highest-confidence causing PR only Labels: No label changes — DeployBlockerCash is appropriate since the fix requires reverting or patching an App PR. No DeployBlocker label was present to remove.
Detailed Analysis
Evidence
The bug is staging-only (issue states "N/A - new feature, doesn't exist in prod"), reproduced on version 9.3.75-6.
The PR also modified src/components/TransactionItemRow/DataCells/MerchantCell.tsx, which is where the inline merchant editor renders.
Root Cause
In src/libs/MoneyRequestUtils.ts, the isValidMerchant function allows an empty/cleared merchant only when the transaction is unreported (isExpenseUnreported) or the parent report is an IOU (isIOUReport). However, invoice reports have report.type === CONST.REPORT.TYPE.INVOICE, which is a distinct value from CONST.REPORT.TYPE.IOU. The condition on line 177 (if (isEmpty && (isUnreported || isIOU))) does not cover the invoice case, so when a user clears the merchant on an invoice and hits Enter, isValidMerchant returns false, causing editTransactionMerchantInline to return early without saving. The fix needs to add || isInvoiceReport(report) to that condition, or the PR should be reverted.
The isValidMerchant function allows clearing the merchant only for unreported expenses and IOU reports, but not for invoice reports. Invoice reports have type 'invoice' (not 'iou'), so isIOUReport returns false for them. When the user clears the merchant on an invoice, editTransactionMerchantInline calls isValidMerchant which returns false, silently rejecting the edit and snapping the field back to its original value.
What changes do you think we should make in order to solve the problem?
Add isInvoiceReport to the empty-merchant allowlist in isValidMerchant: import isInvoiceReport from ReportUtils and extend the condition on line 177 to isEmpty && (isUnreported || isIOU || isInvoice).
Investigation details
Data flow when the bug occurs:
User clears merchant on an invoice transaction and presses Enter
editTransactionMerchantInline is called with empty string
Falls through to if (isEmpty) return false — edit silently rejected
useInlineEditState resets the field to the original value
Why invoices should allow empty merchant: The creation-time merchant requirement (IOURequestStepMerchant.tsx:75) only requires merchant for isPolicyExpenseChat and isExpenseRequest — invoice chats are neither, confirming merchant is optional for invoices.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-][$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/-][+][Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/+]on May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.75-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ahmedGaber93 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]
changed the title [-][Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/-][+][Due for payment 2026-05-26] [Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/+]on May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.77-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ahmedGaber93 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]
Activity
melvin-bot commentedon May 18, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #89166
melvin-bot commentedon May 18, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 18, 2026
👋 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:
OSBotify commentedon May 18, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #89166 - "feat: Add inline editing for tables on desktop (V2)" by @mohammadjafarinejad (High confidence)
Related Issues: #82534, #88711
Recommendation: REVERT
PR #89166 introduced the inline merchant editing feature for the Search/Expenses table. Its
isValidMerchantvalidation does not allow clearing the merchant field on invoice reports, even though merchant is not required for invoices.Assigned: @mohammadjafarinejad (PR author), @ahmedGaber93, @puneetlath (approving reviewers) from highest-confidence causing PR only
Labels: No label changes —
DeployBlockerCashis appropriate since the fix requires reverting or patching an App PR. NoDeployBlockerlabel was present to remove.Detailed Analysis
Evidence
src/libs/actions/TransactionInlineEdit.tswhich contains theeditTransactionMerchantInlinefunction that gates saves behindisValidMerchant.src/libs/MoneyRequestUtils.tsadditions including theisValidMerchantfunction itself.Verification
src/libs/actions/TransactionInlineEdit.ts— modified by PR feat: Add inline editing for tables on desktop (V2) #89166 (new file introduced by this PR).src/libs/MoneyRequestUtils.ts— modified by PR feat: Add inline editing for tables on desktop (V2) #89166 (addedisValidMerchant).src/components/TransactionItemRow/DataCells/MerchantCell.tsx, which is where the inline merchant editor renders.Root Cause
In
src/libs/MoneyRequestUtils.ts, theisValidMerchantfunction allows an empty/cleared merchant only when the transaction is unreported (isExpenseUnreported) or the parent report is an IOU (isIOUReport). However, invoice reports havereport.type === CONST.REPORT.TYPE.INVOICE, which is a distinct value fromCONST.REPORT.TYPE.IOU. The condition on line 177 (if (isEmpty && (isUnreported || isIOU))) does not cover the invoice case, so when a user clears the merchant on an invoice and hits Enter,isValidMerchantreturnsfalse, causingeditTransactionMerchantInlineto return early without saving. The fix needs to add|| isInvoiceReport(report)to that condition, or the PR should be reverted.MelvinBot commentedon May 18, 2026
Proposal
What is the root cause of that problem?
The
isValidMerchantfunction allows clearing the merchant only for unreported expenses and IOU reports, but not for invoice reports. Invoice reports have type'invoice'(not'iou'), soisIOUReportreturnsfalsefor them. When the user clears the merchant on an invoice,editTransactionMerchantInlinecallsisValidMerchantwhich returnsfalse, silently rejecting the edit and snapping the field back to its original value.What changes do you think we should make in order to solve the problem?
Add
isInvoiceReportto the empty-merchant allowlist inisValidMerchant: importisInvoiceReportfromReportUtilsand extend the condition on line 177 toisEmpty && (isUnreported || isIOU || isInvoice).Investigation details
Data flow when the bug occurs:
editTransactionMerchantInlineis called with empty stringisValidMerchant('', transaction, invoiceReport)evaluates:isEmpty=true,isUnreported=false,isIOU=false(invoice type ≠ iou type)if (isEmpty) return false— edit silently rejecteduseInlineEditStateresets the field to the original valueWhy invoices should allow empty merchant: The creation-time merchant requirement (
IOURequestStepMerchant.tsx:75) only requires merchant forisPolicyExpenseChatandisExpenseRequest— invoice chats are neither, confirming merchant is optional for invoices.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.ahmedGaber93 commentedon May 18, 2026
reviewing
6 remaining items
m-natarajan commentedon May 18, 2026
Not Repro, Mac/ Chrome, v9.3.75-6
repro.-.90997.mp4
puneetlath commentedon May 18, 2026
Great!
[-][$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/-][+][Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/+]melvin-bot commentedon May 19, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.75-14 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 2026-05-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 19, 2026
@ahmedGaber93 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]
[-][Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/-][+][Due for payment 2026-05-26] [Due for payment 2026-05-26] [$250] Invoice - Merchant field cannot be cleared when inline editing invoice[/+]melvin-bot commentedon May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.77-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 2026-05-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 19, 2026
@ahmedGaber93 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]