-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add DeleteMoneyRequest #19095
Merged
Merged
Add DeleteMoneyRequest #19095
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
ea05ff8
use deleteMoneyRequest
luacmartins b056cf7
resolve conflicts
luacmartins d94f105
update display logic
luacmartins 4426261
refactor chatReports and iouReports into allReports
luacmartins 3cc573b
optimistically rm create action
luacmartins b9a7c44
refactor updateIOUOwnerAndTotal
luacmartins 69f2621
Merge branch 'main' into cmartins-addDelete
luacmartins 66885a9
fix updateIOUOwnerAndTotal
luacmartins 229f293
fix logic to display delete in MoneyRequestHeader
luacmartins 062bcf1
fix style
luacmartins aa1efde
rm chatReportID param
luacmartins 9e237fc
rm iouReportID param
luacmartins 3d5dcb7
Merge branch 'main' into cmartins-addDelete
luacmartins f68ca85
Merge branch 'main' into cmartins-addDelete
luacmartins 213270d
resolve conflicts
luacmartins 2405fe8
resolve conflicts
luacmartins 12d257e
add currency to optimistic transaction
luacmartins 03fd433
update optimistic data
luacmartins 527250f
pass right params to delete command
luacmartins 8197f84
fix iterable error
luacmartins e55b292
navigate when report is deleted
luacmartins a7a7548
Merge branch 'main' into cmartins-addDelete
luacmartins 60322cb
rm transaction thread if no comments
luacmartins ff564f2
add delete logic to iou reports
luacmartins d854d4d
add logic to delete transaction thread
luacmartins c1ea776
update optimistic data logic
luacmartins 8fa23b9
use transactionThreadID
luacmartins 22bc9fb
use onyx merge
luacmartins 0cd29e5
update reportPreview message
luacmartins bf18a54
rm transactions
luacmartins 485cff3
add deleted request copy, update render logic
luacmartins 627457c
update logic to delete iou report
luacmartins ab68f9f
reuse var
luacmartins c70efbb
update transaction header for deleted requests
luacmartins e56bdec
create isDeletedParentAction and refactor code
luacmartins d81c58b
rm dupe import
luacmartins eac631a
fix logic to delete transaction thread
luacmartins 3ab5277
refactor new code in reportscreen
luacmartins 58e9cc4
fix navigation
luacmartins 8cc16c9
add successData
luacmartins 0da5178
add failureData
luacmartins 1cfcdd5
add comments
luacmartins 26ece64
update checkmark logic
luacmartins 27f16cc
resolve conflicts
luacmartins 6d32573
fix style
luacmartins eff8991
Merge branch 'main' into cmartins-addDelete
luacmartins 678c0b0
fix route import, add transactions default
luacmartins 51f48f4
add early return for transactions;
luacmartins 59799e6
fix bad conflict resolution
luacmartins fbc13f6
update moneyRequestHeader to account for deleted transaction
luacmartins de2c169
fix styles
luacmartins 476df56
gst
luacmartins 68491fc
move comment
luacmartins c592af7
refactor MoneyRequestHeader
luacmartins eaea5f6
update comments
luacmartins 964d5d1
rm reportID prop
luacmartins 7814370
rm IOUAction if IOU report is deleted
luacmartins 7a82cb0
add error messsage
luacmartins 9d71485
resolve conflicts
luacmartins e57e7d1
Merge branch 'main' into cmartins-addDelete
luacmartins b3df54c
resolve conflicts
luacmartins f32559b
use parentReportAction
luacmartins e33fcf6
rm transaction id
luacmartins c933847
Merge branch 'main' into cmartins-addDelete
luacmartins 2766e7b
fix transaction header
luacmartins 6d69c2b
rm report actions for transaction thread
luacmartins d52e138
fix style
luacmartins 27e9eaa
fix calls to isTransactionThread
luacmartins 0d4968d
fix conflicts
luacmartins 3a4f2ab
fix conflict
luacmartins e46cd94
set isDeletedParentAction=true when reportAction is a parent
luacmartins 8394118
resolve conflicts
luacmartins fb7c129
add support for null action
luacmartins 60e5edb
fix style
luacmartins af5b27e
Merge branch 'main' into cmartins-addDelete
luacmartins 07c12b1
fix getLastVisibleMessage
luacmartins db4a93b
resolve conflicts
luacmartins ca2f56e
update lastMessageText to getLastVisibleMessage
luacmartins 5bc4688
move header logic to reportScreen
luacmartins 59da0ed
resolve conflicts
luacmartins 73a58fd
update footer logic for deleted action
luacmartins 2ec061f
resolve conflicts
luacmartins cf11adc
Merge branch 'main' into cmartins-addDelete
luacmartins 64e0486
fix error when deleting from transaction thread
luacmartins ae14a96
fix navigation issue
luacmartins e4ddef0
fix conflicts
luacmartins 6677b75
Merge branch 'main' into cmartins-addDelete
luacmartins 9bd7c71
rm param, fix migration
luacmartins a92a969
rm three button props from moneyreportheader
luacmartins 75b975a
Merge branch 'main' into cmartins-addDelete
luacmartins 86a93ae
resolve conflicts
luacmartins 3efea95
fix undefined reportAction error
luacmartins d0194b8
resolve conflicts
luacmartins a0cfe59
fix allReports usage
luacmartins 4bd7481
resolve conflicts
luacmartins 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 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 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 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 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 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 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 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 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 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.
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.
In addition to checking if the report is not settled we should have also checked if the report is submitted. In paid policies you can't delete a money request in a submitted report (unless you are the admin).