Skip to content

Commit 48d245e

Browse files
authored
Merge pull request Expensify#66180 from Expensify/chuckdries/revert-64259
Revert "Merge pull request Expensify#64259 from callstack-internal/feat/waterim/unreport-transaction-v2"
2 parents c8abc59 + 457d170 commit 48d245e

19 files changed

Lines changed: 30 additions & 246 deletions

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ function MoneyReportHeader({
312312
const isSubmitterSameAsNextApprover = isReportOwner(moneyRequestReport) && nextApproverAccountID === moneyRequestReport?.ownerAccountID;
313313
const optimisticNextStep = isSubmitterSameAsNextApprover && policy?.preventSelfApproval ? buildOptimisticNextStepForPreventSelfApprovalsEnabled() : nextStep;
314314

315-
const shouldShowNextStep = isFromPaidPolicy && !isInvoiceReport && !shouldShowStatusBar && transactions.length > 0;
315+
const shouldShowNextStep = isFromPaidPolicy && !isInvoiceReport && !shouldShowStatusBar;
316316
const bankAccountRoute = getBankAccountRoute(chatReport);
317317
const {nonHeldAmount, fullAmount, hasValidNonHeldAmount} = getNonHeldAndFullAmount(moneyRequestReport, shouldShowPayButton);
318318
const isAnyTransactionOnHold = hasHeldExpensesReportUtils(moneyRequestReport?.reportID);

src/components/TransactionItemRow/DataCells/ChatBubbleCell.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
99
import useStyleUtils from '@hooks/useStyleUtils';
1010
import useTheme from '@hooks/useTheme';
1111
import useThemeStyles from '@hooks/useThemeStyles';
12-
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
1312
import {getIOUActionForTransactionID} from '@libs/ReportActionsUtils';
1413
import {isChatThread} from '@libs/ReportUtils';
1514
import variables from '@styles/variables';
@@ -24,9 +23,7 @@ function ChatBubbleCell({transaction, containerStyles, isInSingleTransactionRepo
2423
const theme = useTheme();
2524
const styles = useThemeStyles();
2625
const {shouldUseNarrowLayout} = useResponsiveLayout();
27-
const nonEmptyStringTransactionReportID = getNonEmptyStringOnyxID(transaction.reportID);
28-
29-
const [iouReportAction] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${nonEmptyStringTransactionReportID}`, {
26+
const [iouReportAction] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transaction.reportID}`, {
3027
selector: (reportActions) => getIOUActionForTransactionID(Object.values(reportActions ?? {}), transaction.transactionID),
3128
canBeMissing: true,
3229
});
@@ -35,7 +32,7 @@ function ChatBubbleCell({transaction, containerStyles, isInSingleTransactionRepo
3532
canBeMissing: true,
3633
});
3734

38-
const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${nonEmptyStringTransactionReportID}`, {
35+
const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${transaction.reportID}`, {
3936
canBeMissing: false,
4037
});
4138

src/languages/de.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,6 @@ const translations = {
10731073
scanMultipleReceiptsDescription: 'Machen Sie Fotos von all Ihren Belegen auf einmal, dann bestätigen Sie die Details selbst oder lassen Sie SmartScan dies übernehmen.',
10741074
receiptScanInProgress: 'Belegscan läuft',
10751075
receiptScanInProgressDescription: 'Belegscan läuft. Später erneut prüfen oder die Details jetzt eingeben.',
1076-
removeFromReport: 'Ausgabe aus Bericht entfernen',
1077-
moveToPersonalSpace: 'Ausgaben in persönlichen Bereich verschieben',
10781076
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10791077
!isSubmitted
10801078
? 'Mögliche doppelte Ausgaben erkannt. Überprüfen Sie die Duplikate, um die Einreichung zu ermöglichen.'

src/languages/en.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,6 @@ const translations = {
10581058
scanMultipleReceiptsDescription: "Snap photos of all your receipts at once, then confirm details yourself or we'll do it for you.",
10591059
receiptScanInProgress: 'Receipt scan in progress',
10601060
receiptScanInProgressDescription: 'Receipt scan in progress. Check back later or enter the details now.',
1061-
removeFromReport: 'Remove from report',
1062-
moveToPersonalSpace: 'Move expenses to your personal space',
10631061
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10641062
!isSubmitted
10651063
? 'Potential duplicate expenses identified. Review duplicates to enable submission.'

src/languages/es.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,6 @@ const translations = {
10581058
scanMultipleReceiptsDescription: 'Haz fotos de todos tus recibos a la vez y confirma los detalles tú mismo o nosotros lo haremos por ti.',
10591059
receiptScanInProgress: 'Escaneado de recibo en proceso',
10601060
receiptScanInProgressDescription: 'Escaneado de recibo en proceso. Vuelve a comprobarlo más tarde o introduce los detalles ahora.',
1061-
removeFromReport: 'Eliminar del informe',
1062-
moveToPersonalSpace: 'Mover gastos a tu espacio personal',
10631061
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10641062
!isSubmitted
10651063
? 'Se han identificado posibles gastos duplicados. Revisa los duplicados para habilitar el envío.'

src/languages/fr.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,6 @@ const translations = {
10741074
scanMultipleReceiptsDescription: "Prenez des photos de tous vos reçus en une seule fois, puis confirmez les détails vous-même ou laissez SmartScan s'en charger.",
10751075
receiptScanInProgress: 'Numérisation du reçu en cours',
10761076
receiptScanInProgressDescription: 'Numérisation du reçu en cours. Revenez plus tard ou saisissez les détails maintenant.',
1077-
removeFromReport: 'Supprimer du rapport',
1078-
moveToPersonalSpace: 'Déplacer les dépenses vers votre espace personnel',
10791077
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10801078
!isSubmitted
10811079
? 'Dépenses potentiellement en double identifiées. Vérifiez les doublons pour permettre la soumission.'

src/languages/it.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,6 @@ const translations = {
10691069
scanMultipleReceiptsDescription: 'Scatta foto di tutte le tue ricevute in una volta, poi conferma i dettagli tu stesso o lascia che SmartScan se ne occupi.',
10701070
receiptScanInProgress: 'Scansione della ricevuta in corso',
10711071
receiptScanInProgressDescription: 'Scansione della ricevuta in corso. Controlla più tardi o inserisci i dettagli ora.',
1072-
removeFromReport: 'Rimuovi dal rapporto',
1073-
moveToPersonalSpace: 'Sposta spese nello spazio personale',
10741072
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10751073
!isSubmitted
10761074
? "Spese potenzialmente duplicate identificate. Rivedi i duplicati per consentire l'invio."

src/languages/ja.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,6 @@ const translations = {
10721072
scanMultipleReceiptsDescription: 'すべての領収書を一度に撮影し、自分で詳細を確認するか、SmartScanに任せましょう。',
10731073
receiptScanInProgress: '領収書のスキャン中',
10741074
receiptScanInProgressDescription: '領収書のスキャン中です。後で確認するか、今すぐ詳細を入力してください。',
1075-
removeFromReport: '領収書を削除',
1076-
moveToPersonalSpace: '領収書を個人スペースに移動',
10771075
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10781076
!isSubmitted
10791077
? '重複の可能性がある経費が特定されました。提出を有効にするために重複を確認してください。'

src/languages/nl.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,6 @@ const translations = {
10701070
scanMultipleReceiptsDescription: "Maak foto's van al je bonnetjes tegelijk, bevestig dan zelf de details of laat SmartScan het afhandelen.",
10711071
receiptScanInProgress: 'Bon scannen bezig',
10721072
receiptScanInProgressDescription: 'Bon scannen bezig. Kom later terug of voer de gegevens nu in.',
1073-
removeFromReport: 'Verwijder uit rapport',
1074-
moveToPersonalSpace: 'Verplaats uitgaven naar persoonlijke ruimte',
10751073
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10761074
!isSubmitted
10771075
? 'Potentiële dubbele uitgaven geïdentificeerd. Controleer duplicaten om indiening mogelijk te maken.'

src/languages/pl.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,6 @@ const translations = {
10681068
scanMultipleReceiptsDescription: 'Zrób zdjęcia wszystkich swoich paragonów naraz, a następnie potwierdź szczegóły samodzielnie lub pozwól, aby SmartScan się tym zajął.',
10691069
receiptScanInProgress: 'Skanowanie paragonu w toku',
10701070
receiptScanInProgressDescription: 'Trwa skanowanie paragonu. Sprawdź później lub wprowadź dane teraz.',
1071-
removeFromReport: 'Usuń z raportu',
1072-
moveToPersonalSpace: 'Przenieś wydatek do przestrzeni osobistej',
10731071
duplicateTransaction: ({isSubmitted}: DuplicateTransactionParams) =>
10741072
!isSubmitted
10751073
? 'Zidentyfikowano potencjalne duplikaty wydatków. Przejrzyj duplikaty, aby umożliwić przesłanie.'

0 commit comments

Comments
 (0)