Subversion Repositories SmartDukaan

Rev

Rev 27878 | Rev 30652 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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