1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.pdp.businessobject;
17
18 import org.kuali.rice.core.api.util.type.KualiDecimal;
19 import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
20
21 public class DailyReport extends TransientBusinessObjectBase {
22 private String customer;
23 private KualiDecimal amount;
24 private Integer payments;
25 private Integer payees;
26
27 private PaymentGroup paymentGroup;
28
29 public DailyReport() {
30 payments = 0;
31 payees = 0;
32 amount = KualiDecimal.ZERO;
33 }
34
35 public DailyReport(DailyReport dr) {
36 this();
37 customer = dr.customer;
38 paymentGroup = dr.paymentGroup;
39 }
40
41 public DailyReport(String c, KualiDecimal a, Integer pm, Integer py, PaymentGroup paymentGroup) {
42 this();
43 customer = c;
44 amount = a;
45 payments = pm;
46 payees = py;
47 this.paymentGroup = paymentGroup;
48 }
49
50
51 public String toString() {
52 return customer + " " + amount + " " + payments + " " + payees;
53 }
54
55 public void addRow(DailyReport r) {
56 payments = payments + r.payments;
57 payees = payees + r.payees;
58 amount = amount.add(r.amount);
59 }
60
61 public KualiDecimal getAmount() {
62 return amount;
63 }
64
65 public void setAmount(KualiDecimal amount) {
66 this.amount = amount;
67 }
68
69 public String getCustomer() {
70 return customer;
71 }
72
73 public void setCustomer(String customer) {
74 this.customer = customer;
75 }
76
77 public Integer getPayees() {
78 return payees;
79 }
80
81 public void setPayees(Integer payees) {
82 this.payees = payees;
83 }
84
85 public Integer getPayments() {
86 return payments;
87 }
88
89 public void setPayments(Integer payments) {
90 this.payments = payments;
91 }
92
93 public PaymentGroup getPaymentGroup() {
94 return paymentGroup;
95 }
96
97 public void setPaymentGroup(PaymentGroup paymentGroup) {
98 this.paymentGroup = paymentGroup;
99 }
100
101
102 }