diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 22eb7007262f0..1a7a7bbd41394 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -6150,7 +6150,16 @@ function getParentNavigationSubtitle(report: OnyxEntry, isParentReportAr } if (isInvoiceReport(report) || isInvoiceRoom(parentReport)) { - let reportName = `${getPolicyName({report: parentReport})} & ${getInvoicePayerName(parentReport)}`; + const senderWorkspaceName = getPolicyName({report: parentReport}); + const invoiceReceiverPolicyID = parentReport?.invoiceReceiver?.type === CONST.REPORT.INVOICE_RECEIVER_TYPE.BUSINESS ? parentReport.invoiceReceiver.policyID : undefined; + const invoiceReceiverPolicy = invoiceReceiverPolicyID ? allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${invoiceReceiverPolicyID}`] : undefined; + const isCurrentUserReceiver = isCurrentUserInvoiceReceiver(parentReport); + const invoicePayerName = getInvoicePayerName(parentReport, invoiceReceiverPolicy); + + let reportName = senderWorkspaceName; + if (!isCurrentUserReceiver && invoicePayerName) { + reportName = `${senderWorkspaceName} & ${invoicePayerName}`; + } if (isArchivedNonExpenseReport(parentReport, isParentReportArchived)) { // eslint-disable-next-line @typescript-eslint/no-deprecated