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 org.kuali.rice.core.api.util.type.KualiDecimal;
19
20
21
22
23 public class OriginEntryStatistics {
24 private KualiDecimal debitTotalAmount = KualiDecimal.ZERO;
25 private KualiDecimal creditTotalAmount = KualiDecimal.ZERO;
26 private KualiDecimal budgetTotalAmount = KualiDecimal.ZERO;
27 private Integer rowCount = 0;
28
29 public void addDebit(KualiDecimal d) {
30 if (d != null) {
31 debitTotalAmount = debitTotalAmount.add(d);
32 }
33 }
34
35 public void addCredit(KualiDecimal c) {
36 if (c != null) {
37 creditTotalAmount = creditTotalAmount.add(c);
38 }
39 }
40
41 public void addBudget(KualiDecimal b) {
42 if (b != null) {
43 budgetTotalAmount = budgetTotalAmount.add(b);
44 }
45 }
46
47 public void incrementCount() {
48 rowCount++;
49 }
50
51 public KualiDecimal getCreditTotalAmount() {
52 return creditTotalAmount;
53 }
54
55 public void setCreditTotalAmount(KualiDecimal creditTotalAmount) {
56 this.creditTotalAmount = creditTotalAmount;
57 }
58
59 public KualiDecimal getDebitTotalAmount() {
60 return debitTotalAmount;
61 }
62
63 public void setDebitTotalAmount(KualiDecimal debitTotalAmount) {
64 this.debitTotalAmount = debitTotalAmount;
65 }
66
67 public KualiDecimal getBudgetTotalAmount() {
68 return budgetTotalAmount;
69 }
70
71 public void setBudgetTotalAmount(KualiDecimal budgetTotalAmount) {
72 this.budgetTotalAmount = budgetTotalAmount;
73 }
74
75 public Integer getRowCount() {
76 return rowCount;
77 }
78
79 public void setRowCount(Integer rowCount) {
80 this.rowCount = rowCount;
81 }
82 }