| Line 176... |
Line 176... |
| 176 |
return fofoLineItemSerialNumbers;
|
176 |
return fofoLineItemSerialNumbers;
|
| 177 |
}
|
177 |
}
|
| 178 |
public void setFofoLineItemSerialNumbers(Set<FofoLineItemSerialNumber> fofoLineItemSerialNumbers) {
|
178 |
public void setFofoLineItemSerialNumbers(Set<FofoLineItemSerialNumber> fofoLineItemSerialNumbers) {
|
| 179 |
this.fofoLineItemSerialNumbers = fofoLineItemSerialNumbers;
|
179 |
this.fofoLineItemSerialNumbers = fofoLineItemSerialNumbers;
|
| 180 |
}
|
180 |
}
|
| - |
|
181 |
|
| - |
|
182 |
|
| - |
|
183 |
@Override
|
| - |
|
184 |
public int hashCode() {
|
| - |
|
185 |
final int prime = 31;
|
| - |
|
186 |
int result = 1;
|
| - |
|
187 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
| - |
|
188 |
result = prime * result + Float.floatToIntBits(cgstRate);
|
| - |
|
189 |
result = prime * result + ((color == null) ? 0 : color.hashCode());
|
| - |
|
190 |
result = prime * result + Float.floatToIntBits(cost);
|
| - |
|
191 |
result = prime * result + Float.floatToIntBits(dp);
|
| - |
|
192 |
result = prime * result + ((fofoLineItemSerialNumbers == null) ? 0 : fofoLineItemSerialNumbers.hashCode());
|
| - |
|
193 |
result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
|
| - |
|
194 |
result = prime * result + id;
|
| - |
|
195 |
result = prime * result + Float.floatToIntBits(igstRate);
|
| - |
|
196 |
result = prime * result + itemId;
|
| - |
|
197 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
| - |
|
198 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
| - |
|
199 |
result = prime * result + orderId;
|
| - |
|
200 |
result = prime * result + quantity;
|
| - |
|
201 |
result = prime * result + Float.floatToIntBits(sellingPrice);
|
| - |
|
202 |
result = prime * result + Float.floatToIntBits(sgstRate);
|
| - |
|
203 |
return result;
|
| - |
|
204 |
}
|
| - |
|
205 |
@Override
|
| - |
|
206 |
public boolean equals(Object obj) {
|
| - |
|
207 |
if (this == obj)
|
| - |
|
208 |
return true;
|
| - |
|
209 |
if (obj == null)
|
| - |
|
210 |
return false;
|
| - |
|
211 |
if (getClass() != obj.getClass())
|
| - |
|
212 |
return false;
|
| - |
|
213 |
FofoLineItem other = (FofoLineItem) obj;
|
| - |
|
214 |
if (brand == null) {
|
| - |
|
215 |
if (other.brand != null)
|
| - |
|
216 |
return false;
|
| - |
|
217 |
} else if (!brand.equals(other.brand))
|
| - |
|
218 |
return false;
|
| - |
|
219 |
if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
|
| - |
|
220 |
return false;
|
| - |
|
221 |
if (color == null) {
|
| - |
|
222 |
if (other.color != null)
|
| - |
|
223 |
return false;
|
| - |
|
224 |
} else if (!color.equals(other.color))
|
| - |
|
225 |
return false;
|
| - |
|
226 |
if (Float.floatToIntBits(cost) != Float.floatToIntBits(other.cost))
|
| - |
|
227 |
return false;
|
| - |
|
228 |
if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
|
| - |
|
229 |
return false;
|
| - |
|
230 |
if (fofoLineItemSerialNumbers == null) {
|
| - |
|
231 |
if (other.fofoLineItemSerialNumbers != null)
|
| - |
|
232 |
return false;
|
| - |
|
233 |
} else if (!fofoLineItemSerialNumbers.equals(other.fofoLineItemSerialNumbers))
|
| - |
|
234 |
return false;
|
| - |
|
235 |
if (hsnCode == null) {
|
| - |
|
236 |
if (other.hsnCode != null)
|
| - |
|
237 |
return false;
|
| - |
|
238 |
} else if (!hsnCode.equals(other.hsnCode))
|
| - |
|
239 |
return false;
|
| - |
|
240 |
if (id != other.id)
|
| - |
|
241 |
return false;
|
| - |
|
242 |
if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
|
| - |
|
243 |
return false;
|
| - |
|
244 |
if (itemId != other.itemId)
|
| - |
|
245 |
return false;
|
| - |
|
246 |
if (modelName == null) {
|
| - |
|
247 |
if (other.modelName != null)
|
| - |
|
248 |
return false;
|
| - |
|
249 |
} else if (!modelName.equals(other.modelName))
|
| - |
|
250 |
return false;
|
| - |
|
251 |
if (modelNumber == null) {
|
| - |
|
252 |
if (other.modelNumber != null)
|
| - |
|
253 |
return false;
|
| - |
|
254 |
} else if (!modelNumber.equals(other.modelNumber))
|
| - |
|
255 |
return false;
|
| - |
|
256 |
if (orderId != other.orderId)
|
| - |
|
257 |
return false;
|
| - |
|
258 |
if (quantity != other.quantity)
|
| - |
|
259 |
return false;
|
| - |
|
260 |
if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
|
| - |
|
261 |
return false;
|
| - |
|
262 |
if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
|
| - |
|
263 |
return false;
|
| - |
|
264 |
return true;
|
| - |
|
265 |
}
|
| 181 |
@Override
|
266 |
@Override
|
| 182 |
public String toString() {
|
267 |
public String toString() {
|
| 183 |
return "FofoLineItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity
|
268 |
return "FofoLineItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity
|
| 184 |
+ ", sellingPrice=" + sellingPrice + ", cost=" + cost + ", igstRate=" + igstRate + ", cgstRate="
|
269 |
+ ", sellingPrice=" + sellingPrice + ", cost=" + cost + ", igstRate=" + igstRate + ", cgstRate="
|
| 185 |
+ cgstRate + ", sgstRate=" + sgstRate + ", hsnCode=" + hsnCode + ", dp=" + dp + ", brand=" + brand
|
270 |
+ cgstRate + ", sgstRate=" + sgstRate + ", hsnCode=" + hsnCode + ", dp=" + dp + ", brand=" + brand
|