-
Notifications
You must be signed in to change notification settings - Fork 3.7k
fix - Report - Amount is not updated smoothly after deleting expenses from report. #68484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mollfpr
merged 13 commits into
Expensify:main
from
FitseTLT:fix-bulk-request-deletion-total-calculation-bug
Sep 30, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
59ff695
fix bulk expense deletion iouReport total update
FitseTLT c27b5bd
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT 044559c
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT 44a688e
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT ef451f5
grey out total on pending deletion transaction
FitseTLT 5021b02
fix test
FitseTLT 77bf990
fix import
FitseTLT 589b6d7
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT da832dc
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT a5bd21f
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT 68ae09e
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT 1bda97d
Merge branch 'main' into fix-bulk-request-deletion-total-calculation-bug
FitseTLT 7286dab
include pending action delete transactions
FitseTLT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain why we need this condition? Doesn't
transactions.some(getTransactionPendingAction)cover pending delete?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dukenv0307 we are already filtering out deleted transactions here
App/src/pages/home/ReportScreen.tsx
Line 306 in f54a2c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but we just need to grey out only if the total can't be recalculated, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trjExpensify is suggesting to follow the pattern we use for new expense creation and we grey it out until the BE clears the pending action currently, no matter the condition of the recalculation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @FitseTLT, I'm still quite confused.
Based on the confirmation here, in offline mode, we want to grey out the amount only when the total can't be recalculated.

But with the current implementation, we always grey out even though the amount is updated (IOU currency is the same as expense currency)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dukenv0307 I am trying to follow the current pattern we are using. On main, when adding a new expense with the same currency as the iou report it is greyed out even online until the BE response clears the pending field.
App/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx
Lines 114 to 116 in f54a2c1
App/src/components/MoneyRequestReportView/MoneyRequestReportTotalSpend.tsx
Line 50 in f54a2c1