TP-20240927-importfixes #115

Merged
hsh-michaelhoennig merged 33 commits from TP-20240927-importfixes into master 2024-11-21 10:27:36 +01:00
Showing only changes of commit e15d82ac9c - Show all commits

View File

@ -1065,10 +1065,11 @@ public abstract class BaseOfficeDataImport extends CsvDataImport {
} }
private HsOfficePersonEntity addPerson(final HsOfficePersonEntity person, final Record contactRecord) { private HsOfficePersonEntity addPerson(final HsOfficePersonEntity person, final Record contactRecord) {
// TODO: title+salutation: add to person person.setSalutation(contactRecord.getString("salut").trim());
person.setGivenName(contactRecord.getString("first_name")); person.setTitle(contactRecord.getString("title").trim());
person.setFamilyName(contactRecord.getString("last_name")); person.setGivenName(contactRecord.getString("first_name").trim());
person.setTradeName(contactRecord.getString("firma")); person.setFamilyName(contactRecord.getString("last_name").trim());
person.setTradeName(contactRecord.getString("firma").trim());
person.setPersonType(determinePersonType(contactRecord)); person.setPersonType(determinePersonType(contactRecord));
persons.put(contactRecord.getInteger("contact_id"), person); persons.put(contactRecord.getInteger("contact_id"), person);