| 24229 |
amit.gupta |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
|
|
3 |
public class CatalogListingModel {
|
|
|
4 |
private int stockInHand;
|
|
|
5 |
private int inTransitQuantity;
|
|
|
6 |
private int toBeOrdered;
|
|
|
7 |
private int allocatedQuantity;
|
|
|
8 |
private int catalogId;
|
|
|
9 |
private String itemDescription;
|
| 25721 |
tejbeer |
10 |
private int recommendedQty;
|
|
|
11 |
private int minimumQty;
|
| 24229 |
amit.gupta |
12 |
private float dp;
|
|
|
13 |
private float mop;
|
| 26131 |
tejbeer |
14 |
private Integer last15DaysSale;
|
|
|
15 |
private Integer lastMonthSaleMap;
|
| 24229 |
amit.gupta |
16 |
private String brand;
|
|
|
17 |
private String modelName;
|
|
|
18 |
private String modelNumber;
|
| 26176 |
tejbeer |
19 |
private int remaining;
|
| 27770 |
tejbeer |
20 |
private int ourStockQty;
|
| 25721 |
tejbeer |
21 |
|
| 27770 |
tejbeer |
22 |
public int getOurStockQty() {
|
|
|
23 |
return ourStockQty;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public void setOurStockQty(int ourStockQty) {
|
|
|
27 |
this.ourStockQty = ourStockQty;
|
|
|
28 |
}
|
|
|
29 |
|
| 26176 |
tejbeer |
30 |
public int getRemaining() {
|
|
|
31 |
return remaining;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public void setRemaining(int remaining) {
|
|
|
35 |
this.remaining = remaining;
|
|
|
36 |
}
|
|
|
37 |
|
| 26131 |
tejbeer |
38 |
public Integer getLastMonthSaleMap() {
|
|
|
39 |
return lastMonthSaleMap;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public void setLastMonthSaleMap(Integer lastMonthSaleMap) {
|
|
|
43 |
this.lastMonthSaleMap = lastMonthSaleMap;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public void setLast15DaysSale(Integer last15DaysSale) {
|
|
|
47 |
this.last15DaysSale = last15DaysSale;
|
|
|
48 |
}
|
|
|
49 |
|
| 25721 |
tejbeer |
50 |
public int getRecommendedQty() {
|
|
|
51 |
return recommendedQty;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public int getLast15DaysSale() {
|
|
|
55 |
return last15DaysSale;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public void setLast15DaysSale(int last15DaysSale) {
|
|
|
59 |
this.last15DaysSale = last15DaysSale;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public void setRecommendedQty(int recommendedQty) {
|
|
|
63 |
this.recommendedQty = recommendedQty;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public int getMinimumQty() {
|
|
|
67 |
return minimumQty;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public void setMinimumQty(int minimumQty) {
|
|
|
71 |
this.minimumQty = minimumQty;
|
|
|
72 |
}
|
|
|
73 |
|
| 24229 |
amit.gupta |
74 |
public String getModelName() {
|
|
|
75 |
return modelName;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public void setModelName(String modelName) {
|
|
|
79 |
this.modelName = modelName;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public String getModelNumber() {
|
|
|
83 |
return modelNumber;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public void setModelNumber(String modelNumber) {
|
|
|
87 |
this.modelNumber = modelNumber;
|
|
|
88 |
}
|
|
|
89 |
|
| 25721 |
tejbeer |
90 |
// Optional
|
| 24229 |
amit.gupta |
91 |
private int fofoId;
|
|
|
92 |
|
|
|
93 |
public int getFofoId() {
|
|
|
94 |
return fofoId;
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
public void setFofoId(int fofoId) {
|
|
|
98 |
this.fofoId = fofoId;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
public String getBrand() {
|
|
|
102 |
return brand;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
public void setBrand(String brand) {
|
|
|
106 |
this.brand = brand;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
private int last30DaysSale;
|
|
|
110 |
|
|
|
111 |
public int getLast30DaysSale() {
|
|
|
112 |
return last30DaysSale;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public void setLast30DaysSale(int last30DaysSale) {
|
|
|
116 |
this.last30DaysSale = last30DaysSale;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public int getCategoryId() {
|
|
|
120 |
return categoryId;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public void setCategoryId(int categoryId) {
|
|
|
124 |
this.categoryId = categoryId;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
private int categoryId;
|
|
|
128 |
|
|
|
129 |
@Override
|
|
|
130 |
public String toString() {
|
|
|
131 |
return "CatalogListingModel [stockInHand=" + stockInHand + ", inTransitQuantity=" + inTransitQuantity
|
|
|
132 |
+ ", toBeOrdered=" + toBeOrdered + ", allocatedQuantity=" + allocatedQuantity + ", catalogId="
|
| 27770 |
tejbeer |
133 |
+ catalogId + ", itemDescription=" + itemDescription + ", recommendedQty=" + recommendedQty
|
|
|
134 |
+ ", minimumQty=" + minimumQty + ", dp=" + dp + ", mop=" + mop + ", last15DaysSale=" + last15DaysSale
|
|
|
135 |
+ ", lastMonthSaleMap=" + lastMonthSaleMap + ", brand=" + brand + ", modelName=" + modelName
|
|
|
136 |
+ ", modelNumber=" + modelNumber + ", remaining=" + remaining + ", ourStockQty=" + ourStockQty
|
|
|
137 |
+ ", fofoId=" + fofoId + ", last30DaysSale=" + last30DaysSale + ", categoryId=" + categoryId + "]";
|
| 24229 |
amit.gupta |
138 |
}
|
|
|
139 |
|
|
|
140 |
public int getStockInHand() {
|
|
|
141 |
return stockInHand;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
public void setStockInHand(int stockInHand) {
|
|
|
145 |
this.stockInHand = stockInHand;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
public int getInTransitQuantity() {
|
|
|
149 |
return inTransitQuantity;
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
public void setInTransitQuantity(int inTransitQuantity) {
|
|
|
153 |
this.inTransitQuantity = inTransitQuantity;
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
public int getToBeOrdered() {
|
|
|
157 |
return toBeOrdered;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public void setToBeOrdered(int toBeOrdered) {
|
|
|
161 |
this.toBeOrdered = toBeOrdered;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public int getAllocatedQuantity() {
|
|
|
165 |
return allocatedQuantity;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
public void setAllocatedQuantity(int allocatedQuantity) {
|
|
|
169 |
this.allocatedQuantity = allocatedQuantity;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
public int getCatalogId() {
|
|
|
173 |
return catalogId;
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
public void setCatalogId(int catalogId) {
|
|
|
177 |
this.catalogId = catalogId;
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
public String getItemDescription() {
|
|
|
181 |
return itemDescription;
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
public void setItemDescription(String itemDescription) {
|
|
|
185 |
this.itemDescription = itemDescription;
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
public float getDp() {
|
|
|
189 |
return dp;
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
public void setDp(float dp) {
|
|
|
193 |
this.dp = dp;
|
|
|
194 |
}
|
|
|
195 |
|
|
|
196 |
public float getMop() {
|
|
|
197 |
return mop;
|
|
|
198 |
}
|
|
|
199 |
|
|
|
200 |
public void setMop(float mop) {
|
|
|
201 |
this.mop = mop;
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
@Override
|
|
|
205 |
public int hashCode() {
|
|
|
206 |
final int prime = 31;
|
|
|
207 |
int result = 1;
|
|
|
208 |
result = prime * result + allocatedQuantity;
|
|
|
209 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
210 |
result = prime * result + catalogId;
|
|
|
211 |
result = prime * result + categoryId;
|
|
|
212 |
result = prime * result + Float.floatToIntBits(dp);
|
|
|
213 |
result = prime * result + fofoId;
|
|
|
214 |
result = prime * result + inTransitQuantity;
|
|
|
215 |
result = prime * result + ((itemDescription == null) ? 0 : itemDescription.hashCode());
|
| 27770 |
tejbeer |
216 |
result = prime * result + ((last15DaysSale == null) ? 0 : last15DaysSale.hashCode());
|
| 24229 |
amit.gupta |
217 |
result = prime * result + last30DaysSale;
|
| 27770 |
tejbeer |
218 |
result = prime * result + ((lastMonthSaleMap == null) ? 0 : lastMonthSaleMap.hashCode());
|
| 25721 |
tejbeer |
219 |
result = prime * result + minimumQty;
|
| 24229 |
amit.gupta |
220 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
221 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
222 |
result = prime * result + Float.floatToIntBits(mop);
|
| 27770 |
tejbeer |
223 |
result = prime * result + ourStockQty;
|
| 25721 |
tejbeer |
224 |
result = prime * result + recommendedQty;
|
| 27770 |
tejbeer |
225 |
result = prime * result + remaining;
|
| 24229 |
amit.gupta |
226 |
result = prime * result + stockInHand;
|
|
|
227 |
result = prime * result + toBeOrdered;
|
|
|
228 |
return result;
|
|
|
229 |
}
|
|
|
230 |
|
|
|
231 |
@Override
|
|
|
232 |
public boolean equals(Object obj) {
|
|
|
233 |
if (this == obj)
|
|
|
234 |
return true;
|
|
|
235 |
if (obj == null)
|
|
|
236 |
return false;
|
|
|
237 |
if (getClass() != obj.getClass())
|
|
|
238 |
return false;
|
|
|
239 |
CatalogListingModel other = (CatalogListingModel) obj;
|
|
|
240 |
if (allocatedQuantity != other.allocatedQuantity)
|
|
|
241 |
return false;
|
|
|
242 |
if (brand == null) {
|
|
|
243 |
if (other.brand != null)
|
|
|
244 |
return false;
|
|
|
245 |
} else if (!brand.equals(other.brand))
|
|
|
246 |
return false;
|
|
|
247 |
if (catalogId != other.catalogId)
|
|
|
248 |
return false;
|
|
|
249 |
if (categoryId != other.categoryId)
|
|
|
250 |
return false;
|
|
|
251 |
if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
|
|
|
252 |
return false;
|
|
|
253 |
if (fofoId != other.fofoId)
|
|
|
254 |
return false;
|
|
|
255 |
if (inTransitQuantity != other.inTransitQuantity)
|
|
|
256 |
return false;
|
|
|
257 |
if (itemDescription == null) {
|
|
|
258 |
if (other.itemDescription != null)
|
|
|
259 |
return false;
|
|
|
260 |
} else if (!itemDescription.equals(other.itemDescription))
|
|
|
261 |
return false;
|
| 27770 |
tejbeer |
262 |
if (last15DaysSale == null) {
|
|
|
263 |
if (other.last15DaysSale != null)
|
|
|
264 |
return false;
|
|
|
265 |
} else if (!last15DaysSale.equals(other.last15DaysSale))
|
| 25721 |
tejbeer |
266 |
return false;
|
| 24229 |
amit.gupta |
267 |
if (last30DaysSale != other.last30DaysSale)
|
|
|
268 |
return false;
|
| 27770 |
tejbeer |
269 |
if (lastMonthSaleMap == null) {
|
|
|
270 |
if (other.lastMonthSaleMap != null)
|
|
|
271 |
return false;
|
|
|
272 |
} else if (!lastMonthSaleMap.equals(other.lastMonthSaleMap))
|
|
|
273 |
return false;
|
| 25721 |
tejbeer |
274 |
if (minimumQty != other.minimumQty)
|
|
|
275 |
return false;
|
| 24229 |
amit.gupta |
276 |
if (modelName == null) {
|
|
|
277 |
if (other.modelName != null)
|
|
|
278 |
return false;
|
|
|
279 |
} else if (!modelName.equals(other.modelName))
|
|
|
280 |
return false;
|
|
|
281 |
if (modelNumber == null) {
|
|
|
282 |
if (other.modelNumber != null)
|
|
|
283 |
return false;
|
|
|
284 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
285 |
return false;
|
|
|
286 |
if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
|
|
|
287 |
return false;
|
| 27770 |
tejbeer |
288 |
if (ourStockQty != other.ourStockQty)
|
|
|
289 |
return false;
|
| 25721 |
tejbeer |
290 |
if (recommendedQty != other.recommendedQty)
|
|
|
291 |
return false;
|
| 27770 |
tejbeer |
292 |
if (remaining != other.remaining)
|
|
|
293 |
return false;
|
| 24229 |
amit.gupta |
294 |
if (stockInHand != other.stockInHand)
|
|
|
295 |
return false;
|
|
|
296 |
if (toBeOrdered != other.toBeOrdered)
|
|
|
297 |
return false;
|
|
|
298 |
return true;
|
|
|
299 |
}
|
|
|
300 |
|
|
|
301 |
}
|