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
017 package org.kuali.kfs.module.purap.businessobject;
018
019 import org.kuali.kfs.module.purap.document.RequisitionDocument;
020 import org.kuali.rice.kns.util.KualiDecimal;
021
022 /**
023 * Requisition Item Business Object.
024 */
025 public class RequisitionItem extends PurchasingItemBase {
026
027 private boolean itemRestrictedIndicator;
028 private String holdSupplierId; //not persisted
029
030 /**
031 * Default constructor.
032 */
033 public RequisitionItem() {
034 }
035
036 public boolean isItemRestrictedIndicator() {
037 return itemRestrictedIndicator;
038 }
039
040 public void setItemRestrictedIndicator(boolean itemRestrictedIndicator) {
041 this.itemRestrictedIndicator = itemRestrictedIndicator;
042 }
043
044 public String getHoldSupplierId() {
045 return holdSupplierId;
046 }
047
048 public void setHoldSupplierId(String holdSupplierId) {
049 this.holdSupplierId = holdSupplierId;
050 }
051
052 public RequisitionDocument getRequisition() {
053 return super.getPurapDocument();
054 }
055
056 public void setRequisition(RequisitionDocument requisition) {
057 setPurapDocument(requisition);
058 }
059
060
061
062 /**
063 * @see org.kuali.kfs.module.purap.businessobject.PurchasingItemBase#getAccountingLineClass()
064 */
065 @Override
066 public Class getAccountingLineClass() {
067 return RequisitionAccount.class;
068 }
069
070 @Override
071 public Class getUseTaxClass() {
072 return PurchaseRequisitionItemUseTax.class;
073 }
074
075 }