Skip to content

Commit

Permalink
invert total calculation to include invoices in ReportListItem
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Dec 5, 2024
1 parent 7ba97ac commit 1954c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SelectionList/Search/ReportListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function TotalCell({showTooltip, isLargeScreenWidth, reportItem}: ReportCellProp

// Only invert non-zero values otherwise we'll end up with -0.00
if (total) {
total *= reportItem?.type === CONST.REPORT.TYPE.EXPENSE ? -1 : 1;
total *= reportItem?.type === CONST.REPORT.TYPE.EXPENSE || reportItem?.type === CONST.REPORT.TYPE.INVOICE ? -1 : 1;
}

return (
Expand Down

0 comments on commit 1954c1d

Please sign in to comment.