1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.module.ar.businessobject;
20
21 import java.sql.Date;
22 import java.util.LinkedHashMap;
23
24 import org.kuali.kfs.integration.cg.ContractAndGrantsProposal;
25 import org.kuali.kfs.module.ar.document.ContractsGrantsInvoiceDocument;
26 import org.kuali.kfs.sys.KFSPropertyConstants;
27 import org.kuali.kfs.sys.context.SpringContext;
28 import org.kuali.rice.core.api.util.type.KualiDecimal;
29 import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
30 import org.kuali.rice.krad.service.KualiModuleService;
31
32
33
34
35 public class ContractsGrantsInvoiceReport extends TransientBusinessObjectBase {
36
37 private String documentNumber;
38 private Long proposalNumber;
39 private String invoiceType;
40 private Date invoiceDate;
41 private Date invoiceDueDate;
42 private String openInvoiceIndicator;
43 private String customerNumber;
44 private String customerName;
45 private KualiDecimal invoiceAmount;
46 private KualiDecimal paymentAmount;
47 private KualiDecimal remainingAmount;
48 private Long ageInDays;
49 private TransientContractsGrantsBillingAttributes dummyBusinessObject;
50
51 private ContractAndGrantsProposal proposal;
52 private ContractsGrantsInvoiceDocument invoiceDocument;
53 private Customer customer;
54
55
56
57
58
59
60
61
62 public ContractsGrantsInvoiceDocument getInvoiceDocument() {
63 return invoiceDocument;
64 }
65
66
67
68
69
70
71
72 public void setInvoiceDocument(ContractsGrantsInvoiceDocument invoiceDocument) {
73 this.invoiceDocument = invoiceDocument;
74 }
75
76
77
78
79
80
81
82 public Customer getCustomer() {
83 return customer;
84 }
85
86
87
88
89
90
91
92 public void setCustomer(Customer customer) {
93 this.customer = customer;
94 }
95
96
97
98
99
100
101
102 public ContractAndGrantsProposal getProposal() {
103 return proposal = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(ContractAndGrantsProposal.class).retrieveExternalizableBusinessObjectIfNecessary(this, proposal, "proposal");
104 }
105
106
107
108
109
110
111
112 public String getDocumentNumber() {
113 return documentNumber;
114 }
115
116
117
118
119
120
121 public void setDocumentNumber(String documentNumber) {
122 this.documentNumber = documentNumber;
123 }
124
125
126
127
128
129
130 public Long getProposalNumber() {
131 return proposalNumber;
132 }
133
134
135
136
137
138
139 public void setProposalNumber(Long proposalNumber) {
140 this.proposalNumber = proposalNumber;
141 }
142
143
144
145
146
147
148 public String getInvoiceType() {
149 return invoiceType;
150 }
151
152
153
154
155
156
157 public void setInvoiceType(String invoiceType) {
158 this.invoiceType = invoiceType;
159 }
160
161
162
163
164
165
166 public Date getInvoiceDate() {
167 return invoiceDate;
168 }
169
170
171
172
173
174
175 public void setInvoiceDate(Date invoiceDate) {
176 this.invoiceDate = invoiceDate;
177 }
178
179
180
181
182
183
184 public Date getInvoiceDueDate() {
185 return invoiceDueDate;
186 }
187
188
189
190
191
192
193 public void setInvoiceDueDate(Date invoiceDueDate) {
194 this.invoiceDueDate = invoiceDueDate;
195 }
196
197
198
199
200
201
202 public String getOpenInvoiceIndicator() {
203 return openInvoiceIndicator;
204 }
205
206
207
208
209
210
211 public void setOpenInvoiceIndicator(String openInvoiceIndicator) {
212 this.openInvoiceIndicator = openInvoiceIndicator;
213 }
214
215
216
217
218
219
220 public String getCustomerNumber() {
221 return customerNumber;
222 }
223
224
225
226
227
228
229 public void setCustomerNumber(String customerNumber) {
230 this.customerNumber = customerNumber;
231 }
232
233
234
235
236
237
238 public String getCustomerName() {
239 return customerName;
240 }
241
242
243
244
245
246
247 public void setCustomerName(String customerName) {
248 this.customerName = customerName;
249 }
250
251
252
253
254
255
256 public KualiDecimal getInvoiceAmount() {
257 return invoiceAmount;
258 }
259
260
261
262
263
264
265 public void setInvoiceAmount(KualiDecimal invoiceAmount) {
266 this.invoiceAmount = invoiceAmount;
267 }
268
269
270
271
272
273
274 public KualiDecimal getPaymentAmount() {
275 return paymentAmount;
276 }
277
278
279
280
281
282
283 public void setPaymentAmount(KualiDecimal paymentAmount) {
284 this.paymentAmount = paymentAmount;
285 }
286
287
288
289
290
291
292 public KualiDecimal getRemainingAmount() {
293 return remainingAmount;
294 }
295
296
297
298
299
300
301 public void setRemainingAmount(KualiDecimal remainingAmount) {
302 this.remainingAmount = remainingAmount;
303 }
304
305
306
307
308
309
310 public Long getAgeInDays() {
311 return ageInDays;
312 }
313
314
315
316
317
318
319 public void setAgeInDays(Long ageInDays) {
320 this.ageInDays = ageInDays;
321 }
322
323
324
325
326
327
328 public TransientContractsGrantsBillingAttributes getDummyBusinessObject() {
329 return dummyBusinessObject;
330 }
331
332
333
334
335
336
337 public void setDummyBusinessObject(TransientContractsGrantsBillingAttributes dummyBusinessObject) {
338 this.dummyBusinessObject = dummyBusinessObject;
339 }
340
341
342
343
344
345
346 public void setProposal(ContractAndGrantsProposal proposal) {
347 this.proposal = proposal;
348 }
349
350
351 @SuppressWarnings("unchecked")
352 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
353 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
354 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
355 m.put("invoiceType", this.invoiceType);
356 m.put("openInvoiceIndicator", this.openInvoiceIndicator);
357 m.put(KFSPropertyConstants.CUSTOMER_NUMBER, this.customerNumber);
358 m.put("customerName", this.customerName);
359 if (this.invoiceAmount != null) {
360 m.put("invoiceAmount", this.invoiceAmount.toString());
361 }
362 if (this.paymentAmount != null) {
363 m.put("paymentAmount", this.paymentAmount.toString());
364 }
365 if (this.remainingAmount != null) {
366 m.put("remainingAmount", this.remainingAmount.toString());
367 }
368 if (this.ageInDays != null) {
369 m.put("ageInDays", this.ageInDays.toString());
370 }
371 return m;
372 }
373
374 }