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.vnd.businessobject;
018
019 import java.math.BigDecimal;
020 import java.util.LinkedHashMap;
021
022 import org.kuali.rice.kns.bo.Inactivateable;
023 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024
025 /**
026 * Arbitrary categories per Vendor Contract for the purpose of tracking various kinds of costs that may be incurred by Purchase
027 * Orders which use the Vendors which have these Contracts.
028 *
029 * @see org.kuali.kfs.vnd.businessobject.VendorContract
030 */
031 public class PurchaseOrderCostSource extends PersistableBusinessObjectBase implements Inactivateable{
032
033 private String purchaseOrderCostSourceCode;
034 private String purchaseOrderCostSourceDescription;
035 private BigDecimal itemUnitPriceUpperVariancePercent;
036 private BigDecimal itemUnitPriceLowerVariancePercent;
037 private boolean active;
038
039 /**
040 * Default constructor.
041 */
042 public PurchaseOrderCostSource() {
043
044 }
045
046 public String getPurchaseOrderCostSourceCode() {
047
048 return purchaseOrderCostSourceCode;
049 }
050
051 public void setPurchaseOrderCostSourceCode(String purchaseOrderCostSourceCode) {
052 this.purchaseOrderCostSourceCode = purchaseOrderCostSourceCode;
053 }
054
055 public String getPurchaseOrderCostSourceDescription() {
056
057 return purchaseOrderCostSourceDescription;
058 }
059
060 public void setPurchaseOrderCostSourceDescription(String purchaseOrderCostSourceDescription) {
061 this.purchaseOrderCostSourceDescription = purchaseOrderCostSourceDescription;
062 }
063
064 public boolean isActive() {
065
066 return active;
067 }
068
069 public void setActive(boolean active) {
070 this.active = active;
071 }
072
073 /**
074 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
075 */
076 protected LinkedHashMap toStringMapper() {
077 LinkedHashMap m = new LinkedHashMap();
078 m.put("purchaseOrderCostSourceCode", this.purchaseOrderCostSourceCode);
079
080 return m;
081 }
082
083 public BigDecimal getItemUnitPriceLowerVariancePercent() {
084 return itemUnitPriceLowerVariancePercent;
085 }
086
087 public void setItemUnitPriceLowerVariancePercent(BigDecimal itemUnitPriceLowerVariancePercent) {
088 this.itemUnitPriceLowerVariancePercent = itemUnitPriceLowerVariancePercent;
089 }
090
091 public BigDecimal getItemUnitPriceUpperVariancePercent() {
092 return itemUnitPriceUpperVariancePercent;
093 }
094
095 public void setItemUnitPriceUpperVariancePercent(BigDecimal itemUnitPriceUpperVariancePercent) {
096 this.itemUnitPriceUpperVariancePercent = itemUnitPriceUpperVariancePercent;
097 }
098 }