Skip to content

Commit

Permalink
Merge pull request #895 from fiterafrica/FSMA-161_fix_deposit
Browse files Browse the repository at this point in the history
FSMA-161 Fix note on recurring deposit
  • Loading branch information
Deepika1095 authored Feb 7, 2025
2 parents fe0b8f5 + dded5ce commit 7d4bd4c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ public CommandProcessingResult depositToRDAccount(final Long savingsId, final Js
final SavingsAccountTransaction deposit = this.depositAccountDomainService.handleRDDeposit(account, fmt, transactionDate,
transactionAmount, paymentDetail, isRegularTransaction);

final String noteText = command.stringValueOfParameterNamed("note");
if (StringUtils.isNotBlank(noteText)) {
final Note note = Note.savingsTransactionNote(account, deposit, noteText);
this.noteRepository.save(note);
}

return new CommandProcessingResultBuilder() //
.withEntityId(deposit.getId()) //
.withOfficeId(account.officeId()) //
Expand Down

0 comments on commit 7d4bd4c

Please sign in to comment.