File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6189,7 +6189,16 @@ function getParentNavigationSubtitle(
61896189 }
61906190
61916191 if (isInvoiceReport(report) || isInvoiceRoom(parentReport)) {
6192- let reportName = `${getPolicyName({report: parentReport})} & ${getInvoicePayerName(parentReport)}`;
6192+ const senderWorkspaceName = getPolicyName({report: parentReport});
6193+ const invoiceReceiverPolicyID = parentReport?.invoiceReceiver?.type === CONST.REPORT.INVOICE_RECEIVER_TYPE.BUSINESS ? parentReport.invoiceReceiver.policyID : undefined;
6194+ const invoiceReceiverPolicy = invoiceReceiverPolicyID ? allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${invoiceReceiverPolicyID}`] : undefined;
6195+ const isCurrentUserReceiver = isCurrentUserInvoiceReceiver(parentReport);
6196+ const invoicePayerName = getInvoicePayerName(parentReport, invoiceReceiverPolicy);
6197+
6198+ let reportName = senderWorkspaceName;
6199+ if (!isCurrentUserReceiver && invoicePayerName) {
6200+ reportName = `${senderWorkspaceName} & ${invoicePayerName}`;
6201+ }
61936202
61946203 if (isArchivedNonExpenseReport(parentReport, isParentReportArchived)) {
61956204 // eslint-disable-next-line @typescript-eslint/no-deprecated
You can’t perform that action at this time.
0 commit comments