This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit c731da66d55f76dbf9570fd1e74acad5fb814b1b
Merge: 82d5178136 09907f0d10
Author: Adam Saghy <[email protected]>
AuthorDate: Sat Nov 28 17:41:41 2026 +0000

    Merge pull request #6853 from ReKri76/FINERACT-3026
    
    FINERACT-3026: Pass dateFormat/locale and add row-level error handling 
across all bulk import handlers

 .../importhandler/center/CenterImportHandler.java  |  36 ++++---
 .../ChartOfAccountsImportHandler.java              |  29 +++---
 .../client/ClientEntityImportHandler.java          |   9 +-
 .../client/ClientPersonImportHandler.java          |   7 +-
 .../fixeddeposits/FixedDepositImportHandler.java   |  53 +++++-----
 .../FixedDepositTransactionImportHandler.java      |  22 +++--
 .../importhandler/group/GroupImportHandler.java    |  35 ++++---
 .../guarantor/GuarantorImportHandler.java          |  22 +++--
 .../journalentry/JournalEntriesImportHandler.java  | 109 ++++++++++++++-------
 .../importhandler/loan/LoanImportHandler.java      |  65 +++++++-----
 .../loanrepayment/LoanRepaymentImportHandler.java  |  21 ++--
 .../importhandler/office/OfficeImportHandler.java  |   2 +-
 .../RecurringDepositImportHandler.java             |  50 ++++++----
 .../RecurringDepositTransactionImportHandler.java  |  22 +++--
 .../savings/SavingsImportHandler.java              |  47 +++++----
 .../savings/SavingsTransactionImportHandler.java   |   2 +-
 .../sharedaccount/SharedAccountImportHandler.java  |  23 +++--
 .../importhandler/staff/StaffImportHandler.java    |  21 ++--
 .../importhandler/users/UserImportHandler.java     |  18 ++--
 .../JournalEntriesImportHandlerTest.java           |  79 +++++++++++++++
 20 files changed, 446 insertions(+), 226 deletions(-)

diff --cc 
fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/importhandler/office/OfficeImportHandler.java
index f2287daf21,fddd3dcacd..64998f6bdd
--- 
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/importhandler/office/OfficeImportHandler.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/importhandler/office/OfficeImportHandler.java
@@@ -85,10 -87,10 +85,10 @@@ public class OfficeImportHandler implem
          return offices;
      }
  
 -    private OfficeData readOffice(Row row, final String locale, final String 
dateFormat, final Map<Integer, String> rowErrors) {
 +    private OfficeData readOffice(final Row row, final String locale, final 
String dateFormat, final Map<Integer, String> rowErrors) {
          String officeName = 
ImportHandlerUtils.readAsString(OfficeConstants.OFFICE_NAME_COL, row);
          Long parentId = readParentOfficeId(row, rowErrors);
-         LocalDate openedDate = 
ImportHandlerUtils.readAsDate(OfficeConstants.OPENED_ON_COL, row);
+         LocalDate openedDate = 
ImportHandlerUtils.readAsDate(OfficeConstants.OPENED_ON_COL, row, dateFormat, 
locale);
          String externalId = 
ImportHandlerUtils.readAsString(OfficeConstants.EXTERNAL_ID_COL, row);
          OfficeData office = OfficeData.importInstance(officeName, parentId, 
openedDate, ExternalIdFactory.produce(externalId));
          office.setImportFields(row.getRowNum(), locale, dateFormat);

Reply via email to