FINERACT-1805: Fix getting details of a share transactions

This commit is contained in:
mariiaKraievska
2023-12-14 21:25:04 +01:00
committed by Adam Saghy
parent cba759533d
commit cd2f2f8102
5 changed files with 148 additions and 3 deletions
@@ -201,8 +201,11 @@ public class JournalEntryReadPlatformServiceImpl implements JournalEntryReadPlat
noteData = new NoteData(noteId, null, null, null, null, null, null, null, note, null, null, null, null, null, null);
}
Long transaction = null;
if (entityType != null) {
transaction = Long.parseLong(transactionId.substring(1).trim());
if (entityType != null && transactionId != null) {
String numericPart = transactionId.replaceAll("[^\\d]", "");
if (!numericPart.isEmpty()) {
transaction = Long.parseLong(numericPart);
}
}
TransactionTypeEnumData transactionTypeEnumData = null;