<commit_before><%--
 Copyright 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.
--%>
<%@ include file="/jsp/kfs/kfsTldHeader.jsp"%>

<kul:documentPage showDocumentInfo="true" documentTypeName="CreditMemoDocument" htmlFormAction="purapCreditMemo" renderMultipart="true" showTabButtons="true">

    <c:if test="${!empty KualiForm.editingMode['fullEntry']}">
        <c:set var="fullEntryMode" value="true" scope="request" />
    </c:if>
 
    <c:set var="displayInitTab" value="${KualiForm.editingMode['displayInitTab']}" scope="request" />
    
    <!-- setting the variable to force the Posting Year in doucment overview tag to be read only -->
    <c:set var="aPDocument" value="true" scope="request" /> 

    <kul:hiddenDocumentFields excludePostingYear="true" />
	
	<purap:hiddenPurapFields includeNonAPFields="false" />
    <html:hidden property="document.accountsPayableProcessorIdentifier" />
    <html:hidden property="document.processingCampusCode" />
    <html:hidden property="calculated" />
	<html:hidden property="document.unmatchedOverride" />
	    
    <c:if test="${displayInitTab}" > 
    	<purap:creditMemoInit documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" /> 
    	
    	<kul:panelFooter />
    
	    <div align="right"><br><bean:message key="message.creditMemo.initMessage" /></div><br>
	</c:if>
	
	<c:if test="${not displayInitTab}" >
		<!--  Display hold message if payment is on hold -->
	    <c:if test="${KualiForm.document.holdIndicator}">	
		  <h3>This Credit Memo has been Held by <c:out value="${KualiForm.document.lastActionPerformedByPersonName}"/></h3>		
	    </c:if>
	    
		<kul:documentOverview editingMode="${KualiForm.editingMode}" includePostingYear="true" postingYearAttributes="${DataDictionary.CreditMemoDocument.attributes}" />
	        
		<purap:vendor documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" displayPurchaseOrderFields="false" displayCreditMemoFields="true"/>
	
		<purap:creditMemoInfo documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" />        
	   
	  	<purap:paymentRequestProcessItems 
			documentAttributes="${DataDictionary.CreditMemoDocument.attributes}"
			itemAttributes="${DataDictionary.CreditMemoItem.attributes}"
			accountingLineAttributes="${DataDictionary.CreditMemoAccount.attributes}" isCreditMemo="true" />
	  
	    <kul:notes notesBo="${KualiForm.document.documentBusinessObject.boNotes}" noteType="${Constants.NoteTypeEnum.BUSINESS_OBJECT_NOTE_TYPE}" allowsNoteFYI="true"/> 
	
	    <kul:adHocRecipients />
	
	    <kul:routeLog />
	
    <!-- TEMPORARILY DISABLING ACCOUNT SUMMARY FUNCTIONALITY -->
	    <!--  purap:accountsummary
            itemAttributes="${DataDictionary.CreditMemoItem.attributes}"
    	    documentAttributes="${DataDictionary.SourceAccountingLine.attributes}" / -->  
    	    	
		<purap:relatedDocuments documentAttributes="${DataDictionary.RelatedDocuments.attributes}"/>
           	
	    <purap:paymentHistory documentAttributes="${DataDictionary.RelatedDocuments.attributes}" />
        
        <kul:panelFooter />
	</c:if>
	
	<c:set var="extraButtons" value="${KualiForm.extraButtons}" scope="request"/>
	
  	<kul:documentControls transactionalDocument="true" extraButtons="${extraButtons}" suppressRoutingControls="${displayInitTab}" />
   
</kul:documentPage><commit_msg>added pending enties and status history<commit_after><%--
 Copyright 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.
--%>
<%@ include file="/jsp/kfs/kfsTldHeader.jsp"%>

