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.module.purap.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.coa.businessobject.Account;
022 import org.kuali.kfs.coa.businessobject.Chart;
023 import org.kuali.kfs.coa.businessobject.Organization;
024 import org.kuali.rice.kns.bo.Inactivateable;
025 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
026 import org.kuali.rice.kns.util.KualiDecimal;
027
028 /**
029 * Negative Payment Request Approval Limit Business Object. Maintenance document for setting limits for the auto-approve PREQ batch
030 * job.
031 */
032 public class NegativePaymentRequestApprovalLimit extends PersistableBusinessObjectBase implements Inactivateable{
033
034 private Integer negativePaymentRequestApprovalLimitIdentifier;
035 private String chartOfAccountsCode;
036 private String organizationCode;
037 private String accountNumber;
038 private KualiDecimal negativePaymentRequestApprovalLimitAmount;
039 private boolean active;
040 private Chart chartOfAccounts;
041 private Account account;
042 private Organization 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(KualiDecimal negativePaymentRequestApprovalLimitAmount) {
094 this.negativePaymentRequestApprovalLimitAmount = negativePaymentRequestApprovalLimitAmount;
095 }
096
097 public Integer getNegativePaymentRequestApprovalLimitIdentifier() {
098 return negativePaymentRequestApprovalLimitIdentifier;
099 }
100
101 public void setNegativePaymentRequestApprovalLimitIdentifier(Integer negativePaymentRequestApprovalLimitIdentifier) {
102 this.negativePaymentRequestApprovalLimitIdentifier = negativePaymentRequestApprovalLimitIdentifier;
103 }
104
105 public Organization getOrganization() {
106 return organization;
107 }
108
109 /**
110 * @deprecated
111 */
112 public void setOrganization(Organization organization) {
113 this.organization = organization;
114 }
115
116 public String getOrganizationCode() {
117 return organizationCode;
118 }
119
120 public void setOrganizationCode(String organizationCode) {
121 this.organizationCode = organizationCode;
122 }
123
124 /**
125 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
126 */
127 protected LinkedHashMap toStringMapper() {
128 LinkedHashMap m = new LinkedHashMap();
129 if (this.negativePaymentRequestApprovalLimitIdentifier != null) {
130 m.put("negativePaymentRequestApprovalLimitIdentifier", this.negativePaymentRequestApprovalLimitIdentifier.toString());
131 }
132 return m;
133 }
134
135 public boolean isActive() {
136 return active;
137 }
138
139 public void setActive(boolean active) {
140 this.active = active;
141 }
142
143 }