001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.ar.document.service;
017    
018    import java.util.Collection;
019    
020    import org.kuali.kfs.module.ar.document.CustomerCreditMemoDocument;
021    
022    public interface CustomerCreditMemoDocumentService {
023        
024        /**
025         * 
026         * Completes the work that needs to be done once a CreditMemo is fully approved, 
027         * such as generating invoicepaidapplieds, and closing the invoice if appropriate.
028         * 
029         * @param creditMemo
030         */
031        public void completeCustomerCreditMemo(CustomerCreditMemoDocument creditMemo);
032        
033        /**
034         * This method recalculates customer credit memo document based on the user input
035         * @return
036         */
037        public void recalculateCustomerCreditMemoDocument(CustomerCreditMemoDocument customerCreditMemoDocument, boolean blanketApproveDocumentEventFlag);
038    
039        
040        public Collection<CustomerCreditMemoDocument> getCustomerCreditMemoDocumentByInvoiceDocument(String customerInvoiceDocumentNumber);
041    
042        /**
043         * This method checks if there is no data to submit
044         * @return
045         */
046        public boolean isThereNoDataToSubmit(CustomerCreditMemoDocument customerCreditMemoDocument);
047    
048    }