Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
44037a9
Show REIMBURSED and MARKED_REIMBURSED actions on invoices
cead22 Nov 4, 2026
4ba6659
Name the sender and show their next step on an invoice that waits for…
cead22 Nov 4, 2026
8f24355
Use the payer name saved on the action when personal details have no …
cead22 Nov 4, 2026
788e08c
Skip caching every payment action whose visibility depends on the rep…
cead22 Nov 4, 2026
a0a796d
Copy the queued payment message for the parent report in a thread
cead22 Nov 4, 2026
f1887c5
Look up the actor personal details inside getActorDetailsWithActionName
cead22 Nov 4, 2026
5a083b8
Show the stored name of an invoice linked to a bill
cead22 Nov 4, 2026
334328f
Remove tests that repeat the coverage of other tests
cead22 Nov 5, 2026
ba290e2
Remove the invoice wallet payment test because Auth blocks wallet pay…
cead22 Nov 5, 2026
619f48f
Check the Search snapshot invoice when showing payment actions in Search
cead22 Nov 5, 2026
56c5ea6
Use a multiline JSDoc for isPaymentRecordedByReimbursedAction
cead22 Nov 5, 2026
00d6b98
Merge remote-tracking branch 'origin/main' into carlos-invoice-paymen…
cead22 Nov 9, 2026
7dff9f7
Mock computeReportName from its new module
cead22 Nov 9, 2026
f3ed2a5
Read the invoice bill link from the Search snapshot
cead22 Nov 9, 2026
adb58ef
Read the invoice bill link only from live Onyx
cead22 Nov 17, 2026
90fdd84
Move the invoice next step rule into getReportNextStep and simplify t…
cead22 Nov 17, 2026
6dc91f5
Merge remote-tracking branch 'origin/main' into carlos-invoice-paymen…
cead22 Nov 17, 2026
f3a3acc
Merge remote-tracking branch 'origin/main' into carlos-invoice-paymen…
cead22 Nov 17, 2026
caf465d
Format main updates and rebuild GitHub Action bundles
cead22 Nov 17, 2026
4112c03
Hide Pay on an invoice that the receiver pays through its linked bill
cead22 Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/hooks/useMoneyReportHeaderMoreContentVisibility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import {getInvoiceNextStep} from '@libs/NextStepUtils';
import {isGroupPolicy} from '@libs/PolicyUtils';
import {isInvoiceReport as isInvoiceReportUtil} from '@libs/ReportUtils';

Expand Down Expand Up @@ -34,7 +35,7 @@ function useMoneyReportHeaderMoreContentVisibility(reportID: string | undefined)
const {shouldShowStatusBar, statusBarType} = useMoneyReportHeaderStatusBar(reportID, moneyRequestReport?.chatReportID);

const isInvoiceReport = isInvoiceReportUtil(moneyRequestReport);
const shouldShowNextStep = isGroupPolicy(policy) && !isInvoiceReport && !shouldShowStatusBar;
const shouldShowNextStep = (isInvoiceReport ? !!getInvoiceNextStep(moneyRequestReport) : isGroupPolicy(policy)) && !shouldShowStatusBar;

