FINERACT-2327: when Interest Refund was created manually, we should only return the newly created Interest Refund transaction identifiers in the result.

This commit is contained in:
Attila Budai
2025-08-21 11:10:51 +02:00
committed by Adam Saghy
parent 6c875fa6c6
commit 8fe9dbc614
4 changed files with 255 additions and 6 deletions
@@ -3034,10 +3034,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
return new CommandProcessingResultBuilder() //
.withCommandId(command.commandId()) //
.withLoanId(loan.getId()) //
.withEntityId(targetTransaction.getId()) //
.withEntityExternalId(targetTransaction.getExternalId()) //
.withSubEntityId(interestRefundTxn.getId()) //
.withSubEntityExternalId(interestRefundTxn.getExternalId()) //
.withEntityId(interestRefundTxn.getId()) //
.withEntityExternalId(interestRefundTxn.getExternalId()) //
.withOfficeId(loan.getOfficeId()) //
.withClientId(loan.getClientId()) //
.withGroupId(loan.getGroupId()) //