01: /*
02: * Copyright 2006 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.gl.service;
17:
18: import org.kuali.module.chart.bo.Account;
19: import org.kuali.module.chart.bo.ObjectCode;
20: import org.kuali.module.chart.bo.ObjectType;
21:
22: /**
23: * An interface with a predicate that tells if a transaction with the given fields would be an ICR transaction or not
24: */
25: public interface IcrTransaction {
26: /**
27: * Determines if a transaction with the given parameters would be subject to indirect cost recovery
28: *
29: * @param objectType the object type of the transaction
30: * @param account the account of the transaction
31: * @param subAccountNumber the sub account number of the transaction
32: * @param objectCode the financial object code of the transaction
33: * @param universityFiscalPeriodCode the period code of the transactions
34: * @return true if these all mean the transaction is an indirect cost recovery transaction, false otherwise
35: */
36: public boolean isIcrTransaction(ObjectType objectType,
37: Account account, String subAccountNumber,
38: ObjectCode objectCode, String universityFiscalPeriodCode);
39: }
|