| 21716 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.entity.transaction;
|
| 21545 |
ashik.ali |
2 |
|
|
|
3 |
import java.io.Serializable;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
|
| 21653 |
ashik.ali |
6 |
import javax.persistence.CascadeType;
|
| 21545 |
ashik.ali |
7 |
import javax.persistence.Column;
|
|
|
8 |
import javax.persistence.Entity;
|
| 21653 |
ashik.ali |
9 |
import javax.persistence.FetchType;
|
| 21545 |
ashik.ali |
10 |
import javax.persistence.GeneratedValue;
|
|
|
11 |
import javax.persistence.GenerationType;
|
|
|
12 |
import javax.persistence.Id;
|
| 21653 |
ashik.ali |
13 |
import javax.persistence.JoinColumn;
|
| 21545 |
ashik.ali |
14 |
import javax.persistence.NamedQueries;
|
|
|
15 |
import javax.persistence.NamedQuery;
|
| 21653 |
ashik.ali |
16 |
import javax.persistence.OneToOne;
|
| 21545 |
ashik.ali |
17 |
import javax.persistence.Table;
|
|
|
18 |
|
| 21716 |
ashik.ali |
19 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
|
|
20 |
|
| 21545 |
ashik.ali |
21 |
/**
|
|
|
22 |
* This class basically contains api details
|
|
|
23 |
*
|
|
|
24 |
* @author ashikali
|
|
|
25 |
*
|
|
|
26 |
*/
|
|
|
27 |
@Entity
|
|
|
28 |
@Table(name="transaction.lineitem", schema = "transaction")
|
|
|
29 |
@NamedQueries({
|
|
|
30 |
@NamedQuery(name="LineItem.selectAll",query="select li from LineItem li"),
|
| 21580 |
ashik.ali |
31 |
@NamedQuery(name="LineItem.selectById",query="select li from LineItem li where li.id= :id")
|
| 21545 |
ashik.ali |
32 |
})
|
|
|
33 |
public class LineItem implements Serializable{
|
|
|
34 |
|
|
|
35 |
private static final long serialVersionUID = 1L;
|
|
|
36 |
|
|
|
37 |
public LineItem() {
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
@Id
|
|
|
41 |
@Column(name="id", unique=true, updatable=false)
|
|
|
42 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
| 21628 |
kshitij.so |
43 |
private Integer id;
|
| 21545 |
ashik.ali |
44 |
|
|
|
45 |
@Column(name = "item_id")
|
| 21628 |
kshitij.so |
46 |
private Integer itemId;
|
| 21545 |
ashik.ali |
47 |
|
|
|
48 |
@Column(name = "productGroup", length = 100)
|
|
|
49 |
private String productGoup;
|
|
|
50 |
|
|
|
51 |
@Column(name = "brand", length = 100)
|
|
|
52 |
private String brand;
|
|
|
53 |
|
|
|
54 |
@Column(name = "model_number", length = 100)
|
|
|
55 |
private String modelNumber;
|
|
|
56 |
|
|
|
57 |
@Column(name = "model_name", length = 100)
|
|
|
58 |
private String modelName;
|
|
|
59 |
|
|
|
60 |
@Column(name = "color", length = 20)
|
|
|
61 |
private String color;
|
|
|
62 |
|
|
|
63 |
@Column(name = "extra_info", length = 100)
|
|
|
64 |
private String extraInfo;
|
|
|
65 |
|
|
|
66 |
@Column(name = "quantity")
|
| 21628 |
kshitij.so |
67 |
private Float quantity;
|
| 21545 |
ashik.ali |
68 |
|
|
|
69 |
@Column(name = "mrp")
|
| 21628 |
kshitij.so |
70 |
private Float mrp;
|
| 21545 |
ashik.ali |
71 |
|
|
|
72 |
@Column(name = "unit_price")
|
| 21628 |
kshitij.so |
73 |
private Float unitPrice;
|
| 21545 |
ashik.ali |
74 |
|
|
|
75 |
@Column(name = "unit_weight")
|
| 21628 |
kshitij.so |
76 |
private Float unitWeight;
|
| 21545 |
ashik.ali |
77 |
|
|
|
78 |
@Column(name = "total_price")
|
| 21628 |
kshitij.so |
79 |
private Float totalPrice;
|
| 21545 |
ashik.ali |
80 |
|
|
|
81 |
@Column(name = "transfer_price")
|
| 21628 |
kshitij.so |
82 |
private Float transferPrice;
|
| 21545 |
ashik.ali |
83 |
|
| 21628 |
kshitij.so |
84 |
@Column(name = "total_weight")
|
|
|
85 |
private Float totalWeight;
|
| 21545 |
ashik.ali |
86 |
|
|
|
87 |
@Column(name = "order_id")
|
| 21628 |
kshitij.so |
88 |
private Integer orderId;
|
| 21545 |
ashik.ali |
89 |
|
|
|
90 |
@Column(name = "imei_number", length = 20)
|
|
|
91 |
private String imeiNumber;
|
|
|
92 |
|
|
|
93 |
@Column(name = "item_number", length = 50)
|
|
|
94 |
private String itemNumber;
|
|
|
95 |
|
|
|
96 |
@Column(name = "dealText", length = 100)
|
|
|
97 |
private String dealText;
|
|
|
98 |
|
|
|
99 |
@Column(name = "warranty_expiry_timestamp")
|
|
|
100 |
private LocalDateTime warrantyExpiryTimestamp;
|
|
|
101 |
|
|
|
102 |
@Column(name = "serial_number", length = 8192)
|
|
|
103 |
private String serialNumber;
|
|
|
104 |
|
|
|
105 |
@Column(name = "vatRate")
|
| 21628 |
kshitij.so |
106 |
private Float vatRate;
|
| 21545 |
ashik.ali |
107 |
|
|
|
108 |
@Column(name = "nlc")
|
| 21628 |
kshitij.so |
109 |
private Float nlc;
|
| 21545 |
ashik.ali |
110 |
|
|
|
111 |
@Column(name = "logisticsCost")
|
| 21628 |
kshitij.so |
112 |
private Float logisticsCost;
|
| 21545 |
ashik.ali |
113 |
|
|
|
114 |
@Column(name = "codCollectionCharges")
|
| 21628 |
kshitij.so |
115 |
private Float codCollectionCharges;
|
| 21545 |
ashik.ali |
116 |
|
|
|
117 |
@Column(name = "returnQty")
|
| 21628 |
kshitij.so |
118 |
private Float returnQty;
|
| 21545 |
ashik.ali |
119 |
|
|
|
120 |
@Column(name = "damaged_expiry_timestamp")
|
|
|
121 |
private LocalDateTime damagedExpiryTimestamp;
|
|
|
122 |
|
| 21653 |
ashik.ali |
123 |
@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
|
|
|
124 |
//@Fetch(value = FetchMode.SUBSELECT)
|
|
|
125 |
@JoinColumn(name="item_id",insertable=false,updatable=false,nullable=false, referencedColumnName = "id")
|
|
|
126 |
private Item item;
|
|
|
127 |
|
| 21628 |
kshitij.so |
128 |
public Integer getId() {
|
| 21545 |
ashik.ali |
129 |
return id;
|
|
|
130 |
}
|
| 21628 |
kshitij.so |
131 |
public void setId(Integer id) {
|
| 21545 |
ashik.ali |
132 |
this.id = id;
|
|
|
133 |
}
|
| 21628 |
kshitij.so |
134 |
public Integer getItemId() {
|
| 21545 |
ashik.ali |
135 |
return itemId;
|
|
|
136 |
}
|
| 21628 |
kshitij.so |
137 |
public void setItemId(Integer itemId) {
|
| 21545 |
ashik.ali |
138 |
this.itemId = itemId;
|
|
|
139 |
}
|
|
|
140 |
public String getProductGoup() {
|
|
|
141 |
return productGoup;
|
|
|
142 |
}
|
|
|
143 |
public void setProductGoup(String productGoup) {
|
|
|
144 |
this.productGoup = productGoup;
|
|
|
145 |
}
|
|
|
146 |
public String getBrand() {
|
|
|
147 |
return brand;
|
|
|
148 |
}
|
|
|
149 |
public void setBrand(String brand) {
|
|
|
150 |
this.brand = brand;
|
|
|
151 |
}
|
|
|
152 |
public String getModelNumber() {
|
|
|
153 |
return modelNumber;
|
|
|
154 |
}
|
|
|
155 |
public void setModelNumber(String modelNumber) {
|
|
|
156 |
this.modelNumber = modelNumber;
|
|
|
157 |
}
|
| 21924 |
ashik.ali |
158 |
|
| 21545 |
ashik.ali |
159 |
public String getModelName() {
|
|
|
160 |
return modelName;
|
|
|
161 |
}
|
|
|
162 |
public void setModelName(String modelName) {
|
|
|
163 |
this.modelName = modelName;
|
|
|
164 |
}
|
|
|
165 |
public String getColor() {
|
|
|
166 |
return color;
|
|
|
167 |
}
|
|
|
168 |
public void setColor(String color) {
|
|
|
169 |
this.color = color;
|
|
|
170 |
}
|
|
|
171 |
public String getExtraInfo() {
|
|
|
172 |
return extraInfo;
|
|
|
173 |
}
|
|
|
174 |
public void setExtraInfo(String extraInfo) {
|
|
|
175 |
this.extraInfo = extraInfo;
|
|
|
176 |
}
|
| 21628 |
kshitij.so |
177 |
public Float getQuantity() {
|
| 21545 |
ashik.ali |
178 |
return quantity;
|
|
|
179 |
}
|
| 21628 |
kshitij.so |
180 |
public void setQuantity(Float quantity) {
|
| 21545 |
ashik.ali |
181 |
this.quantity = quantity;
|
|
|
182 |
}
|
| 21628 |
kshitij.so |
183 |
public Float getMrp() {
|
| 21545 |
ashik.ali |
184 |
return mrp;
|
|
|
185 |
}
|
| 21628 |
kshitij.so |
186 |
public void setMrp(Float mrp) {
|
| 21545 |
ashik.ali |
187 |
this.mrp = mrp;
|
|
|
188 |
}
|
| 21628 |
kshitij.so |
189 |
public Float getUnitPrice() {
|
| 21545 |
ashik.ali |
190 |
return unitPrice;
|
|
|
191 |
}
|
| 21628 |
kshitij.so |
192 |
public void setUnitPrice(Float unitPrice) {
|
| 21545 |
ashik.ali |
193 |
this.unitPrice = unitPrice;
|
|
|
194 |
}
|
| 21628 |
kshitij.so |
195 |
public Float getUnitWeight() {
|
| 21545 |
ashik.ali |
196 |
return unitWeight;
|
|
|
197 |
}
|
| 21628 |
kshitij.so |
198 |
public void setUnitWeight(Float unitWeight) {
|
| 21545 |
ashik.ali |
199 |
this.unitWeight = unitWeight;
|
|
|
200 |
}
|
| 21628 |
kshitij.so |
201 |
public Float getTotalPrice() {
|
| 21545 |
ashik.ali |
202 |
return totalPrice;
|
|
|
203 |
}
|
| 21628 |
kshitij.so |
204 |
public void setTotalPrice(Float totalPrice) {
|
| 21545 |
ashik.ali |
205 |
this.totalPrice = totalPrice;
|
|
|
206 |
}
|
| 21628 |
kshitij.so |
207 |
public Float getTransferPrice() {
|
| 21545 |
ashik.ali |
208 |
return transferPrice;
|
|
|
209 |
}
|
| 21628 |
kshitij.so |
210 |
public void setTransferPrice(Float transferPrice) {
|
| 21545 |
ashik.ali |
211 |
this.transferPrice = transferPrice;
|
|
|
212 |
}
|
| 21628 |
kshitij.so |
213 |
public Float getTotalWeight() {
|
| 21545 |
ashik.ali |
214 |
return totalWeight;
|
|
|
215 |
}
|
| 21628 |
kshitij.so |
216 |
public void setTotalWeight(Float totalWeight) {
|
| 21545 |
ashik.ali |
217 |
this.totalWeight = totalWeight;
|
|
|
218 |
}
|
| 21628 |
kshitij.so |
219 |
public Integer getOrderId(){
|
| 21545 |
ashik.ali |
220 |
return orderId;
|
|
|
221 |
}
|
| 21628 |
kshitij.so |
222 |
public void setOrderId(Integer orderId) {
|
| 21545 |
ashik.ali |
223 |
this.orderId = orderId;
|
|
|
224 |
}
|
|
|
225 |
public String getImeiNumber() {
|
|
|
226 |
return imeiNumber;
|
|
|
227 |
}
|
|
|
228 |
public void setImeiNumber(String imeiNumber) {
|
|
|
229 |
this.imeiNumber = imeiNumber;
|
|
|
230 |
}
|
|
|
231 |
public String getItemNumber() {
|
|
|
232 |
return itemNumber;
|
|
|
233 |
}
|
|
|
234 |
public void setItemNumber(String itemNumber) {
|
|
|
235 |
this.itemNumber = itemNumber;
|
|
|
236 |
}
|
|
|
237 |
public String getDealText() {
|
|
|
238 |
return dealText;
|
|
|
239 |
}
|
|
|
240 |
public void setDealText(String dealText) {
|
|
|
241 |
this.dealText = dealText;
|
|
|
242 |
}
|
|
|
243 |
public LocalDateTime getWarrantyExpiryTimestamp() {
|
|
|
244 |
return warrantyExpiryTimestamp;
|
|
|
245 |
}
|
|
|
246 |
public void setWarrantyExpiryTimestamp(LocalDateTime warrantyExpiryTimestamp) {
|
|
|
247 |
this.warrantyExpiryTimestamp = warrantyExpiryTimestamp;
|
|
|
248 |
}
|
|
|
249 |
public String getSerialNumber() {
|
|
|
250 |
return serialNumber;
|
|
|
251 |
}
|
|
|
252 |
public void setSerialNumber(String serialNumber) {
|
|
|
253 |
this.serialNumber = serialNumber;
|
|
|
254 |
}
|
| 21628 |
kshitij.so |
255 |
public Float getVatRate() {
|
| 21545 |
ashik.ali |
256 |
return vatRate;
|
|
|
257 |
}
|
| 21628 |
kshitij.so |
258 |
public void setVatRate(Float vatRate) {
|
| 21545 |
ashik.ali |
259 |
this.vatRate = vatRate;
|
|
|
260 |
}
|
| 21628 |
kshitij.so |
261 |
public Float getNlc() {
|
| 21545 |
ashik.ali |
262 |
return nlc;
|
|
|
263 |
}
|
| 21628 |
kshitij.so |
264 |
public void setNlc(Float nlc) {
|
| 21545 |
ashik.ali |
265 |
this.nlc = nlc;
|
|
|
266 |
}
|
| 21628 |
kshitij.so |
267 |
public Float getLogisticsCost() {
|
| 21545 |
ashik.ali |
268 |
return logisticsCost;
|
|
|
269 |
}
|
| 21628 |
kshitij.so |
270 |
public void setLogisticsCost(Float logisticsCost) {
|
| 21545 |
ashik.ali |
271 |
this.logisticsCost = logisticsCost;
|
|
|
272 |
}
|
| 21628 |
kshitij.so |
273 |
public Float getCodCollectionCharges() {
|
| 21545 |
ashik.ali |
274 |
return codCollectionCharges;
|
|
|
275 |
}
|
| 21628 |
kshitij.so |
276 |
public void setCodCollectionCharges(Float codCollectionCharges) {
|
| 21545 |
ashik.ali |
277 |
this.codCollectionCharges = codCollectionCharges;
|
|
|
278 |
}
|
| 21628 |
kshitij.so |
279 |
public Float getReturnQty() {
|
| 21545 |
ashik.ali |
280 |
return returnQty;
|
|
|
281 |
}
|
| 21628 |
kshitij.so |
282 |
public void setReturnQty(Float returnQty) {
|
| 21545 |
ashik.ali |
283 |
this.returnQty = returnQty;
|
|
|
284 |
}
|
|
|
285 |
public LocalDateTime getDamagedExpiryTimestamp() {
|
|
|
286 |
return damagedExpiryTimestamp;
|
|
|
287 |
}
|
|
|
288 |
public void setDamagedExpiryTimestamp(LocalDateTime damagedExpiryTimestamp) {
|
|
|
289 |
this.damagedExpiryTimestamp = damagedExpiryTimestamp;
|
|
|
290 |
}
|
| 21653 |
ashik.ali |
291 |
|
|
|
292 |
public Item getItem() {
|
|
|
293 |
return item;
|
| 21545 |
ashik.ali |
294 |
}
|
| 21653 |
ashik.ali |
295 |
public void setItem(Item item) {
|
|
|
296 |
this.item = item;
|
|
|
297 |
}
|
| 21545 |
ashik.ali |
298 |
|
| 21924 |
ashik.ali |
299 |
|
|
|
300 |
@Override
|
|
|
301 |
public int hashCode() {
|
|
|
302 |
final int prime = 31;
|
|
|
303 |
int result = 1;
|
|
|
304 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
305 |
result = prime * result + ((codCollectionCharges == null) ? 0 : codCollectionCharges.hashCode());
|
|
|
306 |
result = prime * result + ((color == null) ? 0 : color.hashCode());
|
|
|
307 |
result = prime * result + ((damagedExpiryTimestamp == null) ? 0 : damagedExpiryTimestamp.hashCode());
|
|
|
308 |
result = prime * result + ((dealText == null) ? 0 : dealText.hashCode());
|
|
|
309 |
result = prime * result + ((extraInfo == null) ? 0 : extraInfo.hashCode());
|
|
|
310 |
result = prime * result + ((id == null) ? 0 : id.hashCode());
|
|
|
311 |
result = prime * result + ((imeiNumber == null) ? 0 : imeiNumber.hashCode());
|
|
|
312 |
result = prime * result + ((item == null) ? 0 : item.hashCode());
|
|
|
313 |
result = prime * result + ((itemId == null) ? 0 : itemId.hashCode());
|
|
|
314 |
result = prime * result + ((itemNumber == null) ? 0 : itemNumber.hashCode());
|
|
|
315 |
result = prime * result + ((logisticsCost == null) ? 0 : logisticsCost.hashCode());
|
|
|
316 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
317 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
318 |
result = prime * result + ((mrp == null) ? 0 : mrp.hashCode());
|
|
|
319 |
result = prime * result + ((nlc == null) ? 0 : nlc.hashCode());
|
|
|
320 |
result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
|
|
|
321 |
result = prime * result + ((productGoup == null) ? 0 : productGoup.hashCode());
|
|
|
322 |
result = prime * result + ((quantity == null) ? 0 : quantity.hashCode());
|
|
|
323 |
result = prime * result + ((returnQty == null) ? 0 : returnQty.hashCode());
|
|
|
324 |
result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
|
|
|
325 |
result = prime * result + ((totalPrice == null) ? 0 : totalPrice.hashCode());
|
|
|
326 |
result = prime * result + ((totalWeight == null) ? 0 : totalWeight.hashCode());
|
|
|
327 |
result = prime * result + ((transferPrice == null) ? 0 : transferPrice.hashCode());
|
|
|
328 |
result = prime * result + ((unitPrice == null) ? 0 : unitPrice.hashCode());
|
|
|
329 |
result = prime * result + ((unitWeight == null) ? 0 : unitWeight.hashCode());
|
|
|
330 |
result = prime * result + ((vatRate == null) ? 0 : vatRate.hashCode());
|
|
|
331 |
result = prime * result + ((warrantyExpiryTimestamp == null) ? 0 : warrantyExpiryTimestamp.hashCode());
|
|
|
332 |
return result;
|
|
|
333 |
}
|
|
|
334 |
@Override
|
|
|
335 |
public boolean equals(Object obj) {
|
|
|
336 |
if (this == obj)
|
|
|
337 |
return true;
|
|
|
338 |
if (obj == null)
|
|
|
339 |
return false;
|
|
|
340 |
if (getClass() != obj.getClass())
|
|
|
341 |
return false;
|
|
|
342 |
LineItem other = (LineItem) obj;
|
|
|
343 |
if (brand == null) {
|
|
|
344 |
if (other.brand != null)
|
|
|
345 |
return false;
|
|
|
346 |
} else if (!brand.equals(other.brand))
|
|
|
347 |
return false;
|
|
|
348 |
if (codCollectionCharges == null) {
|
|
|
349 |
if (other.codCollectionCharges != null)
|
|
|
350 |
return false;
|
|
|
351 |
} else if (!codCollectionCharges.equals(other.codCollectionCharges))
|
|
|
352 |
return false;
|
|
|
353 |
if (color == null) {
|
|
|
354 |
if (other.color != null)
|
|
|
355 |
return false;
|
|
|
356 |
} else if (!color.equals(other.color))
|
|
|
357 |
return false;
|
|
|
358 |
if (damagedExpiryTimestamp == null) {
|
|
|
359 |
if (other.damagedExpiryTimestamp != null)
|
|
|
360 |
return false;
|
|
|
361 |
} else if (!damagedExpiryTimestamp.equals(other.damagedExpiryTimestamp))
|
|
|
362 |
return false;
|
|
|
363 |
if (dealText == null) {
|
|
|
364 |
if (other.dealText != null)
|
|
|
365 |
return false;
|
|
|
366 |
} else if (!dealText.equals(other.dealText))
|
|
|
367 |
return false;
|
|
|
368 |
if (extraInfo == null) {
|
|
|
369 |
if (other.extraInfo != null)
|
|
|
370 |
return false;
|
|
|
371 |
} else if (!extraInfo.equals(other.extraInfo))
|
|
|
372 |
return false;
|
|
|
373 |
if (id == null) {
|
|
|
374 |
if (other.id != null)
|
|
|
375 |
return false;
|
|
|
376 |
} else if (!id.equals(other.id))
|
|
|
377 |
return false;
|
|
|
378 |
if (imeiNumber == null) {
|
|
|
379 |
if (other.imeiNumber != null)
|
|
|
380 |
return false;
|
|
|
381 |
} else if (!imeiNumber.equals(other.imeiNumber))
|
|
|
382 |
return false;
|
|
|
383 |
if (item == null) {
|
|
|
384 |
if (other.item != null)
|
|
|
385 |
return false;
|
|
|
386 |
} else if (!item.equals(other.item))
|
|
|
387 |
return false;
|
|
|
388 |
if (itemId == null) {
|
|
|
389 |
if (other.itemId != null)
|
|
|
390 |
return false;
|
|
|
391 |
} else if (!itemId.equals(other.itemId))
|
|
|
392 |
return false;
|
|
|
393 |
if (itemNumber == null) {
|
|
|
394 |
if (other.itemNumber != null)
|
|
|
395 |
return false;
|
|
|
396 |
} else if (!itemNumber.equals(other.itemNumber))
|
|
|
397 |
return false;
|
|
|
398 |
if (logisticsCost == null) {
|
|
|
399 |
if (other.logisticsCost != null)
|
|
|
400 |
return false;
|
|
|
401 |
} else if (!logisticsCost.equals(other.logisticsCost))
|
|
|
402 |
return false;
|
|
|
403 |
if (modelName == null) {
|
|
|
404 |
if (other.modelName != null)
|
|
|
405 |
return false;
|
|
|
406 |
} else if (!modelName.equals(other.modelName))
|
|
|
407 |
return false;
|
|
|
408 |
if (modelNumber == null) {
|
|
|
409 |
if (other.modelNumber != null)
|
|
|
410 |
return false;
|
|
|
411 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
412 |
return false;
|
|
|
413 |
if (mrp == null) {
|
|
|
414 |
if (other.mrp != null)
|
|
|
415 |
return false;
|
|
|
416 |
} else if (!mrp.equals(other.mrp))
|
|
|
417 |
return false;
|
|
|
418 |
if (nlc == null) {
|
|
|
419 |
if (other.nlc != null)
|
|
|
420 |
return false;
|
|
|
421 |
} else if (!nlc.equals(other.nlc))
|
|
|
422 |
return false;
|
|
|
423 |
if (orderId == null) {
|
|
|
424 |
if (other.orderId != null)
|
|
|
425 |
return false;
|
|
|
426 |
} else if (!orderId.equals(other.orderId))
|
|
|
427 |
return false;
|
|
|
428 |
if (productGoup == null) {
|
|
|
429 |
if (other.productGoup != null)
|
|
|
430 |
return false;
|
|
|
431 |
} else if (!productGoup.equals(other.productGoup))
|
|
|
432 |
return false;
|
|
|
433 |
if (quantity == null) {
|
|
|
434 |
if (other.quantity != null)
|
|
|
435 |
return false;
|
|
|
436 |
} else if (!quantity.equals(other.quantity))
|
|
|
437 |
return false;
|
|
|
438 |
if (returnQty == null) {
|
|
|
439 |
if (other.returnQty != null)
|
|
|
440 |
return false;
|
|
|
441 |
} else if (!returnQty.equals(other.returnQty))
|
|
|
442 |
return false;
|
|
|
443 |
if (serialNumber == null) {
|
|
|
444 |
if (other.serialNumber != null)
|
|
|
445 |
return false;
|
|
|
446 |
} else if (!serialNumber.equals(other.serialNumber))
|
|
|
447 |
return false;
|
|
|
448 |
if (totalPrice == null) {
|
|
|
449 |
if (other.totalPrice != null)
|
|
|
450 |
return false;
|
|
|
451 |
} else if (!totalPrice.equals(other.totalPrice))
|
|
|
452 |
return false;
|
|
|
453 |
if (totalWeight == null) {
|
|
|
454 |
if (other.totalWeight != null)
|
|
|
455 |
return false;
|
|
|
456 |
} else if (!totalWeight.equals(other.totalWeight))
|
|
|
457 |
return false;
|
|
|
458 |
if (transferPrice == null) {
|
|
|
459 |
if (other.transferPrice != null)
|
|
|
460 |
return false;
|
|
|
461 |
} else if (!transferPrice.equals(other.transferPrice))
|
|
|
462 |
return false;
|
|
|
463 |
if (unitPrice == null) {
|
|
|
464 |
if (other.unitPrice != null)
|
|
|
465 |
return false;
|
|
|
466 |
} else if (!unitPrice.equals(other.unitPrice))
|
|
|
467 |
return false;
|
|
|
468 |
if (unitWeight == null) {
|
|
|
469 |
if (other.unitWeight != null)
|
|
|
470 |
return false;
|
|
|
471 |
} else if (!unitWeight.equals(other.unitWeight))
|
|
|
472 |
return false;
|
|
|
473 |
if (vatRate == null) {
|
|
|
474 |
if (other.vatRate != null)
|
|
|
475 |
return false;
|
|
|
476 |
} else if (!vatRate.equals(other.vatRate))
|
|
|
477 |
return false;
|
|
|
478 |
if (warrantyExpiryTimestamp == null) {
|
|
|
479 |
if (other.warrantyExpiryTimestamp != null)
|
|
|
480 |
return false;
|
|
|
481 |
} else if (!warrantyExpiryTimestamp.equals(other.warrantyExpiryTimestamp))
|
|
|
482 |
return false;
|
|
|
483 |
return true;
|
|
|
484 |
}
|
|
|
485 |
@Override
|
|
|
486 |
public String toString() {
|
|
|
487 |
return "LineItem [id=" + id + ", itemId=" + itemId + ", productGoup=" + productGoup + ", brand=" + brand
|
|
|
488 |
+ ", modelNumber=" + modelNumber + ", modelName=" + modelName + ", color=" + color + ", extraInfo="
|
|
|
489 |
+ extraInfo + ", quantity=" + quantity + ", mrp=" + mrp + ", unitPrice=" + unitPrice + ", unitWeight="
|
|
|
490 |
+ unitWeight + ", totalPrice=" + totalPrice + ", transferPrice=" + transferPrice + ", totalWeight="
|
|
|
491 |
+ totalWeight + ", orderId=" + orderId + ", imeiNumber=" + imeiNumber + ", itemNumber=" + itemNumber
|
|
|
492 |
+ ", dealText=" + dealText + ", warrantyExpiryTimestamp=" + warrantyExpiryTimestamp + ", serialNumber="
|
|
|
493 |
+ serialNumber + ", vatRate=" + vatRate + ", nlc=" + nlc + ", logisticsCost=" + logisticsCost
|
|
|
494 |
+ ", codCollectionCharges=" + codCollectionCharges + ", returnQty=" + returnQty
|
|
|
495 |
+ ", damagedExpiryTimestamp=" + damagedExpiryTimestamp + ", item=" + item + "]";
|
|
|
496 |
}
|
|
|
497 |
|
| 21545 |
ashik.ali |
498 |
}
|