From 18b10940d5a6fc7c30a10019d08db5c28042f0c3 Mon Sep 17 00:00:00 2001 From: Muhimbura Brian Mart Date: Mon, 18 Nov 2024 22:36:18 +0300 Subject: [PATCH] FIX FSF-69 --- .../accounting/journalentry/data/JournalEntryData.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/data/JournalEntryData.java b/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/data/JournalEntryData.java index b5522efc5b1..0c160decb08 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/data/JournalEntryData.java +++ b/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/data/JournalEntryData.java @@ -24,6 +24,7 @@ import java.util.List; import org.apache.fineract.accounting.glaccount.data.GLAccountData; import org.apache.fineract.infrastructure.core.data.EnumOptionData; +import org.apache.fineract.infrastructure.core.service.DateUtils; import org.apache.fineract.organisation.monetary.data.CurrencyData; /** @@ -93,6 +94,7 @@ public class JournalEntryData { private String bankNumber; private transient Long savingTransactionId; private ZonedDateTime createdTimestamp; + private String systemTimezone; // for opening bal bulk import public JournalEntryData(Long officeId, LocalDate transactionDate, String currencyCode, List credits, @@ -241,6 +243,7 @@ public JournalEntryData(final Long id, final Long officeId, final String officeN this.transactionDetails = transactionDetailData; this.currency = currency; this.createdTimestamp = createdTimestamp; + this.systemTimezone = DateUtils.getTimeZoneOfTenant().getID(); } public JournalEntryData(final Long id, final Long officeId, final String glAccountName, final Long glAccountId, @@ -275,6 +278,7 @@ public JournalEntryData(final Long id, final Long officeId, final String glAccou this.transactionDetails = null; this.currency = null; this.currencyCode = currencyCode; + this.systemTimezone = DateUtils.getTimeZoneOfTenant().getDisplayName(); } public static JournalEntryData fromGLAccountData(final GLAccountData glAccountData) {