1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.gl.businessobject;
17
18 import java.util.LinkedHashMap;
19
20 import org.kuali.ole.coa.businessobject.Account;
21 import org.kuali.ole.coa.businessobject.Chart;
22 import org.kuali.ole.coa.businessobject.OrganizationReversionCategory;
23 import org.kuali.ole.coa.businessobject.SubAccount;
24 import org.kuali.rice.core.api.util.type.KualiDecimal;
25 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26
27
28
29
30 public class OrgReversionUnitOfWorkCategoryAmount extends PersistableBusinessObjectBase {
31 private String chartOfAccountsCode;
32 private String accountNumber;
33 private String subAccountNumber;
34 private String categoryCode;
35 private KualiDecimal actual = KualiDecimal.ZERO;
36 private KualiDecimal budget = KualiDecimal.ZERO;
37 private KualiDecimal encumbrance = KualiDecimal.ZERO;
38 private KualiDecimal carryForward = KualiDecimal.ZERO;
39 private KualiDecimal available = KualiDecimal.ZERO;
40
41 private Chart chartOfAccounts;
42 private Account account;
43 private SubAccount subAccount;
44 private OrganizationReversionCategory organizationReversionCategory;
45 private OrgReversionUnitOfWork organizationReversionUnitOfWork;
46
47 public OrgReversionUnitOfWorkCategoryAmount(String cat) {
48 this.categoryCode = cat;
49 }
50
51 public OrgReversionUnitOfWorkCategoryAmount(String chartOfAccountsCode, String accountNbr, String subAccountNbr, String cat) {
52 this.chartOfAccountsCode = chartOfAccountsCode;
53 this.accountNumber = accountNbr;
54 this.subAccountNumber = subAccountNbr;
55 categoryCode = cat;
56 }
57
58 public void addActual(KualiDecimal amount) {
59 actual = actual.add(amount);
60 }
61
62 public void addBudget(KualiDecimal amount) {
63 budget = budget.add(amount);
64 }
65
66 public void addEncumbrance(KualiDecimal amount) {
67 encumbrance = encumbrance.add(amount);
68 }
69
70 public void addCarryForward(KualiDecimal amount) {
71 carryForward = carryForward.add(amount);
72 }
73
74 public void addAvailable(KualiDecimal amount) {
75 available = available.add(amount);
76 }
77
78 public KualiDecimal getAvailable() {
79 return available;
80 }
81
82 public void setAvailable(KualiDecimal available) {
83 this.available = available;
84 }
85
86 public KualiDecimal getActual() {
87 return actual;
88 }
89
90 public void setActual(KualiDecimal actual) {
91 this.actual = actual;
92 }
93
94 public KualiDecimal getBudget() {
95 return budget;
96 }
97
98 public void setBudget(KualiDecimal budget) {
99 this.budget = budget;
100 }
101
102 public String getCategoryCode() {
103 return categoryCode;
104 }
105
106 public void setCategoryCode(String categoryCode) {
107 this.categoryCode = categoryCode;
108 }
109
110 public KualiDecimal getEncumbrance() {
111 return encumbrance;
112 }
113
114 public void setEncumbrance(KualiDecimal encumbrance) {
115 this.encumbrance = encumbrance;
116 }
117
118 public KualiDecimal getCarryForward() {
119 return carryForward;
120 }
121
122 public void setCarryForward(KualiDecimal carryForward) {
123 this.carryForward = carryForward;
124 }
125
126
127
128
129
130
131 public String getAccountNumber() {
132 return accountNumber;
133 }
134
135
136
137
138
139
140 public void setAccountNumber(String accountNbr) {
141 this.accountNumber = accountNbr;
142 }
143
144
145
146
147
148
149 public String getChartOfAccountsCode() {
150 return chartOfAccountsCode;
151 }
152
153
154
155
156
157
158 public void setChartOfAccountsCode(String chartOfAccountsCode) {
159 this.chartOfAccountsCode = chartOfAccountsCode;
160 }
161
162
163
164
165
166
167 public String getSubAccountNumber() {
168 return subAccountNumber;
169 }
170
171
172
173
174
175
176 public void setSubAccountNumber(String subAccountNbr) {
177 this.subAccountNumber = subAccountNbr;
178 }
179
180
181
182
183
184
185 public Account getAccount() {
186 return account;
187 }
188
189
190
191
192
193
194 public void setAccount(Account account) {
195 this.account = account;
196 }
197
198
199
200
201
202
203 public Chart getChartOfAccounts() {
204 return chartOfAccounts;
205 }
206
207
208
209
210
211
212 public void setChartOfAccounts(Chart chartOfAccounts) {
213 this.chartOfAccounts = chartOfAccounts;
214 }
215
216
217
218
219
220
221 public OrganizationReversionCategory getOrganizationReversionCategory() {
222 return organizationReversionCategory;
223 }
224
225
226
227
228
229
230 public void setOrganizationReversionCategory(OrganizationReversionCategory organizationReversionCategory) {
231 this.organizationReversionCategory = organizationReversionCategory;
232 }
233
234
235
236
237
238
239 public OrgReversionUnitOfWork getOrganizationReversionUnitOfWork() {
240 return organizationReversionUnitOfWork;
241 }
242
243
244
245
246
247
248 public void setOrganizationReversionUnitOfWork(OrgReversionUnitOfWork organizationReversionUnitOfWork) {
249 this.organizationReversionUnitOfWork = organizationReversionUnitOfWork;
250 }
251
252
253
254
255
256
257 public SubAccount getSubAccount() {
258 return subAccount;
259 }
260
261
262
263
264
265
266 public void setSubAccount(SubAccount subAccount) {
267 this.subAccount = subAccount;
268 }
269
270
271
272
273
274 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
275 LinkedHashMap pkMap = new LinkedHashMap();
276 pkMap.put("chartOfAccountsCode", this.chartOfAccountsCode);
277 pkMap.put("accountNbr", this.accountNumber);
278 pkMap.put("subAccountNbr", this.subAccountNumber);
279 pkMap.put("categoryCode", this.categoryCode);
280 return pkMap;
281 }
282
283 }