-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Adding operation type to transactionitem #170
Merged
Kammerlo
merged 12 commits into
main
from
feat/LOB-905-BE-Processing-and-Display-of-Journal-Transactions-revision
Mar 6, 2025
Merged
feat: Adding operation type to transactionitem #170
Kammerlo
merged 12 commits into
main
from
feat/LOB-905-BE-Processing-and-Display-of-Journal-Transactions-revision
Mar 6, 2025
Conversation
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
…urnal-Transactions-revision # Conflicts: # organisation/src/main/java/org/cardanofoundation/lob/app/organisation/domain/entity/Organisation.java
matiwinnetou
reviewed
Mar 5, 2025
...cardanofoundation/lob/app/accounting_reporting_core/domain/entity/TransactionItemEntity.java
Show resolved
Hide resolved
matiwinnetou
reviewed
Mar 5, 2025
@@ -44,4 +45,10 @@ public void run(TransactionEntity tx) { | |||
} | |||
} | |||
|
|||
private static BigDecimal getSumOfOperationType(Set<TransactionItemEntity> txItems, OperationType credit) { | |||
return txItems.stream() | |||
.filter(transactionItemEntity -> transactionItemEntity.getOperationType().equals(credit)) |
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.
you can also do: == for enums
matiwinnetou
reviewed
Mar 5, 2025
@@ -43,4 +44,12 @@ public void run(TransactionEntity tx) { | |||
} | |||
} | |||
|
|||
private static BigDecimal getSumOfFcy(Set<TransactionItemEntity> txItems, OperationType credit) { | |||
return txItems.stream() | |||
.filter(transactionItemEntity -> transactionItemEntity.getOperationType().equals(credit)) |
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.
you can also do: == for enums
matiwinnetou
approved these changes
Mar 5, 2025
M4rc0Russ0
approved these changes
Mar 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What is done in this PR: