use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class ViewOrganizationSettingsServiceFacadeWebTier method getConfigurationContent.
private Properties getConfigurationContent() {
Properties configContent = new Properties();
MifosConfigurationManager configuration = MifosConfigurationManager.getInstance();
String branchMangerRoleName = configuration.getString("RolesAndPermissions.BranchManager.RoleName");
configContent.put("branchManagerRoleName", branchMangerRoleName);
return configContent;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class ViewOrganizationSettingsServiceFacadeWebTier method getMpesa.
private Properties getMpesa() {
Properties configContent = new Properties();
MifosConfigurationManager configuration = MifosConfigurationManager.getInstance();
String disbursalMax = configuration.getString("MPESA.DisbursalMax");
configContent.put("disbursalMax", disbursalMax);
return configContent;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class AccountingRules method getInitialRoundOffMultiple.
public static BigDecimal getInitialRoundOffMultiple() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
String modeStr = configMgr.getString(AccountingRulesConstants.INITIAL_ROUND_OFF_MULTIPLE);
return getRoundOffMultipleFromString(modeStr, DEFAULT_INITIAL_ROUNDOFF_MULTIPLE);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class AccountingRules method getInitialRoundingMode.
public static RoundingMode getInitialRoundingMode() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
String modeStr = configMgr.getString(AccountingRulesConstants.INITIAL_ROUNDING_MODE);
return getRoundingModeFromString(modeStr, "InitialRoundingMode", DEFAULT_INITIAL_ROUNDING_MODE);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class AccountingRules method getFinalRoundingMode.
public static RoundingMode getFinalRoundingMode() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
String modeStr = configMgr.getString(AccountingRulesConstants.FINAL_ROUNDING_MODE);
return getRoundingModeFromString(modeStr, "FinalRoundingMode", DEFAULT_FINAL_ROUNDING_MODE);
}
Aggregations