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.businessobject;
017    
018    import org.kuali.kfs.sys.businessobject.SourceAccountingLine;
019    import org.kuali.rice.kns.util.KualiDecimal;
020    
021    /**
022     * Purap Summary Item Business Object.
023     */
024    public class PurApSummaryItem extends PurApItemBase {
025    
026        private KualiDecimal estimatedEncumberanceAmount;   
027    
028        public PurApSummaryItem() {
029            this(KualiDecimal.ZERO);
030        }
031    
032        public PurApSummaryItem(KualiDecimal estimatedEncumberanceAmount) {
033            this.estimatedEncumberanceAmount = estimatedEncumberanceAmount;
034        }
035    
036        public KualiDecimal getEstimatedEncumberanceAmount() {
037            return estimatedEncumberanceAmount;
038        }
039    
040        public void setEstimatedEncumberanceAmount(KualiDecimal estimatedEncumberanceAmount) {
041            this.estimatedEncumberanceAmount = estimatedEncumberanceAmount;
042        }
043    
044        /**
045         * @see org.kuali.kfs.module.purap.businessobject.PurApItem#getAccountingLineClass()
046         */
047        public Class getAccountingLineClass() {
048            return SourceAccountingLine.class;
049        }
050    
051        public Class getUseTaxClass() {
052            return SummaryItemUseTax.class;
053        }
054        
055        /**
056         * @see org.kuali.kfs.module.purap.businessobject.PurApItem#isConsideredEntered()
057         */
058        public boolean isConsideredEntered() {
059            return false;
060        }
061    
062        /**
063         * @see org.kuali.kfs.module.purap.businessobject.PurApItemBase#resetAccount()
064         */
065        @Override
066        public void resetAccount() {
067            // do nothing
068        }
069    }