Package org.fenixedu.academic.dto.accounting

Examples of org.fenixedu.academic.dto.accounting.CreateCreditNoteBean


    }

    public ActionForward prepareCreateCreditNote(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        request.setAttribute("createCreditNoteBean", new CreateCreditNoteBean(getReceiptFromViewState("receipt")));

        return mapping.findForward("create");

    }
View Full Code Here


    }

    public ActionForward createCreditNote(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final CreateCreditNoteBean createCreditNoteBean =
                (CreateCreditNoteBean) RenderUtils.getViewState("create-credit-note").getMetaObject().getObject();

        try {
            CreateCreditNote.run(getUserView(request).getPerson(), createCreditNoteBean);

        } catch (DomainExceptionWithLabelFormatter ex) {
            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            request.setAttribute("createCreditNoteBean", createCreditNoteBean);
            return mapping.findForward("create");

        } catch (DomainException ex) {
            addActionMessage(request, ex.getKey());
            request.setAttribute("createCreditNoteBean", createCreditNoteBean);
            return mapping.findForward("create");

        }

        request.setAttribute("receipt", createCreditNoteBean.getReceipt());

        return mapping.findForward("list");

    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.accounting.CreateCreditNoteBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.