View Javadoc
1   /*
2    * Copyright 2006 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  
17  package org.kuali.ole.module.purap.businessobject;
18  
19  import org.kuali.ole.module.purap.document.RequisitionDocument;
20  
21  /**
22   * Requisition Item Business Object.
23   */
24  public class RequisitionItem extends PurchasingItemBase {
25  
26      private boolean itemRestrictedIndicator;
27      private String holdSupplierId; //not persisted
28  
29      /**
30       * Default constructor.
31       */
32      public RequisitionItem() {
33      }
34  
35      public boolean isItemRestrictedIndicator() {
36          return itemRestrictedIndicator;
37      }
38  
39      public void setItemRestrictedIndicator(boolean itemRestrictedIndicator) {
40          this.itemRestrictedIndicator = itemRestrictedIndicator;
41      }
42  
43      public String getHoldSupplierId() {
44          return holdSupplierId;
45      }
46  
47      public void setHoldSupplierId(String holdSupplierId) {
48          this.holdSupplierId = holdSupplierId;
49      }
50  
51  
52      public RequisitionDocument getRequisition() {
53          return super.getPurapDocument();
54      }
55  
56      public void setRequisition(RequisitionDocument requisition) {
57          setPurapDocument(requisition);
58      }
59  
60  
61      /**
62       * @see org.kuali.ole.module.purap.businessobject.PurchasingItemBase#getAccountingLineClass()
63       */
64      @Override
65      public Class getAccountingLineClass() {
66          return RequisitionAccount.class;
67      }
68  
69      @Override
70      public Class getUseTaxClass() {
71          return PurchaseRequisitionItemUseTax.class;
72      }
73  
74  }