Search in sources :

Example 1 with PaymentApplicationAdjustmentDocument

use of org.kuali.kfs.module.ar.document.PaymentApplicationAdjustmentDocument in project cu-kfs by CU-CommunityApps.

the class PaymentApplicationAction method adjust.

public ActionForward adjust(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    // Document could be stale at this point (Submit followed immediately by Adjust); freshen it up
    super.reload(mapping, form, request, response);
    final KualiDocumentFormBase kualiDocumentFormBase = (KualiDocumentFormBase) form;
    final PaymentApplicationDocument applicationDocument = (PaymentApplicationDocument) kualiDocumentFormBase.getDocument();
    final PaymentApplicationAdjustmentDocument appAdjustDocument = getPaymentApplicationDocumentService().createPaymentApplicationAdjustment(applicationDocument);
    kualiDocumentFormBase.setDocument(appAdjustDocument);
    return createActionForward((KualiDocumentFormBase) form);
}
Also used : KualiDocumentFormBase(org.kuali.kfs.kns.web.struts.form.KualiDocumentFormBase) PaymentApplicationAdjustmentDocument(org.kuali.kfs.module.ar.document.PaymentApplicationAdjustmentDocument) PaymentApplicationDocument(org.kuali.kfs.module.ar.document.PaymentApplicationDocument)

Aggregations

KualiDocumentFormBase (org.kuali.kfs.kns.web.struts.form.KualiDocumentFormBase)1 PaymentApplicationAdjustmentDocument (org.kuali.kfs.module.ar.document.PaymentApplicationAdjustmentDocument)1 PaymentApplicationDocument (org.kuali.kfs.module.ar.document.PaymentApplicationDocument)1