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());
}
Aggregations