return {
statusBarType,
Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `genehmigt${memo ? `, mit dem Vermerk ${memo}` : ''}`,
rejectedThisReport: 'abgelehnt',
waitingOnBankAccount: (submitterDisplayName: string) => `hat die Zahlung gestartet, wartet aber darauf, dass ${submitterDisplayName} ein persönliches Bankkonto hinzufügt.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `hat die Zahlung gestartet, wartet aber darauf, dass ${vendorDisplayName} ein Bankkonto hinzufügt.`,
adminCanceledRequest: 'hat die Zahlung storniert',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`${amount} Zahlung storniert, weil ${submitterDisplayName} ihr Expensify Wallet nicht innerhalb von 30 Tagen aktiviert hat`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `εγκρίθηκε${memo ? `, λέγοντας ${memo}` : ''}`,
rejectedThisReport: 'απορρίφθηκε',
waitingOnBankAccount: (submitterDisplayName: string) => `ξεκίνησε την πληρωμή, αλλά περιμένει τον/την ${submitterDisplayName} να προσθέσει έναν προσωπικό τραπεζικό λογαριασμό.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `ξεκίνησε την πληρωμή, αλλά περιμένει τον/την ${vendorDisplayName} να προσθέσει έναν τραπεζικό λογαριασμό.`,
adminCanceledRequest: 'ακύρωσε την πληρωμή',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`ακύρωσε την πληρωμή των ${amount}, επειδή ο/η ${submitterDisplayName} δεν ενεργοποίησε το Expensify Wallet του/της μέσα σε 30 ημέρες`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,7 @@ const translations = {
forwarded: (memo?: string) => `approved${memo ? `, saying ${memo}` : ''}`,
rejectedThisReport: 'rejected',
waitingOnBankAccount: (submitterDisplayName: string) => `started payment, but is waiting for ${submitterDisplayName} to add a personal bank account.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `started payment, but is waiting for ${vendorDisplayName} to add a bank account.`,
adminCanceledRequest: 'canceled the payment',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`canceled the ${amount} payment, because ${submitterDisplayName} did not enable their Expensify Wallet within 30 days`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo) => `aprobó${memo ? `, dijo ${memo}` : ''}`,
rejectedThisReport: 'rechazó',
waitingOnBankAccount: (submitterDisplayName: string) => `inició el pago, pero está esperando a que ${submitterDisplayName} añada una cuenta bancaria personal.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `inició el pago, pero está esperando a que ${vendorDisplayName} añada una cuenta bancaria.`,
adminCanceledRequest: 'canceló el pago',
canceledRequest: (amount, submitterDisplayName) => `canceló el pago ${amount}, porque ${submitterDisplayName} no habilitó tu Billetera Expensify en un plazo de 30 días.`,
settledAfterAddedBankAccount: (submitterDisplayName, amount) => `${submitterDisplayName} añadió una cuenta bancaria. El pago de ${amount} se ha realizado.`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `approuvé${memo ? `, indiquant « ${memo} »` : ''}`,
rejectedThisReport: 'rejeté',
waitingOnBankAccount: (submitterDisplayName: string) => `a commencé le paiement, mais attend que ${submitterDisplayName} ajoute un compte bancaire personnel.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `a commencé le paiement, mais attend que ${vendorDisplayName} ajoute un compte bancaire.`,
adminCanceledRequest: 'a annulé le paiement',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`a annulé le paiement de ${amount}, car ${submitterDisplayName} n’a pas activé son Portefeuille Expensify dans un délai de 30 jours`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `approvato${memo ? `, con nota: ${memo}` : ''}`,
rejectedThisReport: 'rifiutato',
waitingOnBankAccount: (submitterDisplayName: string) => `ha avviato il pagamento, ma sta aspettando che ${submitterDisplayName} aggiunga un conto bancario personale.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `ha avviato il pagamento, ma sta aspettando che ${vendorDisplayName} aggiunga un conto bancario.`,
adminCanceledRequest: 'ha annullato il pagamento',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`ha annullato il pagamento di ${amount}, perché ${submitterDisplayName} non ha abilitato il proprio Expensify Wallet entro 30 giorni`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `承認済み${memo ? `、メモ: ${memo}` : ''}`,
rejectedThisReport: '却下しました',
waitingOnBankAccount: (submitterDisplayName: string) => `支払いを開始しましたが、${submitterDisplayName} が個人の銀行口座を追加するのを待っています。`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `支払いを開始しましたが、${vendorDisplayName} が銀行口座を追加するのを待っています。`,
adminCanceledRequest: '支払いをキャンセルしました',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`${submitterDisplayName} が30日以内に Expensify Wallet を有効化しなかったため、${amount} の支払いをキャンセルしました`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `goedgekeurd${memo ? `, met de omschrijving ${memo}` : ''}`,
rejectedThisReport: 'afgekeurd',
waitingOnBankAccount: (submitterDisplayName: string) => `is met de betaling begonnen, maar wacht tot ${submitterDisplayName} een persoonlijke bankrekening toevoegt.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `is met de betaling begonnen, maar wacht tot ${vendorDisplayName} een bankrekening toevoegt.`,
adminCanceledRequest: 'heeft de betaling geannuleerd',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`heeft de betaling van ${amount} geannuleerd, omdat ${submitterDisplayName} hun Expensify Wallet niet binnen 30 dagen heeft geactiveerd`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `zatwierdzono${memo ? `, wpisując ${memo}` : ''}`,
rejectedThisReport: 'odrzucono',
waitingOnBankAccount: (submitterDisplayName: string) => `rozpoczął(-ęła) płatność, ale czeka, aż ${submitterDisplayName} doda osobiste konto bankowe.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `rozpoczął(-ęła) płatność, ale czeka, aż ${vendorDisplayName} doda konto bankowe.`,
adminCanceledRequest: 'anulowano płatność',
canceledRequest: (amount: string, submitterDisplayName: string) =>
`anulowano płatność ${amount}, ponieważ ${submitterDisplayName} nie aktywował(-a) swojego portfela Expensify w ciągu 30 dni`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `aprovado${memo ? `, dizendo ${memo}` : ''}`,
rejectedThisReport: 'rejeitou',
waitingOnBankAccount: (submitterDisplayName: string) => `iniciou o pagamento, mas está aguardando ${submitterDisplayName} adicionar uma conta bancária pessoal.`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `iniciou o pagamento, mas está aguardando ${vendorDisplayName} adicionar uma conta bancária.`,
adminCanceledRequest: 'cancelou o pagamento',
canceledRequest: (amount: string, submitterDisplayName: string) => `cancelou o pagamento de ${amount} porque ${submitterDisplayName} não ativou a Carteira Expensify em 30 dias`,
settledAfterAddedBankAccount: (submitterDisplayName: string, amount: string) => `${submitterDisplayName} adicionou uma conta bancária. O pagamento de ${amount} foi efetuado.`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ const translations: TranslationDeepObject<typeof en> = {
forwarded: (memo?: string) => `已批准${memo ? `,备注为 ${memo}` : ''}`,
rejectedThisReport: '已拒绝',
waitingOnBankAccount: (submitterDisplayName: string) => `已开始付款,但正在等待 ${submitterDisplayName} 添加个人银行账户。`,
waitingOnVendorBankAccount: (vendorDisplayName: string) => `已开始付款,但正在等待 ${vendorDisplayName} 添加银行账户。`,
adminCanceledRequest: '已取消付款',
canceledRequest: (amount: string, submitterDisplayName: string) => `已取消金额为 ${amount} 的付款,因为 ${submitterDisplayName} 未在 30 天内启用其 Expensify 钱包`,
settledAfterAddedBankAccount: (submitterDisplayName: string, amount: string) => `${submitterDisplayName} 已添加了一个银行账户。已完成 ${amount} 付款。`,
Expand Down
4 changes: 4 additions & 0 deletions src/libs/DebugUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
case 'withdrawalIDs':
return validateString(value);
case 'hasOutstandingChildRequest':
case 'isHiddenForBillReceiver':
case 'isAwaitingActionFromCurrentUser':
case 'hasOutstandingChildTask':
case 'isOwnPolicyExpenseChat':
case 'isPinned':
Expand Down Expand Up @@ -651,6 +653,7 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
return validateConstantEnum(value, CONST.RED_BRICK_ROAD_PENDING_ACTION);
case 'pendingFields':
return validateObject<ObjectElement<Report | ReportNameValuePairs, 'pendingFields'>>(value, {
isAwaitingActionFromCurrentUser: CONST.RED_BRICK_ROAD_PENDING_ACTION,
description: CONST.RED_BRICK_ROAD_PENDING_ACTION,
privateNotes: CONST.RED_BRICK_ROAD_PENDING_ACTION,
currency: CONST.RED_BRICK_ROAD_PENDING_ACTION,
Expand Down Expand Up @@ -691,6 +694,7 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
writeCapability: CONST.RED_BRICK_ROAD_PENDING_ACTION,
visibility: CONST.RED_BRICK_ROAD_PENDING_ACTION,
invoiceReceiver: CONST.RED_BRICK_ROAD_PENDING_ACTION,
isHiddenForBillReceiver: CONST.RED_BRICK_ROAD_PENDING_ACTION,
parentReportID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
parentReportActionID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
managerID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
Expand Down
14 changes: 14 additions & 0 deletions src/libs/NextStepUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,15 @@ type GetReportNextStepParams = {
isOffline: boolean;
};

/**
* Returns the next step of an invoice. Invoices only show the next step while a payment waits for the sender's bank
* account, because the sender must act before they can be paid. It doesn't check the policy, because the invoice's
* policy might not be loaded.
*/
function getInvoiceNextStep(report: OnyxEntry<Report>): ReportNextStep | undefined {
return report?.nextStep?.messageKey === CONST.NEXT_STEP.MESSAGE_KEY.WAITING_FOR_SUBMITTER_ACCOUNT ? report.nextStep : undefined;
}

function getReportNextStep({
currentUserLogin,
currentUserEmail,
Expand All @@ -534,6 +543,10 @@ function getReportNextStep({
theme,
isOffline,
}: GetReportNextStepParams): ReportNextStep | undefined {
if (isInvoiceReport(report)) {
return getInvoiceNextStep(report);
}

// Reports on an archived workspace can't be acted on until they're moved to another workspace
if (isArchivedPolicy(policy)) {
return buildChangeWorkspaceNextStep();
Expand Down Expand Up @@ -686,6 +699,7 @@ function shouldShowDynamicExternalWorkflowApproveErrorNextStep(reportAction: Ony
}

export {
getInvoiceNextStep,
getReportNextStep,
buildNextStepMessage,
getNextStepETA,
Expand Down
69 changes: 61 additions & 8 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,7 @@ function shouldReportActionBeVisible(
reportID?: string,
isSupportTicketReport = false,
reportActions?: OnyxEntry<ReportActions>,
isInvoice?: boolean,
): boolean {
if (!reportAction) {
return false;
Expand Down Expand Up @@ -1812,10 +1813,12 @@ function shouldReportActionBeVisible(
return false;
}

// Hide REIMBURSED and MARKED_REIMBURSED actions created from NewDot since an IOU PAY action is displayed instead
if (isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.REIMBURSED) || isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.MARKED_REIMBURSED)) {
const originalMessage = getOriginalMessage(reportAction);
if (originalMessage?.isNewDot || reportAction.shouldShow === false) {
// Hide REIMBURSED and MARKED_REIMBURSED actions created from NewDot since an IOU PAY action is displayed instead.
// ReimburseReport and MarkReimbursed add no IOU PAY action to an invoice, and neither does paying its linked bill, so the payment action stays visible on invoices.
// Auth sets shouldShow to false on MARKED_REIMBURSED actions created from NewDot for the same reason, so invoices ignore it too.
Comment thread
cead22 marked this conversation as resolved.
Resolved
if (isPaymentRecordedByReimbursedAction(reportAction)) {
// Search passes isInvoice because its invoice can exist only in the Search snapshot, not in Onyx.
if (isPaymentActionHiddenOutsideInvoices(reportAction) && !(isInvoice ?? isInvoiceReportID(reportAction.reportID ?? reportID))) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are excluding invoices here? It feels like we are patching Auth bugs in App. Why don't we just use the shouldShow as source of truth and have Auth set that according to the report type the action is added on

@cead22 cead22 Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do that in a follow up PR (and the update App as well)

AI: Agreed, App shouldn't patch this. Auth https://github.com/Expensify/Auth/pull/26804 makes shouldShow depend on the report type, and covers REIMBURSED too. After it deploys, #107147 makes App read only shouldShow and removes the invoice exception. I'd like to merge this PR as it is, so Bill Pay invoices show their payments until then.

return false;
}

Expand Down Expand Up @@ -1874,6 +1877,7 @@ function isReportActionVisible(
// TODO: Remove optional (?) once all callers pass currentUserAccountID. Refactor issue: https://github.com/Expensify/App/issues/66408
currentUserAccountID?: number,
reportActions?: OnyxEntry<ReportActions>,
isInvoice?: boolean,
): boolean {
if (!reportAction?.reportActionID) {
return false;
Expand All @@ -1885,18 +1889,45 @@ function isReportActionVisible(
// from what's cached in visibleReportActions (which reflects persisted Onyx data).
// We must recalculate visibility at runtime to ensure accuracy for these transient states.
if (reportAction.pendingAction) {
return shouldReportActionBeVisible(reportAction, reportAction.reportActionID, canUserPerformWriteAction, currentUserAccountID, reportID, isSupportTicketReport, reportActions);
return shouldReportActionBeVisible(
reportAction,
reportAction.reportActionID,
canUserPerformWriteAction,
currentUserAccountID,
reportID,
isSupportTicketReport,
reportActions,
isInvoice,
);
}

if (visibleReportActions && reportID) {
const reportCache = visibleReportActions[reportID];
if (!reportCache) {
return shouldReportActionBeVisible(reportAction, reportAction.reportActionID, canUserPerformWriteAction, currentUserAccountID, reportID, isSupportTicketReport, reportActions);
return shouldReportActionBeVisible(
reportAction,
reportAction.reportActionID,
canUserPerformWriteAction,
currentUserAccountID,
reportID,
isSupportTicketReport,
reportActions,
isInvoice,
);
}
const staticVisibility = reportCache[reportAction.reportActionID];
// If action is not in derived value cache, fall back to runtime calculation
if (staticVisibility === undefined) {
return shouldReportActionBeVisible(reportAction, reportAction.reportActionID, canUserPerformWriteAction, currentUserAccountID, reportID, isSupportTicketReport, reportActions);
return shouldReportActionBeVisible(
reportAction,
reportAction.reportActionID,
canUserPerformWriteAction,
currentUserAccountID,
reportID,
isSupportTicketReport,
reportActions,
isInvoice,
);
}
if (!staticVisibility) {
return false;
Expand All @@ -1906,7 +1937,7 @@ function isReportActionVisible(
}
return true;
}
return shouldReportActionBeVisible(reportAction, reportAction.reportActionID, canUserPerformWriteAction, currentUserAccountID, reportID, isSupportTicketReport, reportActions);
return shouldReportActionBeVisible(reportAction, reportAction.reportActionID, canUserPerformWriteAction, currentUserAccountID, reportID, isSupportTicketReport, reportActions, isInvoice);
}

/**
Expand Down Expand Up @@ -3559,6 +3590,27 @@ function isActionableCardFraudAlert(reportAction: OnyxInputOrEntry<ReportAction>
return reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_CARD_FRAUD_ALERT;
}

/**
* Whether the action records a payment that ReimburseReport or MarkReimbursed made
*/
function isPaymentRecordedByReimbursedAction(
reportAction: OnyxEntry<ReportAction>,
): reportAction is ReportAction<typeof CONST.REPORT.ACTIONS.TYPE.REIMBURSED | typeof CONST.REPORT.ACTIONS.TYPE.MARKED_REIMBURSED> {
return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.REIMBURSED) || isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.MARKED_REIMBURSED);
}

function isInvoiceReportID(reportID: string | undefined): boolean {
return !!reportID && getReportOrDraftReport({reportID})?.type === CONST.REPORT.TYPE.INVOICE;
}

/**
* Returns true for a REIMBURSED or MARKED_REIMBURSED action that was created from NewDot or that Auth marked with
* shouldShow false. Such an action is hidden on every report except an invoice.
*/
function isPaymentActionHiddenOutsideInvoices(reportAction: OnyxEntry<ReportAction>): boolean {
return isPaymentRecordedByReimbursedAction(reportAction) && (!!getOriginalMessage(reportAction)?.isNewDot || reportAction.shouldShow === false);
}

/**
* Checks if a report action is an actionable whisper that requires write permission to be visible.
*/
Expand Down Expand Up @@ -6502,6 +6554,7 @@ export {
isActionableAddPaymentCard,
isActionableCardFraudAlert,
isActionableWhisperRequiringWritePermission,
isPaymentActionHiddenOutsideInvoices,
getExportIntegrationActionFragments,
getExportIntegrationLastMessageText,
getExportIntegrationMessageHTML,
Expand Down
Loading
Loading