From 4d7b6ca8ababa9813a6e46f03747135f8077170d Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Mon, 11 Nov 2024 22:54:35 +0100 Subject: [PATCH] more fixes for import --- .../hsadminng/hs/migration/BaseOfficeDataImport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java index 480cef6d..033f6637 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java @@ -81,6 +81,8 @@ public abstract class BaseOfficeDataImport extends CsvDataImport { private static final Map PERSON_TYPES_BY_CONTACT = Map.of( 90072, HsOfficePersonType.NATURAL_PERSON, 90641, HsOfficePersonType.LEGAL_PERSON, + 90368, HsOfficePersonType.LEGAL_PERSON, + 90564, HsOfficePersonType.NATURAL_PERSON, -1, HsOfficePersonType.LEGAL_PERSON ); @@ -966,6 +968,8 @@ public abstract class BaseOfficeDataImport extends CsvDataImport { HsOfficePersonEntity contactPerson = partnerPerson; if (!StringUtils.equals(rec.getString("firma"), partnerPerson.getTradeName()) || partnerPerson.getPersonType() != determinePersonType(rec) || + !StringUtils.equals(rec.getString("title"), partnerPerson.getTitle()) || + !StringUtils.equals(rec.getString("salut"), partnerPerson.getSalutation()) || !StringUtils.equals(rec.getString("first_name"), partnerPerson.getGivenName()) || !StringUtils.equals(rec.getString("last_name"), partnerPerson.getFamilyName())) { contactPerson = addPerson(HsOfficePersonEntity.builder().build(), rec);