Search in sources :

Example 6 with SavingsProductReferenceDto

use of org.mifos.dto.screen.SavingsProductReferenceDto in project head by mifos.

the class CreateSavingsAccountController method loadProduct.

public void loadProduct(Integer productId, CreateSavingsAccountFormBean formBean) {
    SavingsProductReferenceDto product = savingsServiceFacade.retrieveSavingsProductReferenceData(productId);
    formBean.setProductId(productId);
    formBean.setProduct(product);
    formBean.setMandatoryDepositAmount(product.getSavingsProductDetails().getAmountForDeposit().toString());
    formBean.setSavingsTypes(getSavingsTypes());
    formBean.setRecurrenceTypes(getRecurrenceTypes());
    formBean.setRecurrenceFrequencies(getRecurrenceFrequencies());
}
Also used : SavingsProductReferenceDto(org.mifos.dto.screen.SavingsProductReferenceDto)

Aggregations

SavingsProductReferenceDto (org.mifos.dto.screen.SavingsProductReferenceDto)6 ArrayList (java.util.ArrayList)3 SavingsProductDto (org.mifos.dto.domain.SavingsProductDto)3 InterestCalcTypeEntity (org.mifos.accounts.productdefinition.business.InterestCalcTypeEntity)2 SavingsOfferingBO (org.mifos.accounts.productdefinition.business.SavingsOfferingBO)2 ListElement (org.mifos.dto.screen.ListElement)2 BigDecimal (java.math.BigDecimal)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Test (org.junit.Test)1 RecommendedAmntUnitEntity (org.mifos.accounts.productdefinition.business.RecommendedAmntUnitEntity)1 SavingsTypeEntity (org.mifos.accounts.productdefinition.business.SavingsTypeEntity)1 SavingsActionForm (org.mifos.accounts.savings.struts.actionforms.SavingsActionForm)1 CustomFieldDefinitionEntity (org.mifos.application.master.business.CustomFieldDefinitionEntity)1 CustomFieldDto (org.mifos.dto.domain.CustomFieldDto)1 ProductDetailsDto (org.mifos.dto.domain.ProductDetailsDto)1 SavingsAccountCreationDto (org.mifos.dto.domain.SavingsAccountCreationDto)1 SavingsAccountDetailDto (org.mifos.dto.domain.SavingsAccountDetailDto)1 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)1 UserContext (org.mifos.security.util.UserContext)1