Search in sources :

Example 1 with PaymentSourceExtractionService

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);
}
Also used : PaymentSourceExtractionService(org.kuali.kfs.sys.batch.service.PaymentSourceExtractionService) DisbursementVoucherDocument(org.kuali.kfs.fp.document.DisbursementVoucherDocument)

Aggregations

DisbursementVoucherDocument (org.kuali.kfs.fp.document.DisbursementVoucherDocument)1 PaymentSourceExtractionService (org.kuali.kfs.sys.batch.service.PaymentSourceExtractionService)1