001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.vendor.bo;
018:
019: import java.math.BigDecimal;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023:
024: /**
025: * Types of Payment Terms for Vendor Contracts. Per contract as distinct from <code>ShippingPaymentTerms</code>.
026: *
027: * @see org.kuali.module.vendor.bo.ShippingPaymentTerms
028: */
029: public class PaymentTermType extends PersistableBusinessObjectBase {
030:
031: private String vendorPaymentTermsCode;
032: private String vendorDiscountDueTypeDescription;
033: private Integer vendorDiscountDueNumber;
034: private BigDecimal vendorPaymentTermsPercent;
035: private String vendorNetDueTypeDescription;
036: private Integer vendorNetDueNumber;
037: private String vendorPaymentTermsDescription;
038: private boolean active;
039:
040: /**
041: * Default constructor.
042: */
043: public PaymentTermType() {
044:
045: }
046:
047: public String getVendorPaymentTermsCode() {
048:
049: return vendorPaymentTermsCode;
050: }
051:
052: public void setVendorPaymentTermsCode(String vendorPaymentTermsCode) {
053: this .vendorPaymentTermsCode = vendorPaymentTermsCode;
054: }
055:
056: public String getVendorDiscountDueTypeDescription() {
057:
058: return vendorDiscountDueTypeDescription;
059: }
060:
061: public void setVendorDiscountDueTypeDescription(
062: String vendorDiscountDueTypeDescription) {
063: this .vendorDiscountDueTypeDescription = vendorDiscountDueTypeDescription;
064: }
065:
066: public Integer getVendorDiscountDueNumber() {
067:
068: return vendorDiscountDueNumber;
069: }
070:
071: public void setVendorDiscountDueNumber(
072: Integer vendorDiscountDueNumber) {
073: this .vendorDiscountDueNumber = vendorDiscountDueNumber;
074: }
075:
076: public BigDecimal getVendorPaymentTermsPercent() {
077:
078: return vendorPaymentTermsPercent;
079: }
080:
081: public void setVendorPaymentTermsPercent(
082: BigDecimal vendorPaymentTermsPercent) {
083: this .vendorPaymentTermsPercent = vendorPaymentTermsPercent;
084: }
085:
086: public String getVendorNetDueTypeDescription() {
087:
088: return vendorNetDueTypeDescription;
089: }
090:
091: public void setVendorNetDueTypeDescription(
092: String vendorNetDueTypeDescription) {
093: this .vendorNetDueTypeDescription = vendorNetDueTypeDescription;
094: }
095:
096: public Integer getVendorNetDueNumber() {
097:
098: return vendorNetDueNumber;
099: }
100:
101: public void setVendorNetDueNumber(Integer vendorNetDueNumber) {
102: this .vendorNetDueNumber = vendorNetDueNumber;
103: }
104:
105: public String getVendorPaymentTermsDescription() {
106:
107: return vendorPaymentTermsDescription;
108: }
109:
110: public void setVendorPaymentTermsDescription(
111: String vendorPaymentTermsDescription) {
112: this .vendorPaymentTermsDescription = vendorPaymentTermsDescription;
113: }
114:
115: public boolean isActive() {
116:
117: return active;
118: }
119:
120: public void setActive(boolean active) {
121: this .active = active;
122: }
123:
124: /**
125: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
126: */
127: protected LinkedHashMap toStringMapper() {
128: LinkedHashMap m = new LinkedHashMap();
129: m.put("vendorPaymentTermsCode", this.vendorPaymentTermsCode);
130:
131: return m;
132: }
133: }
|