001: /*
002: * Copyright 2006-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.purap.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023: import org.kuali.module.chart.bo.Account;
024: import org.kuali.module.chart.bo.Chart;
025: import org.kuali.module.chart.bo.Org;
026:
027: /**
028: * Negative Payment Request Approval Limit Business Object. Maintenance document for setting limits for the auto-approve PREQ batch
029: * job.
030: */
031: public class NegativePaymentRequestApprovalLimit extends
032: PersistableBusinessObjectBase {
033:
034: private Integer negativePaymentRequestApprovalLimitIdentifier;
035: private String chartOfAccountsCode;
036: private String organizationCode;
037: private String accountNumber;
038: private KualiDecimal negativePaymentRequestApprovalLimitAmount;
039:
040: private Chart chartOfAccounts;
041: private Account account;
042: private Org organization;
043:
044: /**
045: * Default constructor.
046: */
047: public NegativePaymentRequestApprovalLimit() {
048:
049: }
050:
051: public Account getAccount() {
052: return account;
053: }
054:
055: /**
056: * @deprecated
057: */
058: public void setAccount(Account account) {
059: this .account = account;
060: }
061:
062: public String getAccountNumber() {
063: return accountNumber;
064: }
065:
066: public void setAccountNumber(String accountNumber) {
067: this .accountNumber = accountNumber;
068: }
069:
070: public Chart getChartOfAccounts() {
071: return chartOfAccounts;
072: }
073:
074: /**
075: * @deprecated
076: */
077: public void setChartOfAccounts(Chart chartOfAccounts) {
078: this .chartOfAccounts = chartOfAccounts;
079: }
080:
081: public String getChartOfAccountsCode() {
082: return chartOfAccountsCode;
083: }
084:
085: public void setChartOfAccountsCode(String chartOfAccountsCode) {
086: this .chartOfAccountsCode = chartOfAccountsCode;
087: }
088:
089: public KualiDecimal getNegativePaymentRequestApprovalLimitAmount() {
090: return negativePaymentRequestApprovalLimitAmount;
091: }
092:
093: public void setNegativePaymentRequestApprovalLimitAmount(
094: KualiDecimal negativePaymentRequestApprovalLimitAmount) {
095: this .negativePaymentRequestApprovalLimitAmount = negativePaymentRequestApprovalLimitAmount;
096: }
097:
098: public Integer getNegativePaymentRequestApprovalLimitIdentifier() {
099: return negativePaymentRequestApprovalLimitIdentifier;
100: }
101:
102: public void setNegativePaymentRequestApprovalLimitIdentifier(
103: Integer negativePaymentRequestApprovalLimitIdentifier) {
104: this .negativePaymentRequestApprovalLimitIdentifier = negativePaymentRequestApprovalLimitIdentifier;
105: }
106:
107: public Org getOrganization() {
108: return organization;
109: }
110:
111: /**
112: * @deprecated
113: */
114: public void setOrganization(Org organization) {
115: this .organization = organization;
116: }
117:
118: public String getOrganizationCode() {
119: return organizationCode;
120: }
121:
122: public void setOrganizationCode(String organizationCode) {
123: this .organizationCode = organizationCode;
124: }
125:
126: /**
127: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
128: */
129: protected LinkedHashMap toStringMapper() {
130: LinkedHashMap m = new LinkedHashMap();
131: if (this .negativePaymentRequestApprovalLimitIdentifier != null) {
132: m.put("negativePaymentRequestApprovalLimitIdentifier",
133: this.negativePaymentRequestApprovalLimitIdentifier
134: .toString());
135: }
136: return m;
137: }
138: }
|