import title and salutation for person

This commit is contained in:
Timotheus Pokorra 2024-11-11 16:46:43 +01:00 committed by Dev und Test fuer hsadminng
parent 070e63c7b8
commit e15d82ac9c

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);