1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.fp.businessobject;
17
18 import java.util.Map;
19
20 import org.kuali.ole.sys.businessobject.AccountingLine;
21 import org.kuali.ole.sys.businessobject.TargetAccountingLine;
22 import org.kuali.rice.core.api.util.type.KualiDecimal;
23 import org.kuali.rice.core.api.util.type.KualiInteger;
24
25
26
27
28 public class BudgetAdjustmentTargetAccountingLine extends TargetAccountingLine implements BudgetAdjustmentAccountingLine {
29
30 private String budgetAdjustmentPeriodCode;
31 private KualiDecimal currentBudgetAdjustmentAmount;
32 private KualiDecimal baseBudgetAdjustmentAmount;
33 private KualiDecimal financialDocumentMonth1LineAmount;
34 private KualiDecimal financialDocumentMonth2LineAmount;
35 private KualiDecimal financialDocumentMonth3LineAmount;
36 private KualiDecimal financialDocumentMonth4LineAmount;
37 private KualiDecimal financialDocumentMonth5LineAmount;
38 private KualiDecimal financialDocumentMonth6LineAmount;
39 private KualiDecimal financialDocumentMonth7LineAmount;
40 private KualiDecimal financialDocumentMonth8LineAmount;
41 private KualiDecimal financialDocumentMonth9LineAmount;
42 private KualiDecimal financialDocumentMonth10LineAmount;
43 private KualiDecimal financialDocumentMonth11LineAmount;
44 private KualiDecimal financialDocumentMonth12LineAmount;
45 private boolean fringeBenefitIndicator;
46
47 public BudgetAdjustmentTargetAccountingLine() {
48 super();
49 BudgetAdjustmentAccountingLineUtil.init(this);
50 }
51
52
53
54
55 @Override
56 public Map getValuesMap() {
57 Map simpleValues = super.getValuesMap();
58 simpleValues.remove("amount");
59 BudgetAdjustmentAccountingLineUtil.appendToValuesMap(simpleValues, this);
60 return simpleValues;
61 }
62
63
64
65
66 @Override
67 public void copyFrom(AccountingLine other) {
68 super.copyFrom(other);
69 BudgetAdjustmentAccountingLineUtil.copyFrom(this, other);
70 }
71
72
73
74
75 public KualiDecimal getMonthlyLinesTotal() {
76 return BudgetAdjustmentAccountingLineUtil.getMonthlyLinesTotal(this);
77 }
78
79 public KualiDecimal getBaseBudgetAdjustmentAmount() {
80 return baseBudgetAdjustmentAmount;
81 }
82
83 public void setBaseBudgetAdjustmentAmount(KualiDecimal baseBudgetAdjustmentAmount) {
84 if (baseBudgetAdjustmentAmount != null) {
85 this.baseBudgetAdjustmentAmount = baseBudgetAdjustmentAmount;
86 }
87 }
88
89 public String getBudgetAdjustmentPeriodCode() {
90 return budgetAdjustmentPeriodCode;
91 }
92
93 public void setBudgetAdjustmentPeriodCode(String budgetAdjustmentPeriodCode) {
94 this.budgetAdjustmentPeriodCode = budgetAdjustmentPeriodCode;
95 }
96
97 public KualiDecimal getCurrentBudgetAdjustmentAmount() {
98 return currentBudgetAdjustmentAmount;
99 }
100
101 public void setCurrentBudgetAdjustmentAmount(KualiDecimal currentBudgetAdjustmentAmount) {
102 if (currentBudgetAdjustmentAmount != null) {
103 this.currentBudgetAdjustmentAmount = currentBudgetAdjustmentAmount;
104 }
105 }
106
107
108
109
110
111
112 public KualiDecimal getFinancialDocumentMonth1LineAmount() {
113 return financialDocumentMonth1LineAmount;
114 }
115
116
117
118
119
120
121 public void setFinancialDocumentMonth1LineAmount(KualiDecimal financialDocumentMonth1LineAmount) {
122 if (financialDocumentMonth1LineAmount != null) {
123 this.financialDocumentMonth1LineAmount = financialDocumentMonth1LineAmount;
124 }
125 }
126
127
128
129
130
131
132
133 public KualiDecimal getFinancialDocumentMonth2LineAmount() {
134 return financialDocumentMonth2LineAmount;
135 }
136
137
138
139
140
141
142 public void setFinancialDocumentMonth2LineAmount(KualiDecimal financialDocumentMonth2LineAmount) {
143 if (financialDocumentMonth2LineAmount != null) {
144 this.financialDocumentMonth2LineAmount = financialDocumentMonth2LineAmount;
145 }
146 }
147
148
149
150
151
152
153
154 public KualiDecimal getFinancialDocumentMonth3LineAmount() {
155 return financialDocumentMonth3LineAmount;
156 }
157
158
159
160
161
162
163 public void setFinancialDocumentMonth3LineAmount(KualiDecimal financialDocumentMonth3LineAmount) {
164 if (financialDocumentMonth3LineAmount != null) {
165 this.financialDocumentMonth3LineAmount = financialDocumentMonth3LineAmount;
166 }
167 }
168
169
170
171
172
173
174
175 public KualiDecimal getFinancialDocumentMonth4LineAmount() {
176 return financialDocumentMonth4LineAmount;
177 }
178
179
180
181
182
183
184 public void setFinancialDocumentMonth4LineAmount(KualiDecimal financialDocumentMonth4LineAmount) {
185 if (financialDocumentMonth4LineAmount != null) {
186 this.financialDocumentMonth4LineAmount = financialDocumentMonth4LineAmount;
187 }
188 }
189
190
191
192
193
194
195
196 public KualiDecimal getFinancialDocumentMonth5LineAmount() {
197 return financialDocumentMonth5LineAmount;
198 }
199
200
201
202
203
204
205 public void setFinancialDocumentMonth5LineAmount(KualiDecimal financialDocumentMonth5LineAmount) {
206 if (financialDocumentMonth5LineAmount != null) {
207 this.financialDocumentMonth5LineAmount = financialDocumentMonth5LineAmount;
208 }
209 }
210
211
212
213
214
215
216
217 public KualiDecimal getFinancialDocumentMonth6LineAmount() {
218 return financialDocumentMonth6LineAmount;
219 }
220
221
222
223
224
225
226 public void setFinancialDocumentMonth6LineAmount(KualiDecimal financialDocumentMonth6LineAmount) {
227 if (financialDocumentMonth6LineAmount != null) {
228 this.financialDocumentMonth6LineAmount = financialDocumentMonth6LineAmount;
229 }
230 }
231
232
233
234
235
236
237
238 public KualiDecimal getFinancialDocumentMonth7LineAmount() {
239 return financialDocumentMonth7LineAmount;
240 }
241
242
243
244
245
246
247 public void setFinancialDocumentMonth7LineAmount(KualiDecimal financialDocumentMonth7LineAmount) {
248 if (financialDocumentMonth7LineAmount != null) {
249 this.financialDocumentMonth7LineAmount = financialDocumentMonth7LineAmount;
250 }
251 }
252
253
254
255
256
257
258
259 public KualiDecimal getFinancialDocumentMonth8LineAmount() {
260 return financialDocumentMonth8LineAmount;
261 }
262
263
264
265
266
267
268 public void setFinancialDocumentMonth8LineAmount(KualiDecimal financialDocumentMonth8LineAmount) {
269 if (financialDocumentMonth8LineAmount != null) {
270 this.financialDocumentMonth8LineAmount = financialDocumentMonth8LineAmount;
271 }
272 }
273
274
275
276
277
278
279
280 public KualiDecimal getFinancialDocumentMonth9LineAmount() {
281 return financialDocumentMonth9LineAmount;
282 }
283
284
285
286
287
288
289 public void setFinancialDocumentMonth9LineAmount(KualiDecimal financialDocumentMonth9LineAmount) {
290 if (financialDocumentMonth9LineAmount != null) {
291 this.financialDocumentMonth9LineAmount = financialDocumentMonth9LineAmount;
292 }
293 }
294
295
296
297
298
299
300
301 public KualiDecimal getFinancialDocumentMonth10LineAmount() {
302 return financialDocumentMonth10LineAmount;
303 }
304
305
306
307
308
309
310 public void setFinancialDocumentMonth10LineAmount(KualiDecimal financialDocumentMonth10LineAmount) {
311 if (financialDocumentMonth10LineAmount != null) {
312 this.financialDocumentMonth10LineAmount = financialDocumentMonth10LineAmount;
313 }
314 }
315
316
317
318
319
320
321 public KualiDecimal getFinancialDocumentMonth11LineAmount() {
322 return financialDocumentMonth11LineAmount;
323 }
324
325
326
327
328
329
330 public void setFinancialDocumentMonth11LineAmount(KualiDecimal financialDocumentMonth11LineAmount) {
331 if (financialDocumentMonth11LineAmount != null) {
332 this.financialDocumentMonth11LineAmount = financialDocumentMonth11LineAmount;
333 }
334 }
335
336
337
338
339
340
341 public KualiDecimal getFinancialDocumentMonth12LineAmount() {
342 return financialDocumentMonth12LineAmount;
343 }
344
345
346
347
348
349
350 public void setFinancialDocumentMonth12LineAmount(KualiDecimal financialDocumentMonth12LineAmount) {
351 if (financialDocumentMonth12LineAmount != null) {
352 this.financialDocumentMonth12LineAmount = financialDocumentMonth12LineAmount;
353 }
354 }
355
356
357
358
359
360
361 public boolean isFringeBenefitIndicator() {
362 return fringeBenefitIndicator;
363 }
364
365
366
367
368
369
370 public void setFringeBenefitIndicator(boolean fringeBenefitIndicator) {
371 this.fringeBenefitIndicator = fringeBenefitIndicator;
372 }
373
374
375
376
377 public void clearFinancialDocumentMonthLineAmounts() {
378 financialDocumentMonth1LineAmount = KualiDecimal.ZERO;
379 financialDocumentMonth2LineAmount = KualiDecimal.ZERO;
380 financialDocumentMonth3LineAmount = KualiDecimal.ZERO;
381 financialDocumentMonth4LineAmount = KualiDecimal.ZERO;
382 financialDocumentMonth5LineAmount = KualiDecimal.ZERO;
383 financialDocumentMonth6LineAmount = KualiDecimal.ZERO;
384 financialDocumentMonth7LineAmount = KualiDecimal.ZERO;
385 financialDocumentMonth8LineAmount = KualiDecimal.ZERO;
386 financialDocumentMonth9LineAmount = KualiDecimal.ZERO;
387 financialDocumentMonth10LineAmount = KualiDecimal.ZERO;
388 financialDocumentMonth11LineAmount = KualiDecimal.ZERO;
389 financialDocumentMonth12LineAmount = KualiDecimal.ZERO;
390 }
391
392
393
394
395 @Override
396 public boolean isSourceAccountingLine() {
397 return false;
398 }
399
400
401
402
403 @Override
404 public boolean isTargetAccountingLine() {
405 return true;
406 }
407 }