| 32952 |
amit.gupta |
1 |
package com.spice.profitmandi.service.catalog;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
import java.util.Objects;
|
|
|
5 |
|
|
|
6 |
public class ItemLoaderModel {
|
|
|
7 |
int rowIndex;
|
|
|
8 |
private String productGroup;
|
|
|
9 |
private int categoryId;
|
|
|
10 |
private String category;
|
|
|
11 |
private String brand;
|
|
|
12 |
private String modelNumber;
|
|
|
13 |
private String modelName;
|
|
|
14 |
private String color;
|
|
|
15 |
private double mrp;
|
|
|
16 |
private double sp;
|
|
|
17 |
private double mop;
|
|
|
18 |
private double dp;
|
|
|
19 |
private double tp;
|
|
|
20 |
private double nlc;
|
|
|
21 |
private LocalDateTime startDate;
|
|
|
22 |
private int preferredVendor;
|
|
|
23 |
private boolean risky;
|
|
|
24 |
private double weight;
|
|
|
25 |
private int itemType;
|
|
|
26 |
private double taxRate;
|
|
|
27 |
private String hsnCode;
|
|
|
28 |
|
|
|
29 |
public int getCategoryId() {
|
|
|
30 |
return categoryId;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public void setCategoryId(int categoryId) {
|
|
|
34 |
this.categoryId = categoryId;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public double getTaxRate() {
|
|
|
38 |
return taxRate;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public void setTaxRate(double taxRate) {
|
|
|
42 |
this.taxRate = taxRate;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
public String getProductGroup() {
|
|
|
47 |
return productGroup;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public void setProductGroup(String productGroup) {
|
|
|
51 |
this.productGroup = productGroup;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public String getCategory() {
|
|
|
55 |
return category;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public void setCategory(String category) {
|
|
|
59 |
this.category = category;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public String getBrand() {
|
|
|
63 |
return brand;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public void setBrand(String brand) {
|
|
|
67 |
this.brand = brand;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public String getModelNumber() {
|
|
|
71 |
return modelNumber;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setModelNumber(String modelNumber) {
|
|
|
75 |
this.modelNumber = modelNumber;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public String getModelName() {
|
|
|
79 |
return modelName;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setModelName(String modelName) {
|
|
|
83 |
this.modelName = modelName;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public String getColor() {
|
|
|
87 |
return color;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setColor(String color) {
|
|
|
91 |
this.color = color;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public double getMrp() {
|
|
|
95 |
return mrp;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setMrp(double mrp) {
|
|
|
99 |
this.mrp = mrp;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
public double getSp() {
|
|
|
103 |
return sp;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setSp(double sp) {
|
|
|
107 |
this.sp = sp;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
public double getMop() {
|
|
|
111 |
return mop;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public void setMop(double mop) {
|
|
|
115 |
this.mop = mop;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public double getDp() {
|
|
|
119 |
return dp;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public void setDp(double dp) {
|
|
|
123 |
this.dp = dp;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public double getTp() {
|
|
|
127 |
return tp;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public void setTp(double tp) {
|
|
|
131 |
this.tp = tp;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public double getNlc() {
|
|
|
135 |
return nlc;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public void setNlc(double nlc) {
|
|
|
139 |
this.nlc = nlc;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public LocalDateTime getStartDate() {
|
|
|
143 |
return startDate;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public void setStartDate(LocalDateTime startDate) {
|
|
|
147 |
this.startDate = startDate;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public int getPreferredVendor() {
|
|
|
151 |
return preferredVendor;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
public void setPreferredVendor(int preferredVendor) {
|
|
|
155 |
this.preferredVendor = preferredVendor;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
public boolean isRisky() {
|
|
|
159 |
return risky;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
public void setRisky(boolean risky) {
|
|
|
163 |
this.risky = risky;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public double getWeight() {
|
|
|
167 |
return weight;
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public void setWeight(double weight) {
|
|
|
171 |
this.weight = weight;
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
public int getItemType() {
|
|
|
175 |
return itemType;
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
public void setItemType(int itemType) {
|
|
|
179 |
this.itemType = itemType;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
public int getRowIndex() {
|
|
|
183 |
return rowIndex;
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public void setRowIndex(int rowIndex) {
|
|
|
187 |
this.rowIndex = rowIndex;
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
public String getHsnCode() {
|
|
|
191 |
return hsnCode;
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
public void setHsnCode(String hsnCode) {
|
|
|
195 |
this.hsnCode = hsnCode;
|
|
|
196 |
}
|
|
|
197 |
|
|
|
198 |
@Override
|
|
|
199 |
public boolean equals(Object o) {
|
|
|
200 |
if (this == o) return true;
|
|
|
201 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
202 |
ItemLoaderModel that = (ItemLoaderModel) o;
|
|
|
203 |
return rowIndex == that.rowIndex && categoryId == that.categoryId && Double.compare(mrp, that.mrp) == 0 && Double.compare(sp, that.sp) == 0 && Double.compare(mop, that.mop) == 0 && Double.compare(dp, that.dp) == 0 && Double.compare(tp, that.tp) == 0 && Double.compare(nlc, that.nlc) == 0 && preferredVendor == that.preferredVendor && risky == that.risky && Double.compare(weight, that.weight) == 0 && itemType == that.itemType && Double.compare(taxRate, that.taxRate) == 0 && Objects.equals(productGroup, that.productGroup) && Objects.equals(category, that.category) && Objects.equals(brand, that.brand) && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(modelName, that.modelName) && Objects.equals(color, that.color) && Objects.equals(startDate, that.startDate) && Objects.equals(hsnCode, that.hsnCode);
|
|
|
204 |
}
|
|
|
205 |
|
|
|
206 |
@Override
|
|
|
207 |
public int hashCode() {
|
|
|
208 |
return Objects.hash(rowIndex, productGroup, categoryId, category, brand, modelNumber, modelName, color, mrp, sp, mop, dp, tp, nlc, startDate, preferredVendor, risky, weight, itemType, taxRate, hsnCode);
|
|
|
209 |
}
|
|
|
210 |
|
|
|
211 |
@Override
|
|
|
212 |
public String toString() {
|
|
|
213 |
return "ItemLoaderModel{" +
|
|
|
214 |
"rowIndex=" + rowIndex +
|
|
|
215 |
", productGroup='" + productGroup + '\'' +
|
|
|
216 |
", categoryId=" + categoryId +
|
|
|
217 |
", category='" + category + '\'' +
|
|
|
218 |
", brand='" + brand + '\'' +
|
|
|
219 |
", modelNumber='" + modelNumber + '\'' +
|
|
|
220 |
", modelName='" + modelName + '\'' +
|
|
|
221 |
", color='" + color + '\'' +
|
|
|
222 |
", mrp=" + mrp +
|
|
|
223 |
", sp=" + sp +
|
|
|
224 |
", mop=" + mop +
|
|
|
225 |
", dp=" + dp +
|
|
|
226 |
", tp=" + tp +
|
|
|
227 |
", nlc=" + nlc +
|
|
|
228 |
", startDate=" + startDate +
|
|
|
229 |
", preferredVendor=" + preferredVendor +
|
|
|
230 |
", risky=" + risky +
|
|
|
231 |
", weight=" + weight +
|
|
|
232 |
", itemType=" + itemType +
|
|
|
233 |
", taxRate=" + taxRate +
|
|
|
234 |
", hsnCode='" + hsnCode + '\'' +
|
|
|
235 |
'}';
|
|
|
236 |
}
|
|
|
237 |
}
|