| 31760 |
amit.gupta |
1 |
package com.spice.profitmandi.model;
|
|
|
2 |
|
|
|
3 |
import java.util.Map;
|
|
|
4 |
import java.util.Objects;
|
|
|
5 |
|
|
|
6 |
public class WarehouseItemQtyModel {
|
|
|
7 |
|
|
|
8 |
Map<Integer, Integer> vendorWarehouseNetAvailability;
|
|
|
9 |
private int itemId;
|
|
|
10 |
private int warehouseFrom;
|
|
|
11 |
private int availability;
|
|
|
12 |
private int reserved;
|
|
|
13 |
private int netAvailability;
|
|
|
14 |
private int vendorWarehouseId;
|
|
|
15 |
private int fulfillQty;
|
|
|
16 |
|
|
|
17 |
public WarehouseItemQtyModel(int itemId, int warehouseFrom, int vendorWarehouseId, int availability, int reserved, int netAvailability) {
|
|
|
18 |
this.itemId = itemId;
|
|
|
19 |
this.warehouseFrom = warehouseFrom;
|
|
|
20 |
this.vendorWarehouseId = vendorWarehouseId;
|
|
|
21 |
this.availability = availability;
|
|
|
22 |
this.reserved = reserved;
|
|
|
23 |
this.netAvailability = netAvailability;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public Map<Integer, Integer> getVendorWarehouseNetAvailability() {
|
|
|
27 |
return vendorWarehouseNetAvailability;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public void setVendorWarehouseNetAvailability(Map<Integer, Integer> vendorWarehouseNetAvailability) {
|
|
|
31 |
this.vendorWarehouseNetAvailability = vendorWarehouseNetAvailability;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public int getVendorWarehouseId() {
|
|
|
35 |
return vendorWarehouseId;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public void setVendorWarehouseId(int vendorWarehouseId) {
|
|
|
39 |
this.vendorWarehouseId = vendorWarehouseId;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public int getFulfillQty() {
|
|
|
43 |
return fulfillQty;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public void setFulfillQty(int fulfillQty) {
|
|
|
47 |
this.fulfillQty = fulfillQty;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
@Override
|
|
|
51 |
public String toString() {
|
|
|
52 |
return "WarehouseItemQtyModel{" +
|
|
|
53 |
"itemId=" + itemId +
|
|
|
54 |
", warehouseFrom=" + warehouseFrom +
|
|
|
55 |
", availability=" + availability +
|
|
|
56 |
", reserved=" + reserved +
|
|
|
57 |
", netAvailability=" + netAvailability +
|
|
|
58 |
", vendorWarehouseId=" + vendorWarehouseId +
|
|
|
59 |
'}';
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
@Override
|
|
|
63 |
public boolean equals(Object o) {
|
|
|
64 |
if (this == o) return true;
|
|
|
65 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
66 |
WarehouseItemQtyModel that = (WarehouseItemQtyModel) o;
|
|
|
67 |
return itemId == that.itemId && warehouseFrom == that.warehouseFrom && availability == that.availability && reserved == that.reserved && netAvailability == that.netAvailability && vendorWarehouseId == that.vendorWarehouseId;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
@Override
|
|
|
71 |
public int hashCode() {
|
|
|
72 |
return Objects.hash(itemId, warehouseFrom, availability, reserved, netAvailability, vendorWarehouseId);
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
public int getNetAvailability() {
|
|
|
76 |
return netAvailability;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
public void setNetAvailability(int netAvailability) {
|
|
|
80 |
this.netAvailability = netAvailability;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public int getAvailability() {
|
|
|
84 |
return availability;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
public void setAvailability(int availability) {
|
|
|
88 |
this.availability = availability;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
public int getReserved() {
|
|
|
92 |
return reserved;
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
public void setReserved(int reserved) {
|
|
|
96 |
this.reserved = reserved;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public int getItemId() {
|
|
|
100 |
return itemId;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
public void setItemId(int itemId) {
|
|
|
104 |
this.itemId = itemId;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public int getWarehouseFrom() {
|
|
|
108 |
return warehouseFrom;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public void setWarehouseFrom(int warehouseFrom) {
|
|
|
112 |
this.warehouseFrom = warehouseFrom;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
}
|