Skip to content

fix: Change default columns to remove total and add amount for expense report view#1

Open
RanuK12 wants to merge 1 commit into
mainfrom
ranukita/2c177a
Open

fix: Change default columns to remove total and add amount for expense report view#1
RanuK12 wants to merge 1 commit into
mainfrom
ranukita/2c177a

Conversation

@RanuK12

@RanuK12 RanuK12 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Details

Changes the default columns shown in the expense report view to use the inline-editable amount column instead of the non-editable total column.

Fixed Issues

Closes Expensify#93014

Tests

  1. Open an expense report - the amount column should be visible by default
  2. If the report has transactions in a different currency, both amount and total columns should be visible
  3. Verify the total column is not shown by default unless there are multi-currency transactions

QA Steps

  1. Navigate to any expense report
  2. Verify the amount column is shown (not the total column)
  3. If the report contains expenses in a different currency from the workspace currency, verify both amount and total columns appear

Criterios de aceptación cubiertos

  1. Amount column shown by default: Changed TYPE_DEFAULT_COLUMNS.EXPENSE_REPORT in CONST/index.ts from TABLE_COLUMNS.TOTAL to TABLE_COLUMNS.TOTAL_AMOUNT
  2. Keep showing both when multi-currency: Updated getColumnsToShow in SearchUIUtils.ts to add TABLE_COLUMNS.TOTAL (instead of TOTAL_AMOUNT) when an exchange rate exists, so both columns are visible when needed

…e report view [ranukita:2c177a]

- Replace TABLE_COLUMNS.TOTAL with TABLE_COLUMNS.TOTAL_AMOUNT in
  TYPE_DEFAULT_COLUMNS.EXPENSE_REPORT so the inline-editable amount
  column is shown by default instead of the non-editable total column.
- Update the exchange rate logic in getColumnsToShow to add TOTAL
  (workspace currency) instead of TOTAL_AMOUNT when a conversion exists,
  since AMOUNT is now the default and TOTAL is the supplementary column.

Closes Expensify#93014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[$250] Change the default columns to remove total and add amount

1 participant