1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.gl.batch.service;
17
18 import org.kuali.ole.gl.businessobject.Transaction;
19 import org.kuali.ole.sys.service.ReportWriterService;
20
21 /**
22 * An interface with a predicate that tells if a transaction with the given fields would be an ICR transaction or not
23 */
24 public interface IndirectCostRecoveryService {
25 /**
26 * This will determine if this transaction is an ICR eligible transaction
27 *
28 * @param transaction the transaction which is being determined to be ICR or not
29 * @param objectType the object type of the transaction
30 * @param account the account of the transaction
31 * @param objectCode the object code of the transaction
32 * @return true if the transaction is an ICR transaction and therefore should have an expenditure transaction created for it; false if otherwise
33 */
34 public abstract boolean isIcrTransaction(Transaction transaction, ReportWriterService reportWriterService);
35 }