use of org.kuali.kfs.sys.batch.service.PaymentSourceExtractionService in project cu-kfs by CU-CommunityApps.
the class DisbursementVoucherAction method extractNow.
/**
* Extracts the DV as immediate payment upon user's request after it routes to FINAL.
*/
public ActionForward extractNow(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
DisbursementVoucherForm dvForm = (DisbursementVoucherForm) form;
DisbursementVoucherDocument dvDocument = (DisbursementVoucherDocument) dvForm.getDocument();
PaymentSourceExtractionService disbursementVoucherExtractService = DisbursementVoucherDocument.getDisbursementVoucherExtractService();
dvDocument.setImmediatePaymentIndicator(true);
disbursementVoucherExtractService.extractSingleImmediatePayment(dvDocument);
return mapping.findForward(KFSConstants.MAPPING_BASIC);
}
Aggregations