1 /* 2 * Copyright 2009 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.fp.document.validation; 17 18 import org.kuali.ole.fp.businessobject.CashDrawer; 19 import org.kuali.ole.fp.businessobject.CashieringTransaction; 20 21 /** 22 * Callbacks for rules that the Cash Management document checks 23 */ 24 public interface CashManagingRule { 25 26 /** 27 * Validates a cashiering transaction before it is added to a document 28 * @param cashDrawer the cash drawer the transaction will be applied to 29 * @param cashieringTransaction the cashering transaction which may be applied 30 * @return true if the transaction would be valid, false otherwise 31 */ 32 public abstract boolean processCashieringTransactionApplication(CashDrawer cashDrawer, CashieringTransaction cashieringTransaction); 33 }