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.sql.Timestamp;
19 import java.util.LinkedHashMap;
20
21 import org.kuali.rice.core.api.util.type.KualiDecimal;
22 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23
24
25
26
27 public class InternalBillingItem extends PersistableBusinessObjectBase {
28
29 private static final long serialVersionUID = -2830091652446423539L;
30 private String documentNumber;
31 private Integer itemSequenceId;
32 private String itemStockNumber;
33 private String itemStockDescription;
34 private Timestamp itemServiceDate;
35 private Integer itemQuantity;
36 private KualiDecimal itemUnitAmount;
37 private String unitOfMeasureCode;
38
39
40
41
42 public InternalBillingItem() {
43 setItemUnitAmount(KualiDecimal.ZERO);
44 }
45
46
47
48
49
50
51
52 public String getDocumentNumber() {
53 return documentNumber;
54 }
55
56
57
58
59
60
61
62 public void setDocumentNumber(String documentNumber) {
63 this.documentNumber = documentNumber;
64 }
65
66
67
68
69
70
71
72 public Integer getItemQuantity() {
73 return itemQuantity;
74 }
75
76
77
78
79
80
81
82 public void setItemQuantity(Integer itemQuantity) {
83 this.itemQuantity = itemQuantity;
84 }
85
86
87
88
89
90
91
92 public Integer getItemSequenceId() {
93 return itemSequenceId;
94 }
95
96
97
98
99
100
101
102 public void setItemSequenceId(Integer itemSequenceId) {
103 this.itemSequenceId = itemSequenceId;
104 }
105
106
107
108
109
110
111
112 public Timestamp getItemServiceDate() {
113 return itemServiceDate;
114 }
115
116
117
118
119
120
121
122 public void setItemServiceDate(Timestamp itemServiceDate) {
123 this.itemServiceDate = itemServiceDate;
124 }
125
126
127
128
129
130
131
132 public String getItemStockDescription() {
133 return itemStockDescription;
134 }
135
136
137
138
139
140
141
142 public void setItemStockDescription(String itemStockDescription) {
143 this.itemStockDescription = itemStockDescription;
144 }
145
146
147
148
149
150
151
152 public String getItemStockNumber() {
153 return itemStockNumber;
154 }
155
156
157
158
159
160
161
162 public void setItemStockNumber(String itemStockNumber) {
163 this.itemStockNumber = itemStockNumber;
164 }
165
166
167
168
169
170
171
172 public KualiDecimal getItemUnitAmount() {
173 return itemUnitAmount;
174 }
175
176
177
178
179
180
181
182 public void setItemUnitAmount(KualiDecimal itemUnitAmount) {
183 this.itemUnitAmount = itemUnitAmount;
184 }
185
186
187
188
189
190
191
192 public String getUnitOfMeasureCode() {
193 return unitOfMeasureCode;
194 }
195
196
197
198
199
200
201
202 public void setUnitOfMeasureCode(String unitOfMeasureCode) {
203 this.unitOfMeasureCode = unitOfMeasureCode;
204 }
205
206
207
208
209
210 public KualiDecimal getTotal() {
211 KualiDecimal total = new KualiDecimal(itemQuantity.toString());
212 return total.multiply(itemUnitAmount);
213 }
214
215
216
217
218
219 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
220 LinkedHashMap m = new LinkedHashMap();
221
222 m.put("docHeaderId", getDocumentNumber());
223 m.put("itemSequenceId", getItemSequenceId());
224
225 return m;
226 }
227 }