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