Search in sources :

Example 1 with FeeDetailsForPreviewDto

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

the class FeeAction method preview.

@TransactionDemarcate(joinToken = true)
public ActionForward preview(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    FeeActionForm feeActionForm = (FeeActionForm) form;
    Short currencyId = feeActionForm.getCurrencyId();
    FeeDetailsForPreviewDto feeDetailsForPreview = this.feeServiceFacade.retrieveDetailsforFeePreview(currencyId);
    SessionUtils.setAttribute("isMultiCurrencyEnabled", feeDetailsForPreview.isMultiCurrencyEnabled(), request);
    if (feeDetailsForPreview.isMultiCurrencyEnabled()) {
        request.getSession().setAttribute("currencyCode", feeDetailsForPreview.getCurrencyCode());
    }
    return mapping.findForward(ActionForwards.preview_success.toString());
}
Also used : FeeActionForm(org.mifos.accounts.fees.struts.actionforms.FeeActionForm) FeeDetailsForPreviewDto(org.mifos.dto.screen.FeeDetailsForPreviewDto) TransactionDemarcate(org.mifos.framework.util.helpers.TransactionDemarcate)

Aggregations

FeeActionForm (org.mifos.accounts.fees.struts.actionforms.FeeActionForm)1 FeeDetailsForPreviewDto (org.mifos.dto.screen.FeeDetailsForPreviewDto)1 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)1