Subversion Repositories SmartDukaan

Rev

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

Rev 26303 Rev 26304
Line 116... Line 116...
116
	}
116
	}
117
 
117
 
118
	@Transient
118
	@Transient
119
	private String itemDescription;
119
	private String itemDescription;
120
 
120
 
-
 
121
	@Transient
-
 
122
	private LocalDateTime activatedTimestamp;
-
 
123
	
-
 
124
	public LocalDateTime getActivatedTimestamp() {
-
 
125
		return activatedTimestamp;
-
 
126
	}
-
 
127
 
-
 
128
	public void setActivatedTimestamp(LocalDateTime activatedTimestamp) {
-
 
129
		this.activatedTimestamp = activatedTimestamp;
-
 
130
	}
-
 
131
 
121
	public int getId() {
132
	public int getId() {
122
		return id;
133
		return id;
123
	}
134
	}
124
 
135
 
125
	public void setId(int id) {
136
	public void setId(int id) {
Line 300... Line 311...
300
 
311
 
301
	@Override
312
	@Override
302
	public int hashCode() {
313
	public int hashCode() {
303
		final int prime = 31;
314
		final int prime = 31;
304
		int result = 1;
315
		int result = 1;
-
 
316
		result = prime * result + ((activatedTimestamp == null) ? 0 : activatedTimestamp.hashCode());
-
 
317
		result = prime * result + ((activationTimestamp == null) ? 0 : activationTimestamp.hashCode());
305
		result = prime * result + badQuantity;
318
		result = prime * result + badQuantity;
306
		result = prime * result + (buyBack ? 1231 : 1237);
319
		result = prime * result + (buyBack ? 1231 : 1237);
307
		result = prime * result + Float.floatToIntBits(cgstRate);
320
		result = prime * result + Float.floatToIntBits(cgstRate);
308
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
321
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
309
		result = prime * result + fofoId;
322
		result = prime * result + fofoId;
Line 333... Line 346...
333
		if (obj == null)
346
		if (obj == null)
334
			return false;
347
			return false;
335
		if (getClass() != obj.getClass())
348
		if (getClass() != obj.getClass())
336
			return false;
349
			return false;
337
		InventoryItem other = (InventoryItem) obj;
350
		InventoryItem other = (InventoryItem) obj;
-
 
351
		if (activatedTimestamp == null) {
-
 
352
			if (other.activatedTimestamp != null)
-
 
353
				return false;
-
 
354
		} else if (!activatedTimestamp.equals(other.activatedTimestamp))
-
 
355
			return false;
-
 
356
		if (activationTimestamp == null) {
-
 
357
			if (other.activationTimestamp != null)
-
 
358
				return false;
-
 
359
		} else if (!activationTimestamp.equals(other.activationTimestamp))
-
 
360
			return false;
338
		if (badQuantity != other.badQuantity)
361
		if (badQuantity != other.badQuantity)
339
			return false;
362
			return false;
340
		if (buyBack != other.buyBack)
363
		if (buyBack != other.buyBack)
341
			return false;
364
			return false;
342
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
365
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
Line 403... Line 426...
403
 
426
 
404
	@Override
427
	@Override
405
	public String toString() {
428
	public String toString() {
406
		return "InventoryItem [id=" + id + ", itemId=" + itemId + ", fofoId=" + fofoId + ", serialNumber="
429
		return "InventoryItem [id=" + id + ", itemId=" + itemId + ", fofoId=" + fofoId + ", serialNumber="
407
				+ serialNumber + ", initialQuantity=" + initialQuantity + ", goodQuantity=" + goodQuantity
430
				+ serialNumber + ", initialQuantity=" + initialQuantity + ", goodQuantity=" + goodQuantity
408
				+ ", badQuantity=" + badQuantity + ", lastScanType=" + lastScanType + ", purchaseId=" + purchaseId
431
				+ ", badQuantity=" + badQuantity + ", activationTimestamp=" + activationTimestamp + ", lastScanType="
409
				+ ", unitPrice=" + unitPrice + ", priceDropAmount=" + priceDropAmount + ", buyBack=" + buyBack
432
				+ lastScanType + ", purchaseId=" + purchaseId + ", unitPrice=" + unitPrice + ", priceDropAmount="
410
				+ ", igstRate=" + igstRate + ", cgstRate=" + cgstRate + ", sgstRate=" + sgstRate + ", hsnCode="
433
				+ priceDropAmount + ", buyBack=" + buyBack + ", igstRate=" + igstRate + ", cgstRate=" + cgstRate
411
				+ hsnCode + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + ", item="
434
				+ ", sgstRate=" + sgstRate + ", hsnCode=" + hsnCode + ", createTimestamp=" + createTimestamp
412
				+ item + ", purchase=" + purchase + ", itemDescription="
435
				+ ", updateTimestamp=" + updateTimestamp + ", item=" + item + ", purchase=" + purchase
413
				+ itemDescription + "]";
436
				+ ", itemDescription=" + itemDescription + ", activatedTimestamp=" + activatedTimestamp + "]";
414
	}
437
	}
415
 
438
 
416
	@Override
439
	@Override
417
	public int compareTo(Object o) {
440
	public int compareTo(Object o) {
418
		return o.hashCode() - this.hashCode();
441
		return o.hashCode() - this.hashCode();