-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Allow zero amount expenses - second try #72674
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
Merged
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
93f26c9
Allow zero amount expenses round 2
Gonals a0d0baf
tests
Gonals 122318d
performance thingy
Gonals f2d0df6
change it so zero amount expenses with receipts are also allowed
Gonals 043d884
remove uneeded
Gonals 66270b5
one more test
Gonals 1f71b90
better test
Gonals ef79084
Display 0.0 distance correctly
Gonals f2480a5
allow zero as modified amount
Gonals 982281b
better display fix
Gonals 02dbe50
conflicts
Gonals 7207aef
Merge branch 'main' into alberto-reZero
Gonals b6449ca
prevent zero amount for pay actions
Gonals edc372f
allow zero
Gonals 632e60c
keep existing behavior
Gonals 1823bd9
prevent zero amount for invoices and show merchant field when needed
Gonals 95f24fe
prevent zero on splits, because you can't split zero
Gonals 635a6b5
pass isDistance
Gonals 699a313
prettier
Gonals e530619
typescript validation
Gonals 243bbfc
more of that
Gonals f20fc68
and more
Gonals 2bb910d
one more
Gonals 574b00e
lint
Gonals 13a84d3
update tests
Gonals b9e7c2d
typing
Gonals 7b3c5bd
and more typing
Gonals 54f05e2
conflicts
Gonals 338f04d
Merge branch 'main' into alberto-reZero
Gonals 6ec45d3
lint
Gonals cdaff0c
better check for scan requests
Gonals 49c69e0
Merge branch 'main' into alberto-reZero
Gonals 886f0a8
test updating
Gonals 1952071
and more tests
Gonals 6038dbb
more updates
Gonals 3c523b9
typo
Gonals 673397a
Merge branch 'main' into alberto-reZero
Gonals 1d3d6bb
conflicts
Gonals 69d09dd
Merge branch 'main' into alberto-reZero
Gonals 006b45e
improve some modifiedAmount behavior
Gonals 85facfd
conflicts
Gonals 870fe89
prettier
Gonals 2cc4db1
deprecated searchReports
Gonals fa73736
one more
Gonals 76411b9
try report
Gonals d67c01d
more lint
Gonals 123e2e8
Default to default merchant for manual expenses
Gonals e22b006
also for the draft
Gonals 56b985b
Several default checks
Gonals 59a9745
And more default checks
Gonals 768770f
and some more
Gonals 11f05af
Update tests
Gonals 4c1313e
prettier
Gonals 438b0ae
more tests
Gonals 9dd86ad
conflicts
Gonals 7c39e52
more conflicts
Gonals 5aaaa05
redo some stuff the merge got rid of
Gonals 561b148
more lint
Gonals cfcc6e8
even more conflicts
Gonals ac23be8
prettier again
Gonals 11d5558
unrelated lint because typescript hates me
Gonals fa896e5
but not as much as I hate it
Gonals a4a3a76
more conflicts
Gonals 7cb252f
more tests
Gonals 856aeac
and more
Gonals c4ac032
even more
Gonals 2147e03
hopefully last one
Gonals d930996
some cleanup
Gonals 8b7ff25
fix expenses
Gonals 316335e
this never ends
Gonals 8de4e87
a bit more
Gonals 637424a
Merge branch 'main' into alberto-reZero
Gonals 653dcfb
we keep going
Gonals d8a247c
Could this be it?
Gonals 38ad7f0
final one
Gonals f19bc63
avoid undefined
Gonals 932a69b
Merge branch 'main' into alberto-reZero
Gonals 2dde72e
conflicts
Gonals c9c9eb6
another conflict
Gonals c9c4fa3
conflicts
Gonals 3c3bc62
Correctly determine amount for violations
Gonals 6ed9055
fix doesReportContainRequestsFromMultipleUsers
Gonals 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
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.
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.
Not a blocker since it only affects the column width. If the amount is too long and the modifiedAmount is 0, this function will return true.
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.
I think that is fine