/*
 * Copyright 2005-2007 The Kuali Foundation.
 * 
 * Licensed under the Educational Community License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.module.labor.web.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.kuali.kfs.KFSConstants;
import org.kuali.module.labor.LaborConstants;

/**
 * This class piggy backs on all of the functionality in the KualiTransactionalDocumentActionBase but is necessary for this document
 * type. The Journal Voucher is unique in that it defines several fields that aren't typically used by the other financial
 * transaction processing eDocs (i.e. external system fields, object type override, credit and debit amounts).
 */
public class JournalVoucherAction extends org.kuali.module.financial.web.struts.action.JournalVoucherAction {
    
    /**
     * @see org.kuali.core.web.struts.action.KualiAction#performLookup(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    public ActionForward performLookup(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        String path = super.performLookup(mapping, form, request, response).getPath();
        path = path.replaceFirst(KFSConstants.LOOKUP_ACTION, LaborConstants.LONG_ROW_TABLE_INRUIRY_ACTION);
        return new ActionForward(path, true);
    }
}

@@ -763,16 +763,60 @@
 ponse;%0A%0A
+import org.apache.commons.lang.StringUtils;%0A
 import o
@@ -945,16 +945,48 @@
 apping;%0A
+import org.kuali.RiceConstants;%0A
 import o
@@ -1057,16 +1057,74 @@
 nstants;
+%0Aimport org.kuali.module.labor.bo.LaborLedgerPendingEntry;
 %0A%0A/**%0A *
@@ -1602,20 +1602,16 @@
 ction %7B%0A
-    
 %0A    /**
@@ -1721,16 +1721,28 @@
 Mapping,
+%0A     *     
  org.apa
@@ -2028,16 +2028,539 @@
 ption %7B%0A
+%0A        // parse out the business object name from our methodToCall parameter%0A        String fullParameter = (String) request.getAttribute(RiceConstants.METHOD_TO_CALL_ATTRIBUTE);%0A        String boClassName = StringUtils.substringBetween(fullParameter, RiceConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL, RiceConstants.METHOD_TO_CALL_BOPARM_RIGHT_DEL);%0A%0A        if (!StringUtils.equals(boClassName, LaborLedgerPendingEntry.class.getName())) %7B%0A            return super.performLookup(mapping, form, request, response);%0A        %7D%0A%0A
         

Backup the fix related to JIRA issue, KULLAB-341: Labor Distribution Journal Voucher, lookup results for accounting lines don't have "return value"