View Javadoc

1   /*
2    * Copyright 2007 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.vnd.businessobject;
18  
19  import java.math.BigDecimal;
20  import java.util.LinkedHashMap;
21  
22  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * Arbitrary categories per Vendor Contract for the purpose of tracking various kinds of costs that may be incurred by Purchase
27   * Orders which use the Vendors which have these Contracts.
28   * 
29   * @see org.kuali.ole.vnd.businessobject.VendorContract
30   */
31  public class PurchaseOrderCostSource extends PersistableBusinessObjectBase implements MutableInactivatable {
32  
33      private String purchaseOrderCostSourceCode;
34      private String purchaseOrderCostSourceDescription;
35      private BigDecimal itemUnitPriceUpperVariancePercent;
36      private BigDecimal itemUnitPriceLowerVariancePercent;
37      private boolean active;
38  
39      /**
40       * Default constructor.
41       */
42      public PurchaseOrderCostSource() {
43  
44      }
45  
46      public String getPurchaseOrderCostSourceCode() {
47  
48          return purchaseOrderCostSourceCode;
49      }
50  
51      public void setPurchaseOrderCostSourceCode(String purchaseOrderCostSourceCode) {
52          this.purchaseOrderCostSourceCode = purchaseOrderCostSourceCode;
53      }
54  
55      public String getPurchaseOrderCostSourceDescription() {
56  
57          return purchaseOrderCostSourceDescription;
58      }
59  
60      public void setPurchaseOrderCostSourceDescription(String purchaseOrderCostSourceDescription) {
61          this.purchaseOrderCostSourceDescription = purchaseOrderCostSourceDescription;
62      }
63  
64      public boolean isActive() {
65  
66          return active;
67      }
68  
69      public void setActive(boolean active) {
70          this.active = active;
71      }
72  
73      /**
74       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
75       */
76      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
77          LinkedHashMap m = new LinkedHashMap();
78          m.put("purchaseOrderCostSourceCode", this.purchaseOrderCostSourceCode);
79  
80          return m;
81      }
82  
83      public BigDecimal getItemUnitPriceLowerVariancePercent() {
84          return itemUnitPriceLowerVariancePercent;
85      }
86  
87     public void setItemUnitPriceLowerVariancePercent(BigDecimal itemUnitPriceLowerVariancePercent) {
88          this.itemUnitPriceLowerVariancePercent = itemUnitPriceLowerVariancePercent;
89      }
90  
91      public BigDecimal getItemUnitPriceUpperVariancePercent() {
92          return itemUnitPriceUpperVariancePercent;
93      }
94  
95      public void setItemUnitPriceUpperVariancePercent(BigDecimal itemUnitPriceUpperVariancePercent) {
96          this.itemUnitPriceUpperVariancePercent = itemUnitPriceUpperVariancePercent;
97      }
98  }