1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.module.tem.businessobject;
20
21 import java.math.BigDecimal;
22 import java.sql.Date;
23
24 import javax.persistence.Column;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27
28 import org.kuali.rice.core.api.util.type.KualiDecimal;
29 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
30
31 public abstract class ImportedExpenseBase extends PersistableBusinessObjectBase {
32
33 protected Long id;
34 protected String creditCardOrAgencyCode;
35 protected CreditCardAgency creditCardAgency;
36 protected Date importDate;
37 protected String travelCompany;
38 protected String location;
39 protected String travelExpenseTypeCode;
40 protected KualiDecimal amount;
41 protected Date transactionPostingDate;
42 protected Date reconciliationDate;
43 protected String reconciled;
44 protected String description;
45 protected BigDecimal currencyRate = new BigDecimal(1.000);
46 protected KualiDecimal convertedAmount;
47 protected Boolean reimbursable = Boolean.TRUE;
48 protected Boolean missingReceipt = Boolean.FALSE;
49
50 protected Boolean assigned = Boolean.FALSE;
51 protected String documentNumber;
52
53 protected Date expenseNotificationDate;
54
55
56
57
58
59 @Column(name = "ID", nullable = false)
60 public Long getId() {
61 return id;
62 }
63
64
65
66
67
68 public void setId(Long id) {
69 this.id = id;
70 }
71
72
73
74
75
76 @Column(name = "CCA_CD", nullable = false)
77 public String getCreditCardOrAgencyCode() {
78 return creditCardOrAgencyCode;
79 }
80
81
82
83
84
85 public void setCreditCardOrAgencyCode(String creditCardOrAgencyCode) {
86 this.creditCardOrAgencyCode = creditCardOrAgencyCode;
87 }
88
89
90
91
92
93 @ManyToOne
94 @JoinColumn(name="CREDIT_AGENCY_CD")
95 public CreditCardAgency getCreditCardAgency() {
96 return creditCardAgency;
97 }
98
99
100
101
102
103 public void setCreditCardAgency(CreditCardAgency creditCardAgency) {
104 this.creditCardAgency = creditCardAgency;
105 }
106
107
108
109
110
111 @Column(name="IMPORT_DT")
112 public Date getImportDate() {
113 return importDate;
114 }
115
116
117
118
119
120 public void setImportDate(Date importDate) {
121 this.importDate = importDate;
122 }
123
124
125
126
127
128 @Column(name="COMPANY")
129 public String getTravelCompany() {
130 return travelCompany;
131 }
132
133
134
135
136
137 public void setTravelCompany(String travelCompany) {
138 this.travelCompany = travelCompany;
139 }
140
141
142
143
144
145 @Column(name="LOCATION")
146 public String getLocation() {
147 return location;
148 }
149
150
151
152
153
154 public void setLocation(String location) {
155 this.location = location;
156 }
157
158
159
160
161
162 @Column(name="EXP_TYP_CD")
163 public String getTravelExpenseTypeCode() {
164 return travelExpenseTypeCode;
165 }
166
167
168
169
170
171 public void setTravelExpenseTypeCode(String travelExpenseTypeCode) {
172 this.travelExpenseTypeCode = travelExpenseTypeCode;
173 }
174
175
176
177
178
179 @Column(name="AMOUNT")
180 public KualiDecimal getAmount() {
181 return amount;
182 }
183
184
185
186
187
188 public void setAmount(KualiDecimal amount) {
189 this.amount = amount;
190 }
191
192
193
194
195
196 @Column(name="TRANS_POST_DT")
197 public Date getTransactionPostingDate() {
198 return transactionPostingDate;
199 }
200
201
202
203
204
205 public void setTransactionPostingDate(Date transactionPostingDate) {
206 this.transactionPostingDate = transactionPostingDate;
207 }
208
209
210
211
212
213 @Column(name="RECON_DT")
214 public Date getReconciliationDate() {
215 return reconciliationDate;
216 }
217
218
219
220
221
222 public void setReconciliationDate(Date reconciliationDate) {
223 this.reconciliationDate = reconciliationDate;
224 }
225
226
227
228
229
230 @Column(name="RECONCILED")
231 public String getReconciled() {
232 return reconciled;
233 }
234
235
236
237
238
239 public void setReconciled(String reconciled) {
240 this.reconciled = reconciled;
241 }
242
243
244
245
246
247 @Column(name="DESCRIPTION")
248 public String getDescription() {
249 return description;
250 }
251
252
253
254
255
256 public void setDescription(String description) {
257 this.description = description;
258 }
259
260
261
262
263
264 @Column(name="CURR_RT")
265 public BigDecimal getCurrencyRate() {
266 return currencyRate;
267 }
268
269
270
271
272
273 public void setCurrencyRate(BigDecimal currencyRate) {
274 this.currencyRate = currencyRate;
275 }
276
277
278
279
280
281 @Column(name="CONV_AMT")
282 public KualiDecimal getConvertedAmount() {
283 if (convertedAmount == null){
284 convertedAmount = new KualiDecimal(amount.bigDecimalValue().multiply(currencyRate));
285 }
286 return convertedAmount;
287 }
288
289
290
291
292
293 public void setConvertedAmount(KualiDecimal convertedAmount) {
294 this.convertedAmount = convertedAmount;
295 }
296
297
298
299
300
301 @Column(name="REIMB")
302 public Boolean getReimbursable() {
303 return reimbursable;
304 }
305
306
307
308
309
310 public void setReimbursable(Boolean reimbursable) {
311 this.reimbursable = reimbursable;
312 }
313
314
315
316
317
318 @Column(name="MISSING_RCPT")
319 public Boolean getMissingReceipt() {
320 return missingReceipt;
321 }
322
323
324
325
326
327 public void setMissingReceipt(Boolean missingReceipt) {
328 this.missingReceipt = missingReceipt;
329 }
330
331
332
333
334
335 @Column(name="ASSIGNED")
336 public Boolean getAssigned() {
337 return assigned;
338 }
339
340
341
342
343
344 public void setAssigned(Boolean assigned) {
345 this.assigned = assigned;
346 }
347
348
349
350
351
352 @Column(name="DOC_NBR")
353 public String getDocumentNumber() {
354 return documentNumber;
355 }
356
357
358
359
360
361 public void setDocumentNumber(String documentNumber) {
362 this.documentNumber = documentNumber;
363 }
364
365
366
367
368
369 @Column(name="EXP_NTF_DT")
370 public Date getExpenseNotificationDate() {
371 return expenseNotificationDate;
372 }
373
374
375
376
377
378 public void setExpenseNotificationDate(Date expenseNotificationDate) {
379 this.expenseNotificationDate = expenseNotificationDate;
380 }
381
382
383 }