in service/src/main/java/org/apache/fineract/cn/teller/service/internal/mapper/TellerMapper.java [58:89]
public static TellerEntity map(final String officeIdentifier, final Teller teller) {
final TellerEntity tellerEntity = new TellerEntity();
tellerEntity.setIdentifier(teller.getCode());
tellerEntity.setPassword(teller.getPassword());
tellerEntity.setOfficeIdentifier(officeIdentifier);
tellerEntity.setTellerAccountIdentifier(teller.getTellerAccountIdentifier());
tellerEntity.setVaultAccountIdentifier(teller.getVaultAccountIdentifier());
tellerEntity.setChequesReceivableAccount(teller.getChequesReceivableAccount());
tellerEntity.setCashdrawLimit(teller.getCashdrawLimit());
tellerEntity.setCashOverShortAccount(teller.getCashOverShortAccount());
tellerEntity.setDenominationRequired(
teller.getDenominationRequired() != null ? teller.getDenominationRequired() : Boolean.FALSE
);
tellerEntity.setAssignedEmployeeIdentifier(teller.getAssignedEmployee());
if (teller.getState() != null) {
tellerEntity.setState(teller.getState());
}
if (teller.getCreatedBy() != null) {
tellerEntity.setCreatedBy(teller.getCreatedBy());
tellerEntity.setCreatedOn(DateConverter.fromIsoString(teller.getCreatedOn()));
}
if (teller.getLastModifiedBy() != null) {
tellerEntity.setLastModifiedBy(teller.getLastModifiedBy());
tellerEntity.setLastModifiedOn(DateConverter.fromIsoString(teller.getLastModifiedOn()));
}
if (teller.getLastOpenedBy() != null) {
tellerEntity.setLastOpenedBy(teller.getLastOpenedBy());
tellerEntity.setLastOpenedOn(DateConverter.fromIsoString(teller.getLastOpenedOn()));
}
return tellerEntity;
}