use of org.mifos.config.cache.Key in project head by mifos.
the class ConfigurationInitializer method setFiscalStartOfWeek.
private void setFiscalStartOfWeek(Map<Key, Object> officeConfigMap) throws SystemException, ApplicationException {
Short id = new FiscalCalendarRules().getStartOfWeek();
officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.FISCAL_START_OF_WEEK), id);
}
use of org.mifos.config.cache.Key in project head by mifos.
the class ConfigurationInitializer method setLateNessAndDormancyDaysForAccount.
private void setLateNessAndDormancyDaysForAccount(Map<Key, Object> officeConfigMap) throws SystemException, ApplicationException {
Short latenessDays = new LoanPrdPersistence().retrieveLatenessForPrd();
Short dormancyDays = ApplicationContextProvider.getBean(SavingsProductDao.class).findSavingsProductConfiguration().getDormancyDays();
officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.LATENESS_DAYS), latenessDays);
officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.DORMANCY_DAYS), dormancyDays);
}
Aggregations