Search in sources :

Example 1 with DisbursementVoucherTaxService

use of org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService in project cu-kfs by CU-CommunityApps.

the class DisbursementVoucherAction method generateNonResidentAlienTaxLines.

/**
 * Calls service to generate tax accounting lines and updates nra tax line string in action form.
 */
public ActionForward generateNonResidentAlienTaxLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    DisbursementVoucherForm dvForm = (DisbursementVoucherForm) form;
    DisbursementVoucherDocument document = (DisbursementVoucherDocument) dvForm.getDocument();
    DisbursementVoucherTaxService taxService = SpringContext.getBean(DisbursementVoucherTaxService.class);
    /* call service to generate new tax lines */
    GlobalVariables.getMessageMap().addToErrorPath("document");
    taxService.processNonResidentAlienTax(document);
    GlobalVariables.getMessageMap().removeFromErrorPath("document");
    return mapping.findForward(KFSConstants.MAPPING_BASIC);
}
Also used : DisbursementVoucherTaxService(org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService) DisbursementVoucherDocument(org.kuali.kfs.fp.document.DisbursementVoucherDocument)

Example 2 with DisbursementVoucherTaxService

use of org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService in project cu-kfs by CU-CommunityApps.

the class DisbursementVoucherAction method clearNonResidentAlienTaxLines.

/**
 * Calls service to clear tax accounting lines and updates nra tax line string in action form.
 */
public ActionForward clearNonResidentAlienTaxLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    DisbursementVoucherForm dvForm = (DisbursementVoucherForm) form;
    DisbursementVoucherDocument document = (DisbursementVoucherDocument) dvForm.getDocument();
    DisbursementVoucherTaxService taxService = SpringContext.getBean(DisbursementVoucherTaxService.class);
    /* call service to clear previous lines */
    taxService.clearNRATaxLines(document);
    return mapping.findForward(KFSConstants.MAPPING_BASIC);
}
Also used : DisbursementVoucherTaxService(org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService) DisbursementVoucherDocument(org.kuali.kfs.fp.document.DisbursementVoucherDocument)

Example 3 with DisbursementVoucherTaxService

use of org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService in project cu-kfs by CU-CommunityApps.

the class DisbursementVoucherAction method clearNonResidentAlienTaxInfo.

/**
 * Calls service to clear tax info.
 */
public ActionForward clearNonResidentAlienTaxInfo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    DisbursementVoucherForm dvForm = (DisbursementVoucherForm) form;
    DisbursementVoucherDocument document = (DisbursementVoucherDocument) dvForm.getDocument();
    DisbursementVoucherTaxService taxService = SpringContext.getBean(DisbursementVoucherTaxService.class);
    /* call service to clear previous lines */
    taxService.clearNRATaxInfo(document);
    return mapping.findForward(KFSConstants.MAPPING_BASIC);
}
Also used : DisbursementVoucherTaxService(org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService) DisbursementVoucherDocument(org.kuali.kfs.fp.document.DisbursementVoucherDocument)

Aggregations

DisbursementVoucherDocument (org.kuali.kfs.fp.document.DisbursementVoucherDocument)3 DisbursementVoucherTaxService (org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService)3