<kul:documentPage showDocumentInfo="true" documentTypeName="CreditMemoDocument" htmlFormAction="purapCreditMemo" renderMultipart="true" showTabButtons="true">

    <c:if test="${!empty KualiForm.editingMode['fullEntry']}">
        <c:set var="fullEntryMode" value="true" scope="request" />
    </c:if>
 
    <c:set var="displayInitTab" value="${KualiForm.editingMode['displayInitTab']}" scope="request" />
    
    <!-- setting the variable to force the Posting Year in doucment overview tag to be read only -->
    <c:set var="aPDocument" value="true" scope="request" /> 

    <kul:hiddenDocumentFields excludePostingYear="true" />
	
	<purap:hiddenPurapFields includeNonAPFields="false" />
    <html:hidden property="document.accountsPayableProcessorIdentifier" />
    <html:hidden property="document.processingCampusCode" />
    <html:hidden property="calculated" />
	<html:hidden property="document.unmatchedOverride" />
	    
    <c:if test="${displayInitTab}" > 
    	<purap:creditMemoInit documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" /> 
    	
    	<kul:panelFooter />
    
	    <div align="right"><br><bean:message key="message.creditMemo.initMessage" /></div><br>
	</c:if>
	
	<c:if test="${not displayInitTab}" >
		<!--  Display hold message if payment is on hold -->
	    <c:if test="${KualiForm.document.holdIndicator}">	
		  <h3>This Credit Memo has been Held by <c:out value="${KualiForm.document.lastActionPerformedByPersonName}"/></h3>		
	    </c:if>
	    
		<kul:documentOverview editingMode="${KualiForm.editingMode}" includePostingYear="true" postingYearAttributes="${DataDictionary.CreditMemoDocument.attributes}" />
	        
		<purap:vendor documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" displayPurchaseOrderFields="false" displayCreditMemoFields="true"/>
	
		<purap:creditMemoInfo documentAttributes="${DataDictionary.CreditMemoDocument.attributes}" />        

	  	<purap:paymentRequestProcessItems 
			documentAttributes="${DataDictionary.CreditMemoDocument.attributes}"
			itemAttributes="${DataDictionary.CreditMemoItem.attributes}"
			accountingLineAttributes="${DataDictionary.CreditMemoAccount.attributes}" isCreditMemo="true" />
	  
	    <kul:notes notesBo="${KualiForm.document.documentBusinessObject.boNotes}" noteType="${Constants.NoteTypeEnum.BUSINESS_OBJECT_NOTE_TYPE}" allowsNoteFYI="true"/> 
	
	    <kul:adHocRecipients />
	
	    <kul:routeLog />
	
	    <gl:generalLedgerPendingEntries />

    <!-- TEMPORARILY DISABLING ACCOUNT SUMMARY FUNCTIONALITY -->
	    <!--  purap:accountsummary
            itemAttributes="${DataDictionary.CreditMemoItem.attributes}"
    	    documentAttributes="${DataDictionary.SourceAccountingLine.attributes}" / -->  
    	    	
		<purap:relatedDocuments documentAttributes="${DataDictionary.RelatedDocuments.attributes}"/>
           	
	    <purap:paymentHistory documentAttributes="${DataDictionary.RelatedDocuments.attributes}" />
        

	    <purap:statushistory 
	        documentAttributes="${DataDictionary.CreditMemoStatusHistory.attributes}">
	          <html:messages id="warnings" property="statusHistoryWarning" message="true">
	            &nbsp;&nbsp;&nbsp;<bean:write name="warnings"/><br><br>
	          </html:messages>       
	    </purap:statushistory>
	
        <kul:panelFooter />
	</c:if>
	
	<c:set var="extraButtons" value="${KualiForm.extraButtons}" scope="request"/>
	
  	<kul:documentControls transactionalDocument="true" extraButtons="${extraButtons}" suppressRoutingControls="${displayInitTab}" />
   
</kul:documentPage>
{'fraction_non_alphanumeric': 0.12944505967761782, 'fraction_numerical': 0.0022148394241417496, 'mean_word_length': 4.74416961130742, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3775', 'n_tokens_mistral': 2445, 'n_tokens_neox': 2248, 'n_words': 443}