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.purap.service.impl; 017 018 import org.kuali.kfs.coa.businessobject.Account; 019 import org.kuali.kfs.coa.businessobject.ObjectCode; 020 import org.kuali.kfs.coa.businessobject.SubObjectCode; 021 import org.kuali.kfs.coa.service.ObjectCodeService; 022 import org.kuali.kfs.coa.service.SubObjectCodeService; 023 import org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument; 024 import org.kuali.kfs.module.purap.service.PurapAccountingLineRuleHelperService; 025 import org.kuali.kfs.sys.KFSKeyConstants; 026 import org.kuali.kfs.sys.businessobject.AccountingLine; 027 import org.kuali.kfs.sys.context.SpringContext; 028 import org.kuali.kfs.sys.document.service.impl.AccountingLineRuleHelperServiceImpl; 029 import org.kuali.rice.kns.datadictionary.DataDictionary; 030 import org.kuali.rice.kns.util.GlobalVariables; 031 import org.kuali.rice.kns.util.ObjectUtils; 032 033 public class PurapAccountingLineRuleHelperServiceImpl extends AccountingLineRuleHelperServiceImpl implements PurapAccountingLineRuleHelperService{ 034 private PurchasingAccountsPayableDocument document; 035 036 public PurchasingAccountsPayableDocument getDocument() { 037 return document; 038 } 039 040 public void setDocument(PurchasingAccountsPayableDocument document) { 041 this.document = document; 042 } 043 044 /** 045 * @see org.kuali.kfs.sys.document.service.impl.AccountingLineRuleHelperServiceImpl#hasRequiredOverrides(org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String) 046 * in purap implementation this does nothing since it is handled in our rule classes 047 */ 048 @Override 049 public boolean hasRequiredOverrides(AccountingLine line, String overrideCode) { 050 return true; 051 } 052 }