@@ -336,18 +336,17 @@ const getExpenseReportHeaders = (profileIcon?: IconAsset): SearchColumnConfig[]
336336] ;
337337
338338const getTransactionGroupHeaders = ( groupBy : SearchGroupBy , icons : SearchHeaderIcons ) : SearchColumnConfig [ ] => {
339- const commonGroupHeaders : SearchColumnConfig [ ] = [
340- {
341- columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_EXPENSES ,
342- translationKey : 'common.expenses' as TranslationPaths ,
343- isColumnSortable : true ,
344- } ,
345- {
346- columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_TOTAL ,
347- translationKey : 'common.total' as TranslationPaths ,
348- isColumnSortable : true ,
349- } ,
350- ] ;
339+ const groupExpensesHeader : SearchColumnConfig = {
340+ columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_EXPENSES ,
341+ translationKey : 'common.expenses' as TranslationPaths ,
342+ isColumnSortable : true ,
343+ } ;
344+ const groupTotalHeader : SearchColumnConfig = {
345+ columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_TOTAL ,
346+ translationKey : 'common.total' as TranslationPaths ,
347+ isColumnSortable : true ,
348+ } ;
349+ const commonGroupHeaders : SearchColumnConfig [ ] = [ groupExpensesHeader , groupTotalHeader ] ;
351350 switch ( groupBy ) {
352351 case CONST . SEARCH . GROUP_BY . FROM :
353352 return [
@@ -405,7 +404,18 @@ const getTransactionGroupHeaders = (groupBy: SearchGroupBy, icons: SearchHeaderI
405404 columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_WITHDRAWAL_ID ,
406405 translationKey : 'common.withdrawalID' ,
407406 } ,
408- ...commonGroupHeaders ,
407+ groupExpensesHeader ,
408+ {
409+ columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_AMOUNT_DEBITED ,
410+ translationKey : 'common.amountDebited' ,
411+ isColumnSortable : true ,
412+ } ,
413+ {
414+ columnName : CONST . SEARCH . TABLE_COLUMNS . GROUP_AMOUNT_REIMBURSED ,
415+ translationKey : 'common.amountReimbursed' ,
416+ isColumnSortable : true ,
417+ } ,
418+ groupTotalHeader ,
409419 ] ;
410420 case CONST . SEARCH . GROUP_BY . CATEGORY :
411421 return [
0 commit comments