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