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 package org.kuali.kfs.module.cam.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
021 import org.kuali.rice.kns.util.KualiDecimal;
022
023 public class AssetDepreciationTransaction extends TransientBusinessObjectBase {
024 private Long capitalAssetNumber;
025 private String documentNumber;
026 private String chartOfAccountsCode;
027 private String accountNumber;
028 private String subAccountNumber;
029 private String financialObjectCode;
030 private String financialSubObjectCode;
031 private String financialObjectTypeCode;
032 private String transactionType;
033 private String projectCode;
034 private KualiDecimal transactionAmount;
035 private String transactionLedgerEntryDescription;
036
037 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(TransientBusinessObjectBase.class);
038
039
040 public AssetDepreciationTransaction() {
041 super();
042 }
043
044 @Override
045 protected LinkedHashMap<String, Object> toStringMapper() {
046 LinkedHashMap<String, Object> m = new LinkedHashMap<String, Object>();
047 m.put("AssetNumber", this.capitalAssetNumber);
048 m.put("accountNumber", this.accountNumber);
049 m.put("subAccountNumber", this.subAccountNumber);
050 m.put("financialObjectCode", this.financialObjectCode);
051 m.put("financialSubObjectCode", this.financialSubObjectCode);
052 m.put("financialObjectTypeCode", this.financialObjectTypeCode);
053 m.put(" projectCode", this.projectCode);
054 m.put("transactionType", this.transactionType);
055 m.put("transactionAmount", this.transactionAmount);
056 return m;
057 }
058
059
060 public Long getCapitalAssetNumber() {
061 return capitalAssetNumber;
062 }
063
064
065 public void setCapitalAssetNumber(Long capitalAssetNumber) {
066 this.capitalAssetNumber = capitalAssetNumber;
067 }
068
069 public String getDocumentNumber() {
070 return documentNumber;
071 }
072
073
074 public void setDocumentNumber(String documentNumber) {
075 this.documentNumber = documentNumber;
076 }
077
078
079 public String getChartOfAccountsCode() {
080 return chartOfAccountsCode;
081 }
082
083
084 public void setChartOfAccountsCode(String chartOfAccountsCode) {
085 this.chartOfAccountsCode = chartOfAccountsCode;
086 }
087
088
089 public String getAccountNumber() {
090 return accountNumber;
091 }
092
093
094 public void setAccountNumber(String accountNumber) {
095 this.accountNumber = accountNumber;
096 }
097
098
099 public String getSubAccountNumber() {
100 return subAccountNumber;
101 }
102
103
104 public void setSubAccountNumber(String subAccountNumber) {
105 this.subAccountNumber = subAccountNumber;
106 }
107
108
109 public String getFinancialObjectCode() {
110 return financialObjectCode;
111 }
112
113
114 public void setFinancialObjectCode(String financialObjectCode) {
115 this.financialObjectCode = financialObjectCode;
116 }
117
118
119 public String getFinancialSubObjectCode() {
120 return financialSubObjectCode;
121 }
122
123
124 public void setFinancialSubObjectCode(String financialSubObjectCode) {
125 this.financialSubObjectCode = financialSubObjectCode;
126 }
127
128
129 public String getFinancialObjectTypeCode() {
130 return financialObjectTypeCode;
131 }
132
133
134 public void setFinancialObjectTypeCode(String financialObjectTypeCode) {
135 this.financialObjectTypeCode = financialObjectTypeCode;
136 }
137
138
139 public String getTransactionType() {
140 return transactionType;
141 }
142
143
144 public void setTransactionType(String transactionType) {
145 this.transactionType = transactionType;
146 }
147
148
149 public String getProjectCode() {
150 return projectCode;
151 }
152
153
154 public void setProjectCode(String projectCode) {
155 this.projectCode = projectCode;
156 }
157
158
159 public KualiDecimal getTransactionAmount() {
160 return transactionAmount;
161 }
162
163
164 public void setTransactionAmount(KualiDecimal transactionAmount) {
165 this.transactionAmount = transactionAmount;
166 }
167
168 public String getKey() {
169 return (this.getCapitalAssetNumber().toString() + this.getChartOfAccountsCode() + this.getAccountNumber() + this.getSubAccountNumber() + this.getFinancialObjectCode() + this.getFinancialSubObjectCode() + this.getFinancialObjectTypeCode() + this.getProjectCode() + this.getTransactionType());
170
171 }
172
173 public String getTransactionLedgerEntryDescription() {
174 return transactionLedgerEntryDescription;
175 }
176
177 public void setTransactionLedgerEntryDescription(String transactionLedgerEntryDescription) {
178 this.transactionLedgerEntryDescription = transactionLedgerEntryDescription;
179 }
180
181 }