Skip to content

Commit

Permalink
Merge pull request #1106 from fiterlatam/FSF-38
Browse files Browse the repository at this point in the history
FSF-38 Not able to create a new provisioning entry
  • Loading branch information
Deepika1095 authored Sep 4, 2024
2 parents 3160c91 + 6665709 commit 2d98640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public String revertJournalEntry(final List<JournalEntry> journalEntries, String
@Override
public String revertProvisioningJournalEntries(final LocalDate reversalTransactionDate, final Long entityId, final Integer entityType) {
List<JournalEntry> journalEntries = this.glJournalEntryRepository.findProvisioningJournalEntriesByEntityId(entityId, entityType);
final String reversalTransactionId = journalEntries.get(0).getTransactionId();
final String reversalTransactionId = !journalEntries.isEmpty() ? journalEntries.get(0).getTransactionId() : null;
for (final JournalEntry journalEntry : journalEntries) {
JournalEntry reversalJournalEntry;
String reversalComment = "Reversal entry for Journal Entry with Entry Id :" + journalEntry.getId() + " and transaction Id "
Expand Down

0 comments on commit 2d98640

Please sign in to comment.