Subversion Repositories SmartDukaan

Rev

Rev 21844 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4496 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.purchase;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
25
 
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField UNFULFILLED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilledQuantity", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField FULFILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilled", org.apache.thrift.protocol.TType.BOOL, (short)13);
4754 mandeep.dh 39
  private static final org.apache.thrift.protocol.TField COD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("codCount", org.apache.thrift.protocol.TType.I64, (short)14);
6821 amar.kumar 40
  private static final org.apache.thrift.protocol.TField AVAILABLE_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availableQuantity", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField RESERVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("reservedQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
42
  private static final org.apache.thrift.protocol.TField AVG_SALES_FIELD_DESC = new org.apache.thrift.protocol.TField("avgSales", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
43
  private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)18);
44
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysStock", org.apache.thrift.protocol.TType.I64, (short)19);
45
  private static final org.apache.thrift.protocol.TField SUGGESTED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("suggestedQuantity", org.apache.thrift.protocol.TType.I64, (short)20);
46
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysInStock", org.apache.thrift.protocol.TType.I64, (short)21);
8182 amar.kumar 47
  private static final org.apache.thrift.protocol.TField RTO_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("rtoOrders", org.apache.thrift.protocol.TType.I64, (short)22);
48
  private static final org.apache.thrift.protocol.TField LAST_XDAYS_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastXdaysSale", org.apache.thrift.protocol.TType.STRING, (short)23);
49
  private static final org.apache.thrift.protocol.TField PREVIOUSLY_ORDERED_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("previouslyOrderedQty", org.apache.thrift.protocol.TType.I64, (short)24);
50
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
9416 amar.kumar 51
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)26);
12357 manish.sha 52
  private static final org.apache.thrift.protocol.TField NLC_P_FIELD_DESC = new org.apache.thrift.protocol.TField("nlcP", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
53
  private static final org.apache.thrift.protocol.TField VAT_DIFF_FIELD_DESC = new org.apache.thrift.protocol.TField("vatDiff", org.apache.thrift.protocol.TType.DOUBLE, (short)28);
21844 amit.gupta 54
  private static final org.apache.thrift.protocol.TField IGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("igstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)29);
55
  private static final org.apache.thrift.protocol.TField CGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("cgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)30);
56
  private static final org.apache.thrift.protocol.TField SGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("sgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)31);
57
  private static final org.apache.thrift.protocol.TField HSN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsnCode", org.apache.thrift.protocol.TType.STRING, (short)32);
24832 tejbeer 58
  private static final org.apache.thrift.protocol.TField INVOICE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("invoicePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)33);
59
  private static final org.apache.thrift.protocol.TField TP_FIELD_DESC = new org.apache.thrift.protocol.TField("tp", org.apache.thrift.protocol.TType.DOUBLE, (short)34);
4496 mandeep.dh 60
 
61
  private long orderId; // required
62
  private long itemId; // required
63
  private String productGroup; // required
64
  private String brand; // required
65
  private String modelNumber; // required
66
  private String modelName; // required
67
  private String color; // required
68
  private String itemNumber; // required
69
  private double quantity; // required
70
  private double unfulfilledQuantity; // required
71
  private long createdAt; // required
72
  private double unitPrice; // required
73
  private boolean fulfilled; // required
4754 mandeep.dh 74
  private long codCount; // required
6821 amar.kumar 75
  private long availableQuantity; // required
76
  private long reservedQuantity; // required
77
  private double avgSales; // required
78
  private long minStockLevel; // required
79
  private long numberOfDaysStock; // required
80
  private long suggestedQuantity; // required
81
  private long numberOfDaysInStock; // required
8182 amar.kumar 82
  private long rtoOrders; // required
6857 amar.kumar 83
  private String lastXdaysSale; // required
6880 amar.kumar 84
  private long previouslyOrderedQty; // required
7672 rajveer 85
  private double nlc; // required
9416 amar.kumar 86
  private double mrp; // required
12357 manish.sha 87
  private double nlcP; // required
88
  private double vatDiff; // required
21844 amit.gupta 89
  private double igstRate; // required
90
  private double cgstRate; // required
91
  private double sgstRate; // required
92
  private String hsnCode; // required
24832 tejbeer 93
  private double invoicePrice; // required
94
  private double tp; // required
4496 mandeep.dh 95
 
96
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
97
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
98
    ORDER_ID((short)1, "orderId"),
99
    ITEM_ID((short)2, "itemId"),
100
    PRODUCT_GROUP((short)3, "productGroup"),
101
    BRAND((short)4, "brand"),
102
    MODEL_NUMBER((short)5, "modelNumber"),
103
    MODEL_NAME((short)6, "modelName"),
104
    COLOR((short)7, "color"),
105
    ITEM_NUMBER((short)8, "itemNumber"),
106
    QUANTITY((short)9, "quantity"),
107
    UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
108
    CREATED_AT((short)11, "createdAt"),
109
    UNIT_PRICE((short)12, "unitPrice"),
4754 mandeep.dh 110
    FULFILLED((short)13, "fulfilled"),
6821 amar.kumar 111
    COD_COUNT((short)14, "codCount"),
112
    AVAILABLE_QUANTITY((short)15, "availableQuantity"),
113
    RESERVED_QUANTITY((short)16, "reservedQuantity"),
114
    AVG_SALES((short)17, "avgSales"),
115
    MIN_STOCK_LEVEL((short)18, "minStockLevel"),
116
    NUMBER_OF_DAYS_STOCK((short)19, "numberOfDaysStock"),
117
    SUGGESTED_QUANTITY((short)20, "suggestedQuantity"),
6857 amar.kumar 118
    NUMBER_OF_DAYS_IN_STOCK((short)21, "numberOfDaysInStock"),
8182 amar.kumar 119
    RTO_ORDERS((short)22, "rtoOrders"),
120
    LAST_XDAYS_SALE((short)23, "lastXdaysSale"),
121
    PREVIOUSLY_ORDERED_QTY((short)24, "previouslyOrderedQty"),
9416 amar.kumar 122
    NLC((short)25, "nlc"),
12357 manish.sha 123
    MRP((short)26, "mrp"),
124
    NLC_P((short)27, "nlcP"),
21844 amit.gupta 125
    VAT_DIFF((short)28, "vatDiff"),
126
    IGST_RATE((short)29, "igstRate"),
127
    CGST_RATE((short)30, "cgstRate"),
128
    SGST_RATE((short)31, "sgstRate"),
24832 tejbeer 129
    HSN_CODE((short)32, "hsnCode"),
130
    INVOICE_PRICE((short)33, "invoicePrice"),
131
    TP((short)34, "tp");
4496 mandeep.dh 132
 
133
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
134
 
135
    static {
136
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
137
        byName.put(field.getFieldName(), field);
138
      }
139
    }
140
 
141
    /**
142
     * Find the _Fields constant that matches fieldId, or null if its not found.
143
     */
144
    public static _Fields findByThriftId(int fieldId) {
145
      switch(fieldId) {
146
        case 1: // ORDER_ID
147
          return ORDER_ID;
148
        case 2: // ITEM_ID
149
          return ITEM_ID;
150
        case 3: // PRODUCT_GROUP
151
          return PRODUCT_GROUP;
152
        case 4: // BRAND
153
          return BRAND;
154
        case 5: // MODEL_NUMBER
155
          return MODEL_NUMBER;
156
        case 6: // MODEL_NAME
157
          return MODEL_NAME;
158
        case 7: // COLOR
159
          return COLOR;
160
        case 8: // ITEM_NUMBER
161
          return ITEM_NUMBER;
162
        case 9: // QUANTITY
163
          return QUANTITY;
164
        case 10: // UNFULFILLED_QUANTITY
165
          return UNFULFILLED_QUANTITY;
166
        case 11: // CREATED_AT
167
          return CREATED_AT;
168
        case 12: // UNIT_PRICE
169
          return UNIT_PRICE;
170
        case 13: // FULFILLED
171
          return FULFILLED;
4754 mandeep.dh 172
        case 14: // COD_COUNT
173
          return COD_COUNT;
6821 amar.kumar 174
        case 15: // AVAILABLE_QUANTITY
175
          return AVAILABLE_QUANTITY;
176
        case 16: // RESERVED_QUANTITY
177
          return RESERVED_QUANTITY;
178
        case 17: // AVG_SALES
179
          return AVG_SALES;
180
        case 18: // MIN_STOCK_LEVEL
181
          return MIN_STOCK_LEVEL;
182
        case 19: // NUMBER_OF_DAYS_STOCK
183
          return NUMBER_OF_DAYS_STOCK;
184
        case 20: // SUGGESTED_QUANTITY
185
          return SUGGESTED_QUANTITY;
186
        case 21: // NUMBER_OF_DAYS_IN_STOCK
187
          return NUMBER_OF_DAYS_IN_STOCK;
8182 amar.kumar 188
        case 22: // RTO_ORDERS
189
          return RTO_ORDERS;
190
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 191
          return LAST_XDAYS_SALE;
8182 amar.kumar 192
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 193
          return PREVIOUSLY_ORDERED_QTY;
8182 amar.kumar 194
        case 25: // NLC
7672 rajveer 195
          return NLC;
9416 amar.kumar 196
        case 26: // MRP
197
          return MRP;
12357 manish.sha 198
        case 27: // NLC_P
199
          return NLC_P;
200
        case 28: // VAT_DIFF
201
          return VAT_DIFF;
21844 amit.gupta 202
        case 29: // IGST_RATE
203
          return IGST_RATE;
204
        case 30: // CGST_RATE
205
          return CGST_RATE;
206
        case 31: // SGST_RATE
207
          return SGST_RATE;
208
        case 32: // HSN_CODE
209
          return HSN_CODE;
24832 tejbeer 210
        case 33: // INVOICE_PRICE
211
          return INVOICE_PRICE;
212
        case 34: // TP
213
          return TP;
4496 mandeep.dh 214
        default:
215
          return null;
216
      }
217
    }
218
 
219
    /**
220
     * Find the _Fields constant that matches fieldId, throwing an exception
221
     * if it is not found.
222
     */
223
    public static _Fields findByThriftIdOrThrow(int fieldId) {
224
      _Fields fields = findByThriftId(fieldId);
225
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
226
      return fields;
227
    }
228
 
229
    /**
230
     * Find the _Fields constant that matches name, or null if its not found.
231
     */
232
    public static _Fields findByName(String name) {
233
      return byName.get(name);
234
    }
235
 
236
    private final short _thriftId;
237
    private final String _fieldName;
238
 
239
    _Fields(short thriftId, String fieldName) {
240
      _thriftId = thriftId;
241
      _fieldName = fieldName;
242
    }
243
 
244
    public short getThriftFieldId() {
245
      return _thriftId;
246
    }
247
 
248
    public String getFieldName() {
249
      return _fieldName;
250
    }
251
  }
252
 
253
  // isset id assignments
254
  private static final int __ORDERID_ISSET_ID = 0;
255
  private static final int __ITEMID_ISSET_ID = 1;
256
  private static final int __QUANTITY_ISSET_ID = 2;
257
  private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
258
  private static final int __CREATEDAT_ISSET_ID = 4;
259
  private static final int __UNITPRICE_ISSET_ID = 5;
260
  private static final int __FULFILLED_ISSET_ID = 6;
4754 mandeep.dh 261
  private static final int __CODCOUNT_ISSET_ID = 7;
6821 amar.kumar 262
  private static final int __AVAILABLEQUANTITY_ISSET_ID = 8;
263
  private static final int __RESERVEDQUANTITY_ISSET_ID = 9;
264
  private static final int __AVGSALES_ISSET_ID = 10;
265
  private static final int __MINSTOCKLEVEL_ISSET_ID = 11;
266
  private static final int __NUMBEROFDAYSSTOCK_ISSET_ID = 12;
267
  private static final int __SUGGESTEDQUANTITY_ISSET_ID = 13;
268
  private static final int __NUMBEROFDAYSINSTOCK_ISSET_ID = 14;
8182 amar.kumar 269
  private static final int __RTOORDERS_ISSET_ID = 15;
270
  private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 16;
271
  private static final int __NLC_ISSET_ID = 17;
9416 amar.kumar 272
  private static final int __MRP_ISSET_ID = 18;
12357 manish.sha 273
  private static final int __NLCP_ISSET_ID = 19;
274
  private static final int __VATDIFF_ISSET_ID = 20;
21844 amit.gupta 275
  private static final int __IGSTRATE_ISSET_ID = 21;
276
  private static final int __CGSTRATE_ISSET_ID = 22;
277
  private static final int __SGSTRATE_ISSET_ID = 23;
24832 tejbeer 278
  private static final int __INVOICEPRICE_ISSET_ID = 24;
279
  private static final int __TP_ISSET_ID = 25;
280
  private BitSet __isset_bit_vector = new BitSet(26);
4496 mandeep.dh 281
 
282
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
283
  static {
284
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
285
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
286
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
287
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
288
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
289
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
290
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
291
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
292
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
293
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
294
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
295
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
296
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
297
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
298
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
299
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
300
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
301
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
302
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
303
    tmpMap.put(_Fields.UNFULFILLED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("unfulfilledQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
304
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
305
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
306
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
307
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
308
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
309
    tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
310
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4754 mandeep.dh 311
    tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
312
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6821 amar.kumar 313
    tmpMap.put(_Fields.AVAILABLE_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("availableQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
314
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
315
    tmpMap.put(_Fields.RESERVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("reservedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
316
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
317
    tmpMap.put(_Fields.AVG_SALES, new org.apache.thrift.meta_data.FieldMetaData("avgSales", org.apache.thrift.TFieldRequirementType.DEFAULT, 
318
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
319
    tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
320
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
321
    tmpMap.put(_Fields.NUMBER_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
322
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
323
    tmpMap.put(_Fields.SUGGESTED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("suggestedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
324
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
325
    tmpMap.put(_Fields.NUMBER_OF_DAYS_IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysInStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
326
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8182 amar.kumar 327
    tmpMap.put(_Fields.RTO_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("rtoOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
328
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6857 amar.kumar 329
    tmpMap.put(_Fields.LAST_XDAYS_SALE, new org.apache.thrift.meta_data.FieldMetaData("lastXdaysSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
330
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6880 amar.kumar 331
    tmpMap.put(_Fields.PREVIOUSLY_ORDERED_QTY, new org.apache.thrift.meta_data.FieldMetaData("previouslyOrderedQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
332
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 333
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
334
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9416 amar.kumar 335
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
336
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12357 manish.sha 337
    tmpMap.put(_Fields.NLC_P, new org.apache.thrift.meta_data.FieldMetaData("nlcP", org.apache.thrift.TFieldRequirementType.DEFAULT, 
338
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
339
    tmpMap.put(_Fields.VAT_DIFF, new org.apache.thrift.meta_data.FieldMetaData("vatDiff", org.apache.thrift.TFieldRequirementType.DEFAULT, 
340
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21844 amit.gupta 341
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
342
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
343
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
344
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
345
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
346
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
347
    tmpMap.put(_Fields.HSN_CODE, new org.apache.thrift.meta_data.FieldMetaData("hsnCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
348
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24832 tejbeer 349
    tmpMap.put(_Fields.INVOICE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("invoicePrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
350
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
351
    tmpMap.put(_Fields.TP, new org.apache.thrift.meta_data.FieldMetaData("tp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
352
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
4496 mandeep.dh 353
    metaDataMap = Collections.unmodifiableMap(tmpMap);
354
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
355
  }
356
 
357
  public LineItem() {
358
  }
359
 
360
  public LineItem(
361
    long orderId,
362
    long itemId,
363
    String productGroup,
364
    String brand,
365
    String modelNumber,
366
    String modelName,
367
    String color,
368
    String itemNumber,
369
    double quantity,
370
    double unfulfilledQuantity,
371
    long createdAt,
372
    double unitPrice,
4754 mandeep.dh 373
    boolean fulfilled,
6821 amar.kumar 374
    long codCount,
375
    long availableQuantity,
376
    long reservedQuantity,
377
    double avgSales,
378
    long minStockLevel,
379
    long numberOfDaysStock,
380
    long suggestedQuantity,
6857 amar.kumar 381
    long numberOfDaysInStock,
8182 amar.kumar 382
    long rtoOrders,
6880 amar.kumar 383
    String lastXdaysSale,
7672 rajveer 384
    long previouslyOrderedQty,
9416 amar.kumar 385
    double nlc,
12357 manish.sha 386
    double mrp,
387
    double nlcP,
21844 amit.gupta 388
    double vatDiff,
389
    double igstRate,
390
    double cgstRate,
391
    double sgstRate,
24832 tejbeer 392
    String hsnCode,
393
    double invoicePrice,
394
    double tp)
4496 mandeep.dh 395
  {
396
    this();
397
    this.orderId = orderId;
398
    setOrderIdIsSet(true);
399
    this.itemId = itemId;
400
    setItemIdIsSet(true);
401
    this.productGroup = productGroup;
402
    this.brand = brand;
403
    this.modelNumber = modelNumber;
404
    this.modelName = modelName;
405
    this.color = color;
406
    this.itemNumber = itemNumber;
407
    this.quantity = quantity;
408
    setQuantityIsSet(true);
409
    this.unfulfilledQuantity = unfulfilledQuantity;
410
    setUnfulfilledQuantityIsSet(true);
411
    this.createdAt = createdAt;
412
    setCreatedAtIsSet(true);
413
    this.unitPrice = unitPrice;
414
    setUnitPriceIsSet(true);
415
    this.fulfilled = fulfilled;
416
    setFulfilledIsSet(true);
4754 mandeep.dh 417
    this.codCount = codCount;
418
    setCodCountIsSet(true);
6821 amar.kumar 419
    this.availableQuantity = availableQuantity;
420
    setAvailableQuantityIsSet(true);
421
    this.reservedQuantity = reservedQuantity;
422
    setReservedQuantityIsSet(true);
423
    this.avgSales = avgSales;
424
    setAvgSalesIsSet(true);
425
    this.minStockLevel = minStockLevel;
426
    setMinStockLevelIsSet(true);
427
    this.numberOfDaysStock = numberOfDaysStock;
428
    setNumberOfDaysStockIsSet(true);
429
    this.suggestedQuantity = suggestedQuantity;
430
    setSuggestedQuantityIsSet(true);
431
    this.numberOfDaysInStock = numberOfDaysInStock;
432
    setNumberOfDaysInStockIsSet(true);
8182 amar.kumar 433
    this.rtoOrders = rtoOrders;
434
    setRtoOrdersIsSet(true);
6857 amar.kumar 435
    this.lastXdaysSale = lastXdaysSale;
6880 amar.kumar 436
    this.previouslyOrderedQty = previouslyOrderedQty;
437
    setPreviouslyOrderedQtyIsSet(true);
7672 rajveer 438
    this.nlc = nlc;
439
    setNlcIsSet(true);
9416 amar.kumar 440
    this.mrp = mrp;
441
    setMrpIsSet(true);
12357 manish.sha 442
    this.nlcP = nlcP;
443
    setNlcPIsSet(true);
444
    this.vatDiff = vatDiff;
445
    setVatDiffIsSet(true);
21844 amit.gupta 446
    this.igstRate = igstRate;
447
    setIgstRateIsSet(true);
448
    this.cgstRate = cgstRate;
449
    setCgstRateIsSet(true);
450
    this.sgstRate = sgstRate;
451
    setSgstRateIsSet(true);
452
    this.hsnCode = hsnCode;
24832 tejbeer 453
    this.invoicePrice = invoicePrice;
454
    setInvoicePriceIsSet(true);
455
    this.tp = tp;
456
    setTpIsSet(true);
4496 mandeep.dh 457
  }
458
 
459
  /**
460
   * Performs a deep copy on <i>other</i>.
461
   */
462
  public LineItem(LineItem other) {
463
    __isset_bit_vector.clear();
464
    __isset_bit_vector.or(other.__isset_bit_vector);
465
    this.orderId = other.orderId;
466
    this.itemId = other.itemId;
467
    if (other.isSetProductGroup()) {
468
      this.productGroup = other.productGroup;
469
    }
470
    if (other.isSetBrand()) {
471
      this.brand = other.brand;
472
    }
473
    if (other.isSetModelNumber()) {
474
      this.modelNumber = other.modelNumber;
475
    }
476
    if (other.isSetModelName()) {
477
      this.modelName = other.modelName;
478
    }
479
    if (other.isSetColor()) {
480
      this.color = other.color;
481
    }
482
    if (other.isSetItemNumber()) {
483
      this.itemNumber = other.itemNumber;
484
    }
485
    this.quantity = other.quantity;
486
    this.unfulfilledQuantity = other.unfulfilledQuantity;
487
    this.createdAt = other.createdAt;
488
    this.unitPrice = other.unitPrice;
489
    this.fulfilled = other.fulfilled;
4754 mandeep.dh 490
    this.codCount = other.codCount;
6821 amar.kumar 491
    this.availableQuantity = other.availableQuantity;
492
    this.reservedQuantity = other.reservedQuantity;
493
    this.avgSales = other.avgSales;
494
    this.minStockLevel = other.minStockLevel;
495
    this.numberOfDaysStock = other.numberOfDaysStock;
496
    this.suggestedQuantity = other.suggestedQuantity;
497
    this.numberOfDaysInStock = other.numberOfDaysInStock;
8182 amar.kumar 498
    this.rtoOrders = other.rtoOrders;
6857 amar.kumar 499
    if (other.isSetLastXdaysSale()) {
500
      this.lastXdaysSale = other.lastXdaysSale;
501
    }
6880 amar.kumar 502
    this.previouslyOrderedQty = other.previouslyOrderedQty;
7672 rajveer 503
    this.nlc = other.nlc;
9416 amar.kumar 504
    this.mrp = other.mrp;
12357 manish.sha 505
    this.nlcP = other.nlcP;
506
    this.vatDiff = other.vatDiff;
21844 amit.gupta 507
    this.igstRate = other.igstRate;
508
    this.cgstRate = other.cgstRate;
509
    this.sgstRate = other.sgstRate;
510
    if (other.isSetHsnCode()) {
511
      this.hsnCode = other.hsnCode;
512
    }
24832 tejbeer 513
    this.invoicePrice = other.invoicePrice;
514
    this.tp = other.tp;
4496 mandeep.dh 515
  }
516
 
517
  public LineItem deepCopy() {
518
    return new LineItem(this);
519
  }
520
 
521
  @Override
522
  public void clear() {
523
    setOrderIdIsSet(false);
524
    this.orderId = 0;
525
    setItemIdIsSet(false);
526
    this.itemId = 0;
527
    this.productGroup = null;
528
    this.brand = null;
529
    this.modelNumber = null;
530
    this.modelName = null;
531
    this.color = null;
532
    this.itemNumber = null;
533
    setQuantityIsSet(false);
534
    this.quantity = 0.0;
535
    setUnfulfilledQuantityIsSet(false);
536
    this.unfulfilledQuantity = 0.0;
537
    setCreatedAtIsSet(false);
538
    this.createdAt = 0;
539
    setUnitPriceIsSet(false);
540
    this.unitPrice = 0.0;
541
    setFulfilledIsSet(false);
542
    this.fulfilled = false;
4754 mandeep.dh 543
    setCodCountIsSet(false);
544
    this.codCount = 0;
6821 amar.kumar 545
    setAvailableQuantityIsSet(false);
546
    this.availableQuantity = 0;
547
    setReservedQuantityIsSet(false);
548
    this.reservedQuantity = 0;
549
    setAvgSalesIsSet(false);
550
    this.avgSales = 0.0;
551
    setMinStockLevelIsSet(false);
552
    this.minStockLevel = 0;
553
    setNumberOfDaysStockIsSet(false);
554
    this.numberOfDaysStock = 0;
555
    setSuggestedQuantityIsSet(false);
556
    this.suggestedQuantity = 0;
557
    setNumberOfDaysInStockIsSet(false);
558
    this.numberOfDaysInStock = 0;
8182 amar.kumar 559
    setRtoOrdersIsSet(false);
560
    this.rtoOrders = 0;
6857 amar.kumar 561
    this.lastXdaysSale = null;
6880 amar.kumar 562
    setPreviouslyOrderedQtyIsSet(false);
563
    this.previouslyOrderedQty = 0;
7672 rajveer 564
    setNlcIsSet(false);
565
    this.nlc = 0.0;
9416 amar.kumar 566
    setMrpIsSet(false);
567
    this.mrp = 0.0;
12357 manish.sha 568
    setNlcPIsSet(false);
569
    this.nlcP = 0.0;
570
    setVatDiffIsSet(false);
571
    this.vatDiff = 0.0;
21844 amit.gupta 572
    setIgstRateIsSet(false);
573
    this.igstRate = 0.0;
574
    setCgstRateIsSet(false);
575
    this.cgstRate = 0.0;
576
    setSgstRateIsSet(false);
577
    this.sgstRate = 0.0;
578
    this.hsnCode = null;
24832 tejbeer 579
    setInvoicePriceIsSet(false);
580
    this.invoicePrice = 0.0;
581
    setTpIsSet(false);
582
    this.tp = 0.0;
4496 mandeep.dh 583
  }
584
 
585
  public long getOrderId() {
586
    return this.orderId;
587
  }
588
 
589
  public void setOrderId(long orderId) {
590
    this.orderId = orderId;
591
    setOrderIdIsSet(true);
592
  }
593
 
594
  public void unsetOrderId() {
595
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
596
  }
597
 
598
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
599
  public boolean isSetOrderId() {
600
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
601
  }
602
 
603
  public void setOrderIdIsSet(boolean value) {
604
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
605
  }
606
 
607
  public long getItemId() {
608
    return this.itemId;
609
  }
610
 
611
  public void setItemId(long itemId) {
612
    this.itemId = itemId;
613
    setItemIdIsSet(true);
614
  }
615
 
616
  public void unsetItemId() {
617
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
618
  }
619
 
620
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
621
  public boolean isSetItemId() {
622
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
623
  }
624
 
625
  public void setItemIdIsSet(boolean value) {
626
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
627
  }
628
 
629
  public String getProductGroup() {
630
    return this.productGroup;
631
  }
632
 
633
  public void setProductGroup(String productGroup) {
634
    this.productGroup = productGroup;
635
  }
636
 
637
  public void unsetProductGroup() {
638
    this.productGroup = null;
639
  }
640
 
641
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
642
  public boolean isSetProductGroup() {
643
    return this.productGroup != null;
644
  }
645
 
646
  public void setProductGroupIsSet(boolean value) {
647
    if (!value) {
648
      this.productGroup = null;
649
    }
650
  }
651
 
652
  public String getBrand() {
653
    return this.brand;
654
  }
655
 
656
  public void setBrand(String brand) {
657
    this.brand = brand;
658
  }
659
 
660
  public void unsetBrand() {
661
    this.brand = null;
662
  }
663
 
664
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
665
  public boolean isSetBrand() {
666
    return this.brand != null;
667
  }
668
 
669
  public void setBrandIsSet(boolean value) {
670
    if (!value) {
671
      this.brand = null;
672
    }
673
  }
674
 
675
  public String getModelNumber() {
676
    return this.modelNumber;
677
  }
678
 
679
  public void setModelNumber(String modelNumber) {
680
    this.modelNumber = modelNumber;
681
  }
682
 
683
  public void unsetModelNumber() {
684
    this.modelNumber = null;
685
  }
686
 
687
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
688
  public boolean isSetModelNumber() {
689
    return this.modelNumber != null;
690
  }
691
 
692
  public void setModelNumberIsSet(boolean value) {
693
    if (!value) {
694
      this.modelNumber = null;
695
    }
696
  }
697
 
698
  public String getModelName() {
699
    return this.modelName;
700
  }
701
 
702
  public void setModelName(String modelName) {
703
    this.modelName = modelName;
704
  }
705
 
706
  public void unsetModelName() {
707
    this.modelName = null;
708
  }
709
 
710
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
711
  public boolean isSetModelName() {
712
    return this.modelName != null;
713
  }
714
 
715
  public void setModelNameIsSet(boolean value) {
716
    if (!value) {
717
      this.modelName = null;
718
    }
719
  }
720
 
721
  public String getColor() {
722
    return this.color;
723
  }
724
 
725
  public void setColor(String color) {
726
    this.color = color;
727
  }
728
 
729
  public void unsetColor() {
730
    this.color = null;
731
  }
732
 
733
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
734
  public boolean isSetColor() {
735
    return this.color != null;
736
  }
737
 
738
  public void setColorIsSet(boolean value) {
739
    if (!value) {
740
      this.color = null;
741
    }
742
  }
743
 
744
  public String getItemNumber() {
745
    return this.itemNumber;
746
  }
747
 
748
  public void setItemNumber(String itemNumber) {
749
    this.itemNumber = itemNumber;
750
  }
751
 
752
  public void unsetItemNumber() {
753
    this.itemNumber = null;
754
  }
755
 
756
  /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
757
  public boolean isSetItemNumber() {
758
    return this.itemNumber != null;
759
  }
760
 
761
  public void setItemNumberIsSet(boolean value) {
762
    if (!value) {
763
      this.itemNumber = null;
764
    }
765
  }
766
 
767
  public double getQuantity() {
768
    return this.quantity;
769
  }
770
 
771
  public void setQuantity(double quantity) {
772
    this.quantity = quantity;
773
    setQuantityIsSet(true);
774
  }
775
 
776
  public void unsetQuantity() {
777
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
778
  }
779
 
780
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
781
  public boolean isSetQuantity() {
782
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
783
  }
784
 
785
  public void setQuantityIsSet(boolean value) {
786
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
787
  }
788
 
789
  public double getUnfulfilledQuantity() {
790
    return this.unfulfilledQuantity;
791
  }
792
 
793
  public void setUnfulfilledQuantity(double unfulfilledQuantity) {
794
    this.unfulfilledQuantity = unfulfilledQuantity;
795
    setUnfulfilledQuantityIsSet(true);
796
  }
797
 
798
  public void unsetUnfulfilledQuantity() {
799
    __isset_bit_vector.clear(__UNFULFILLEDQUANTITY_ISSET_ID);
800
  }
801
 
802
  /** Returns true if field unfulfilledQuantity is set (has been assigned a value) and false otherwise */
803
  public boolean isSetUnfulfilledQuantity() {
804
    return __isset_bit_vector.get(__UNFULFILLEDQUANTITY_ISSET_ID);
805
  }
806
 
807
  public void setUnfulfilledQuantityIsSet(boolean value) {
808
    __isset_bit_vector.set(__UNFULFILLEDQUANTITY_ISSET_ID, value);
809
  }
810
 
811
  public long getCreatedAt() {
812
    return this.createdAt;
813
  }
814
 
815
  public void setCreatedAt(long createdAt) {
816
    this.createdAt = createdAt;
817
    setCreatedAtIsSet(true);
818
  }
819
 
820
  public void unsetCreatedAt() {
821
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
822
  }
823
 
824
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
825
  public boolean isSetCreatedAt() {
826
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
827
  }
828
 
829
  public void setCreatedAtIsSet(boolean value) {
830
    __isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
831
  }
832
 
833
  public double getUnitPrice() {
834
    return this.unitPrice;
835
  }
836
 
837
  public void setUnitPrice(double unitPrice) {
838
    this.unitPrice = unitPrice;
839
    setUnitPriceIsSet(true);
840
  }
841
 
842
  public void unsetUnitPrice() {
843
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
844
  }
845
 
846
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
847
  public boolean isSetUnitPrice() {
848
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
849
  }
850
 
851
  public void setUnitPriceIsSet(boolean value) {
852
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
853
  }
854
 
855
  public boolean isFulfilled() {
856
    return this.fulfilled;
857
  }
858
 
859
  public void setFulfilled(boolean fulfilled) {
860
    this.fulfilled = fulfilled;
861
    setFulfilledIsSet(true);
862
  }
863
 
864
  public void unsetFulfilled() {
865
    __isset_bit_vector.clear(__FULFILLED_ISSET_ID);
866
  }
867
 
868
  /** Returns true if field fulfilled is set (has been assigned a value) and false otherwise */
869
  public boolean isSetFulfilled() {
870
    return __isset_bit_vector.get(__FULFILLED_ISSET_ID);
871
  }
872
 
873
  public void setFulfilledIsSet(boolean value) {
874
    __isset_bit_vector.set(__FULFILLED_ISSET_ID, value);
875
  }
876
 
4754 mandeep.dh 877
  public long getCodCount() {
878
    return this.codCount;
879
  }
880
 
881
  public void setCodCount(long codCount) {
882
    this.codCount = codCount;
883
    setCodCountIsSet(true);
884
  }
885
 
886
  public void unsetCodCount() {
887
    __isset_bit_vector.clear(__CODCOUNT_ISSET_ID);
888
  }
889
 
890
  /** Returns true if field codCount is set (has been assigned a value) and false otherwise */
891
  public boolean isSetCodCount() {
892
    return __isset_bit_vector.get(__CODCOUNT_ISSET_ID);
893
  }
894
 
895
  public void setCodCountIsSet(boolean value) {
896
    __isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
897
  }
898
 
6821 amar.kumar 899
  public long getAvailableQuantity() {
900
    return this.availableQuantity;
901
  }
902
 
903
  public void setAvailableQuantity(long availableQuantity) {
904
    this.availableQuantity = availableQuantity;
905
    setAvailableQuantityIsSet(true);
906
  }
907
 
908
  public void unsetAvailableQuantity() {
909
    __isset_bit_vector.clear(__AVAILABLEQUANTITY_ISSET_ID);
910
  }
911
 
912
  /** Returns true if field availableQuantity is set (has been assigned a value) and false otherwise */
913
  public boolean isSetAvailableQuantity() {
914
    return __isset_bit_vector.get(__AVAILABLEQUANTITY_ISSET_ID);
915
  }
916
 
917
  public void setAvailableQuantityIsSet(boolean value) {
918
    __isset_bit_vector.set(__AVAILABLEQUANTITY_ISSET_ID, value);
919
  }
920
 
921
  public long getReservedQuantity() {
922
    return this.reservedQuantity;
923
  }
924
 
925
  public void setReservedQuantity(long reservedQuantity) {
926
    this.reservedQuantity = reservedQuantity;
927
    setReservedQuantityIsSet(true);
928
  }
929
 
930
  public void unsetReservedQuantity() {
931
    __isset_bit_vector.clear(__RESERVEDQUANTITY_ISSET_ID);
932
  }
933
 
934
  /** Returns true if field reservedQuantity is set (has been assigned a value) and false otherwise */
935
  public boolean isSetReservedQuantity() {
936
    return __isset_bit_vector.get(__RESERVEDQUANTITY_ISSET_ID);
937
  }
938
 
939
  public void setReservedQuantityIsSet(boolean value) {
940
    __isset_bit_vector.set(__RESERVEDQUANTITY_ISSET_ID, value);
941
  }
942
 
943
  public double getAvgSales() {
944
    return this.avgSales;
945
  }
946
 
947
  public void setAvgSales(double avgSales) {
948
    this.avgSales = avgSales;
949
    setAvgSalesIsSet(true);
950
  }
951
 
952
  public void unsetAvgSales() {
953
    __isset_bit_vector.clear(__AVGSALES_ISSET_ID);
954
  }
955
 
956
  /** Returns true if field avgSales is set (has been assigned a value) and false otherwise */
957
  public boolean isSetAvgSales() {
958
    return __isset_bit_vector.get(__AVGSALES_ISSET_ID);
959
  }
960
 
961
  public void setAvgSalesIsSet(boolean value) {
962
    __isset_bit_vector.set(__AVGSALES_ISSET_ID, value);
963
  }
964
 
965
  public long getMinStockLevel() {
966
    return this.minStockLevel;
967
  }
968
 
969
  public void setMinStockLevel(long minStockLevel) {
970
    this.minStockLevel = minStockLevel;
971
    setMinStockLevelIsSet(true);
972
  }
973
 
974
  public void unsetMinStockLevel() {
975
    __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
976
  }
977
 
978
  /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
979
  public boolean isSetMinStockLevel() {
980
    return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
981
  }
982
 
983
  public void setMinStockLevelIsSet(boolean value) {
984
    __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
985
  }
986
 
987
  public long getNumberOfDaysStock() {
988
    return this.numberOfDaysStock;
989
  }
990
 
991
  public void setNumberOfDaysStock(long numberOfDaysStock) {
992
    this.numberOfDaysStock = numberOfDaysStock;
993
    setNumberOfDaysStockIsSet(true);
994
  }
995
 
996
  public void unsetNumberOfDaysStock() {
997
    __isset_bit_vector.clear(__NUMBEROFDAYSSTOCK_ISSET_ID);
998
  }
999
 
1000
  /** Returns true if field numberOfDaysStock is set (has been assigned a value) and false otherwise */
1001
  public boolean isSetNumberOfDaysStock() {
1002
    return __isset_bit_vector.get(__NUMBEROFDAYSSTOCK_ISSET_ID);
1003
  }
1004
 
1005
  public void setNumberOfDaysStockIsSet(boolean value) {
1006
    __isset_bit_vector.set(__NUMBEROFDAYSSTOCK_ISSET_ID, value);
1007
  }
1008
 
1009
  public long getSuggestedQuantity() {
1010
    return this.suggestedQuantity;
1011
  }
1012
 
1013
  public void setSuggestedQuantity(long suggestedQuantity) {
1014
    this.suggestedQuantity = suggestedQuantity;
1015
    setSuggestedQuantityIsSet(true);
1016
  }
1017
 
1018
  public void unsetSuggestedQuantity() {
1019
    __isset_bit_vector.clear(__SUGGESTEDQUANTITY_ISSET_ID);
1020
  }
1021
 
1022
  /** Returns true if field suggestedQuantity is set (has been assigned a value) and false otherwise */
1023
  public boolean isSetSuggestedQuantity() {
1024
    return __isset_bit_vector.get(__SUGGESTEDQUANTITY_ISSET_ID);
1025
  }
1026
 
1027
  public void setSuggestedQuantityIsSet(boolean value) {
1028
    __isset_bit_vector.set(__SUGGESTEDQUANTITY_ISSET_ID, value);
1029
  }
1030
 
1031
  public long getNumberOfDaysInStock() {
1032
    return this.numberOfDaysInStock;
1033
  }
1034
 
1035
  public void setNumberOfDaysInStock(long numberOfDaysInStock) {
1036
    this.numberOfDaysInStock = numberOfDaysInStock;
1037
    setNumberOfDaysInStockIsSet(true);
1038
  }
1039
 
1040
  public void unsetNumberOfDaysInStock() {
1041
    __isset_bit_vector.clear(__NUMBEROFDAYSINSTOCK_ISSET_ID);
1042
  }
1043
 
1044
  /** Returns true if field numberOfDaysInStock is set (has been assigned a value) and false otherwise */
1045
  public boolean isSetNumberOfDaysInStock() {
1046
    return __isset_bit_vector.get(__NUMBEROFDAYSINSTOCK_ISSET_ID);
1047
  }
1048
 
1049
  public void setNumberOfDaysInStockIsSet(boolean value) {
1050
    __isset_bit_vector.set(__NUMBEROFDAYSINSTOCK_ISSET_ID, value);
1051
  }
1052
 
8182 amar.kumar 1053
  public long getRtoOrders() {
1054
    return this.rtoOrders;
1055
  }
1056
 
1057
  public void setRtoOrders(long rtoOrders) {
1058
    this.rtoOrders = rtoOrders;
1059
    setRtoOrdersIsSet(true);
1060
  }
1061
 
1062
  public void unsetRtoOrders() {
1063
    __isset_bit_vector.clear(__RTOORDERS_ISSET_ID);
1064
  }
1065
 
1066
  /** Returns true if field rtoOrders is set (has been assigned a value) and false otherwise */
1067
  public boolean isSetRtoOrders() {
1068
    return __isset_bit_vector.get(__RTOORDERS_ISSET_ID);
1069
  }
1070
 
1071
  public void setRtoOrdersIsSet(boolean value) {
1072
    __isset_bit_vector.set(__RTOORDERS_ISSET_ID, value);
1073
  }
1074
 
6857 amar.kumar 1075
  public String getLastXdaysSale() {
1076
    return this.lastXdaysSale;
1077
  }
1078
 
1079
  public void setLastXdaysSale(String lastXdaysSale) {
1080
    this.lastXdaysSale = lastXdaysSale;
1081
  }
1082
 
1083
  public void unsetLastXdaysSale() {
1084
    this.lastXdaysSale = null;
1085
  }
1086
 
1087
  /** Returns true if field lastXdaysSale is set (has been assigned a value) and false otherwise */
1088
  public boolean isSetLastXdaysSale() {
1089
    return this.lastXdaysSale != null;
1090
  }
1091
 
1092
  public void setLastXdaysSaleIsSet(boolean value) {
1093
    if (!value) {
1094
      this.lastXdaysSale = null;
1095
    }
1096
  }
1097
 
6880 amar.kumar 1098
  public long getPreviouslyOrderedQty() {
1099
    return this.previouslyOrderedQty;
1100
  }
1101
 
1102
  public void setPreviouslyOrderedQty(long previouslyOrderedQty) {
1103
    this.previouslyOrderedQty = previouslyOrderedQty;
1104
    setPreviouslyOrderedQtyIsSet(true);
1105
  }
1106
 
1107
  public void unsetPreviouslyOrderedQty() {
1108
    __isset_bit_vector.clear(__PREVIOUSLYORDEREDQTY_ISSET_ID);
1109
  }
1110
 
1111
  /** Returns true if field previouslyOrderedQty is set (has been assigned a value) and false otherwise */
1112
  public boolean isSetPreviouslyOrderedQty() {
1113
    return __isset_bit_vector.get(__PREVIOUSLYORDEREDQTY_ISSET_ID);
1114
  }
1115
 
1116
  public void setPreviouslyOrderedQtyIsSet(boolean value) {
1117
    __isset_bit_vector.set(__PREVIOUSLYORDEREDQTY_ISSET_ID, value);
1118
  }
1119
 
7672 rajveer 1120
  public double getNlc() {
1121
    return this.nlc;
1122
  }
1123
 
1124
  public void setNlc(double nlc) {
1125
    this.nlc = nlc;
1126
    setNlcIsSet(true);
1127
  }
1128
 
1129
  public void unsetNlc() {
1130
    __isset_bit_vector.clear(__NLC_ISSET_ID);
1131
  }
1132
 
1133
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
1134
  public boolean isSetNlc() {
1135
    return __isset_bit_vector.get(__NLC_ISSET_ID);
1136
  }
1137
 
1138
  public void setNlcIsSet(boolean value) {
1139
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
1140
  }
1141
 
9416 amar.kumar 1142
  public double getMrp() {
1143
    return this.mrp;
1144
  }
1145
 
1146
  public void setMrp(double mrp) {
1147
    this.mrp = mrp;
1148
    setMrpIsSet(true);
1149
  }
1150
 
1151
  public void unsetMrp() {
1152
    __isset_bit_vector.clear(__MRP_ISSET_ID);
1153
  }
1154
 
1155
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
1156
  public boolean isSetMrp() {
1157
    return __isset_bit_vector.get(__MRP_ISSET_ID);
1158
  }
1159
 
1160
  public void setMrpIsSet(boolean value) {
1161
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
1162
  }
1163
 
12357 manish.sha 1164
  public double getNlcP() {
1165
    return this.nlcP;
1166
  }
1167
 
1168
  public void setNlcP(double nlcP) {
1169
    this.nlcP = nlcP;
1170
    setNlcPIsSet(true);
1171
  }
1172
 
1173
  public void unsetNlcP() {
1174
    __isset_bit_vector.clear(__NLCP_ISSET_ID);
1175
  }
1176
 
1177
  /** Returns true if field nlcP is set (has been assigned a value) and false otherwise */
1178
  public boolean isSetNlcP() {
1179
    return __isset_bit_vector.get(__NLCP_ISSET_ID);
1180
  }
1181
 
1182
  public void setNlcPIsSet(boolean value) {
1183
    __isset_bit_vector.set(__NLCP_ISSET_ID, value);
1184
  }
1185
 
1186
  public double getVatDiff() {
1187
    return this.vatDiff;
1188
  }
1189
 
1190
  public void setVatDiff(double vatDiff) {
1191
    this.vatDiff = vatDiff;
1192
    setVatDiffIsSet(true);
1193
  }
1194
 
1195
  public void unsetVatDiff() {
1196
    __isset_bit_vector.clear(__VATDIFF_ISSET_ID);
1197
  }
1198
 
1199
  /** Returns true if field vatDiff is set (has been assigned a value) and false otherwise */
1200
  public boolean isSetVatDiff() {
1201
    return __isset_bit_vector.get(__VATDIFF_ISSET_ID);
1202
  }
1203
 
1204
  public void setVatDiffIsSet(boolean value) {
1205
    __isset_bit_vector.set(__VATDIFF_ISSET_ID, value);
1206
  }
1207
 
21844 amit.gupta 1208
  public double getIgstRate() {
1209
    return this.igstRate;
1210
  }
1211
 
1212
  public void setIgstRate(double igstRate) {
1213
    this.igstRate = igstRate;
1214
    setIgstRateIsSet(true);
1215
  }
1216
 
1217
  public void unsetIgstRate() {
1218
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
1219
  }
1220
 
1221
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
1222
  public boolean isSetIgstRate() {
1223
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
1224
  }
1225
 
1226
  public void setIgstRateIsSet(boolean value) {
1227
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
1228
  }
1229
 
1230
  public double getCgstRate() {
1231
    return this.cgstRate;
1232
  }
1233
 
1234
  public void setCgstRate(double cgstRate) {
1235
    this.cgstRate = cgstRate;
1236
    setCgstRateIsSet(true);
1237
  }
1238
 
1239
  public void unsetCgstRate() {
1240
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
1241
  }
1242
 
1243
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
1244
  public boolean isSetCgstRate() {
1245
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
1246
  }
1247
 
1248
  public void setCgstRateIsSet(boolean value) {
1249
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
1250
  }
1251
 
1252
  public double getSgstRate() {
1253
    return this.sgstRate;
1254
  }
1255
 
1256
  public void setSgstRate(double sgstRate) {
1257
    this.sgstRate = sgstRate;
1258
    setSgstRateIsSet(true);
1259
  }
1260
 
1261
  public void unsetSgstRate() {
1262
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
1263
  }
1264
 
1265
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
1266
  public boolean isSetSgstRate() {
1267
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
1268
  }
1269
 
1270
  public void setSgstRateIsSet(boolean value) {
1271
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
1272
  }
1273
 
1274
  public String getHsnCode() {
1275
    return this.hsnCode;
1276
  }
1277
 
1278
  public void setHsnCode(String hsnCode) {
1279
    this.hsnCode = hsnCode;
1280
  }
1281
 
1282
  public void unsetHsnCode() {
1283
    this.hsnCode = null;
1284
  }
1285
 
1286
  /** Returns true if field hsnCode is set (has been assigned a value) and false otherwise */
1287
  public boolean isSetHsnCode() {
1288
    return this.hsnCode != null;
1289
  }
1290
 
1291
  public void setHsnCodeIsSet(boolean value) {
1292
    if (!value) {
1293
      this.hsnCode = null;
1294
    }
1295
  }
1296
 
24832 tejbeer 1297
  public double getInvoicePrice() {
1298
    return this.invoicePrice;
1299
  }
1300
 
1301
  public void setInvoicePrice(double invoicePrice) {
1302
    this.invoicePrice = invoicePrice;
1303
    setInvoicePriceIsSet(true);
1304
  }
1305
 
1306
  public void unsetInvoicePrice() {
1307
    __isset_bit_vector.clear(__INVOICEPRICE_ISSET_ID);
1308
  }
1309
 
1310
  /** Returns true if field invoicePrice is set (has been assigned a value) and false otherwise */
1311
  public boolean isSetInvoicePrice() {
1312
    return __isset_bit_vector.get(__INVOICEPRICE_ISSET_ID);
1313
  }
1314
 
1315
  public void setInvoicePriceIsSet(boolean value) {
1316
    __isset_bit_vector.set(__INVOICEPRICE_ISSET_ID, value);
1317
  }
1318
 
1319
  public double getTp() {
1320
    return this.tp;
1321
  }
1322
 
1323
  public void setTp(double tp) {
1324
    this.tp = tp;
1325
    setTpIsSet(true);
1326
  }
1327
 
1328
  public void unsetTp() {
1329
    __isset_bit_vector.clear(__TP_ISSET_ID);
1330
  }
1331
 
1332
  /** Returns true if field tp is set (has been assigned a value) and false otherwise */
1333
  public boolean isSetTp() {
1334
    return __isset_bit_vector.get(__TP_ISSET_ID);
1335
  }
1336
 
1337
  public void setTpIsSet(boolean value) {
1338
    __isset_bit_vector.set(__TP_ISSET_ID, value);
1339
  }
1340
 
4496 mandeep.dh 1341
  public void setFieldValue(_Fields field, Object value) {
1342
    switch (field) {
1343
    case ORDER_ID:
1344
      if (value == null) {
1345
        unsetOrderId();
1346
      } else {
1347
        setOrderId((Long)value);
1348
      }
1349
      break;
1350
 
1351
    case ITEM_ID:
1352
      if (value == null) {
1353
        unsetItemId();
1354
      } else {
1355
        setItemId((Long)value);
1356
      }
1357
      break;
1358
 
1359
    case PRODUCT_GROUP:
1360
      if (value == null) {
1361
        unsetProductGroup();
1362
      } else {
1363
        setProductGroup((String)value);
1364
      }
1365
      break;
1366
 
1367
    case BRAND:
1368
      if (value == null) {
1369
        unsetBrand();
1370
      } else {
1371
        setBrand((String)value);
1372
      }
1373
      break;
1374
 
1375
    case MODEL_NUMBER:
1376
      if (value == null) {
1377
        unsetModelNumber();
1378
      } else {
1379
        setModelNumber((String)value);
1380
      }
1381
      break;
1382
 
1383
    case MODEL_NAME:
1384
      if (value == null) {
1385
        unsetModelName();
1386
      } else {
1387
        setModelName((String)value);
1388
      }
1389
      break;
1390
 
1391
    case COLOR:
1392
      if (value == null) {
1393
        unsetColor();
1394
      } else {
1395
        setColor((String)value);
1396
      }
1397
      break;
1398
 
1399
    case ITEM_NUMBER:
1400
      if (value == null) {
1401
        unsetItemNumber();
1402
      } else {
1403
        setItemNumber((String)value);
1404
      }
1405
      break;
1406
 
1407
    case QUANTITY:
1408
      if (value == null) {
1409
        unsetQuantity();
1410
      } else {
1411
        setQuantity((Double)value);
1412
      }
1413
      break;
1414
 
1415
    case UNFULFILLED_QUANTITY:
1416
      if (value == null) {
1417
        unsetUnfulfilledQuantity();
1418
      } else {
1419
        setUnfulfilledQuantity((Double)value);
1420
      }
1421
      break;
1422
 
1423
    case CREATED_AT:
1424
      if (value == null) {
1425
        unsetCreatedAt();
1426
      } else {
1427
        setCreatedAt((Long)value);
1428
      }
1429
      break;
1430
 
1431
    case UNIT_PRICE:
1432
      if (value == null) {
1433
        unsetUnitPrice();
1434
      } else {
1435
        setUnitPrice((Double)value);
1436
      }
1437
      break;
1438
 
1439
    case FULFILLED:
1440
      if (value == null) {
1441
        unsetFulfilled();
1442
      } else {
1443
        setFulfilled((Boolean)value);
1444
      }
1445
      break;
1446
 
4754 mandeep.dh 1447
    case COD_COUNT:
1448
      if (value == null) {
1449
        unsetCodCount();
1450
      } else {
1451
        setCodCount((Long)value);
1452
      }
1453
      break;
1454
 
6821 amar.kumar 1455
    case AVAILABLE_QUANTITY:
1456
      if (value == null) {
1457
        unsetAvailableQuantity();
1458
      } else {
1459
        setAvailableQuantity((Long)value);
1460
      }
1461
      break;
1462
 
1463
    case RESERVED_QUANTITY:
1464
      if (value == null) {
1465
        unsetReservedQuantity();
1466
      } else {
1467
        setReservedQuantity((Long)value);
1468
      }
1469
      break;
1470
 
1471
    case AVG_SALES:
1472
      if (value == null) {
1473
        unsetAvgSales();
1474
      } else {
1475
        setAvgSales((Double)value);
1476
      }
1477
      break;
1478
 
1479
    case MIN_STOCK_LEVEL:
1480
      if (value == null) {
1481
        unsetMinStockLevel();
1482
      } else {
1483
        setMinStockLevel((Long)value);
1484
      }
1485
      break;
1486
 
1487
    case NUMBER_OF_DAYS_STOCK:
1488
      if (value == null) {
1489
        unsetNumberOfDaysStock();
1490
      } else {
1491
        setNumberOfDaysStock((Long)value);
1492
      }
1493
      break;
1494
 
1495
    case SUGGESTED_QUANTITY:
1496
      if (value == null) {
1497
        unsetSuggestedQuantity();
1498
      } else {
1499
        setSuggestedQuantity((Long)value);
1500
      }
1501
      break;
1502
 
1503
    case NUMBER_OF_DAYS_IN_STOCK:
1504
      if (value == null) {
1505
        unsetNumberOfDaysInStock();
1506
      } else {
1507
        setNumberOfDaysInStock((Long)value);
1508
      }
1509
      break;
1510
 
8182 amar.kumar 1511
    case RTO_ORDERS:
1512
      if (value == null) {
1513
        unsetRtoOrders();
1514
      } else {
1515
        setRtoOrders((Long)value);
1516
      }
1517
      break;
1518
 
6857 amar.kumar 1519
    case LAST_XDAYS_SALE:
1520
      if (value == null) {
1521
        unsetLastXdaysSale();
1522
      } else {
1523
        setLastXdaysSale((String)value);
1524
      }
1525
      break;
1526
 
6880 amar.kumar 1527
    case PREVIOUSLY_ORDERED_QTY:
1528
      if (value == null) {
1529
        unsetPreviouslyOrderedQty();
1530
      } else {
1531
        setPreviouslyOrderedQty((Long)value);
1532
      }
1533
      break;
1534
 
7672 rajveer 1535
    case NLC:
1536
      if (value == null) {
1537
        unsetNlc();
1538
      } else {
1539
        setNlc((Double)value);
1540
      }
1541
      break;
1542
 
9416 amar.kumar 1543
    case MRP:
1544
      if (value == null) {
1545
        unsetMrp();
1546
      } else {
1547
        setMrp((Double)value);
1548
      }
1549
      break;
1550
 
12357 manish.sha 1551
    case NLC_P:
1552
      if (value == null) {
1553
        unsetNlcP();
1554
      } else {
1555
        setNlcP((Double)value);
1556
      }
1557
      break;
1558
 
1559
    case VAT_DIFF:
1560
      if (value == null) {
1561
        unsetVatDiff();
1562
      } else {
1563
        setVatDiff((Double)value);
1564
      }
1565
      break;
1566
 
21844 amit.gupta 1567
    case IGST_RATE:
1568
      if (value == null) {
1569
        unsetIgstRate();
1570
      } else {
1571
        setIgstRate((Double)value);
1572
      }
1573
      break;
1574
 
1575
    case CGST_RATE:
1576
      if (value == null) {
1577
        unsetCgstRate();
1578
      } else {
1579
        setCgstRate((Double)value);
1580
      }
1581
      break;
1582
 
1583
    case SGST_RATE:
1584
      if (value == null) {
1585
        unsetSgstRate();
1586
      } else {
1587
        setSgstRate((Double)value);
1588
      }
1589
      break;
1590
 
1591
    case HSN_CODE:
1592
      if (value == null) {
1593
        unsetHsnCode();
1594
      } else {
1595
        setHsnCode((String)value);
1596
      }
1597
      break;
1598
 
24832 tejbeer 1599
    case INVOICE_PRICE:
1600
      if (value == null) {
1601
        unsetInvoicePrice();
1602
      } else {
1603
        setInvoicePrice((Double)value);
1604
      }
1605
      break;
1606
 
1607
    case TP:
1608
      if (value == null) {
1609
        unsetTp();
1610
      } else {
1611
        setTp((Double)value);
1612
      }
1613
      break;
1614
 
4496 mandeep.dh 1615
    }
1616
  }
1617
 
1618
  public Object getFieldValue(_Fields field) {
1619
    switch (field) {
1620
    case ORDER_ID:
1621
      return Long.valueOf(getOrderId());
1622
 
1623
    case ITEM_ID:
1624
      return Long.valueOf(getItemId());
1625
 
1626
    case PRODUCT_GROUP:
1627
      return getProductGroup();
1628
 
1629
    case BRAND:
1630
      return getBrand();
1631
 
1632
    case MODEL_NUMBER:
1633
      return getModelNumber();
1634
 
1635
    case MODEL_NAME:
1636
      return getModelName();
1637
 
1638
    case COLOR:
1639
      return getColor();
1640
 
1641
    case ITEM_NUMBER:
1642
      return getItemNumber();
1643
 
1644
    case QUANTITY:
1645
      return Double.valueOf(getQuantity());
1646
 
1647
    case UNFULFILLED_QUANTITY:
1648
      return Double.valueOf(getUnfulfilledQuantity());
1649
 
1650
    case CREATED_AT:
1651
      return Long.valueOf(getCreatedAt());
1652
 
1653
    case UNIT_PRICE:
1654
      return Double.valueOf(getUnitPrice());
1655
 
1656
    case FULFILLED:
1657
      return Boolean.valueOf(isFulfilled());
1658
 
4754 mandeep.dh 1659
    case COD_COUNT:
1660
      return Long.valueOf(getCodCount());
1661
 
6821 amar.kumar 1662
    case AVAILABLE_QUANTITY:
1663
      return Long.valueOf(getAvailableQuantity());
1664
 
1665
    case RESERVED_QUANTITY:
1666
      return Long.valueOf(getReservedQuantity());
1667
 
1668
    case AVG_SALES:
1669
      return Double.valueOf(getAvgSales());
1670
 
1671
    case MIN_STOCK_LEVEL:
1672
      return Long.valueOf(getMinStockLevel());
1673
 
1674
    case NUMBER_OF_DAYS_STOCK:
1675
      return Long.valueOf(getNumberOfDaysStock());
1676
 
1677
    case SUGGESTED_QUANTITY:
1678
      return Long.valueOf(getSuggestedQuantity());
1679
 
1680
    case NUMBER_OF_DAYS_IN_STOCK:
1681
      return Long.valueOf(getNumberOfDaysInStock());
1682
 
8182 amar.kumar 1683
    case RTO_ORDERS:
1684
      return Long.valueOf(getRtoOrders());
1685
 
6857 amar.kumar 1686
    case LAST_XDAYS_SALE:
1687
      return getLastXdaysSale();
1688
 
6880 amar.kumar 1689
    case PREVIOUSLY_ORDERED_QTY:
1690
      return Long.valueOf(getPreviouslyOrderedQty());
1691
 
7672 rajveer 1692
    case NLC:
1693
      return Double.valueOf(getNlc());
1694
 
9416 amar.kumar 1695
    case MRP:
1696
      return Double.valueOf(getMrp());
1697
 
12357 manish.sha 1698
    case NLC_P:
1699
      return Double.valueOf(getNlcP());
1700
 
1701
    case VAT_DIFF:
1702
      return Double.valueOf(getVatDiff());
1703
 
21844 amit.gupta 1704
    case IGST_RATE:
1705
      return Double.valueOf(getIgstRate());
1706
 
1707
    case CGST_RATE:
1708
      return Double.valueOf(getCgstRate());
1709
 
1710
    case SGST_RATE:
1711
      return Double.valueOf(getSgstRate());
1712
 
1713
    case HSN_CODE:
1714
      return getHsnCode();
1715
 
24832 tejbeer 1716
    case INVOICE_PRICE:
1717
      return Double.valueOf(getInvoicePrice());
1718
 
1719
    case TP:
1720
      return Double.valueOf(getTp());
1721
 
4496 mandeep.dh 1722
    }
1723
    throw new IllegalStateException();
1724
  }
1725
 
1726
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1727
  public boolean isSet(_Fields field) {
1728
    if (field == null) {
1729
      throw new IllegalArgumentException();
1730
    }
1731
 
1732
    switch (field) {
1733
    case ORDER_ID:
1734
      return isSetOrderId();
1735
    case ITEM_ID:
1736
      return isSetItemId();
1737
    case PRODUCT_GROUP:
1738
      return isSetProductGroup();
1739
    case BRAND:
1740
      return isSetBrand();
1741
    case MODEL_NUMBER:
1742
      return isSetModelNumber();
1743
    case MODEL_NAME:
1744
      return isSetModelName();
1745
    case COLOR:
1746
      return isSetColor();
1747
    case ITEM_NUMBER:
1748
      return isSetItemNumber();
1749
    case QUANTITY:
1750
      return isSetQuantity();
1751
    case UNFULFILLED_QUANTITY:
1752
      return isSetUnfulfilledQuantity();
1753
    case CREATED_AT:
1754
      return isSetCreatedAt();
1755
    case UNIT_PRICE:
1756
      return isSetUnitPrice();
1757
    case FULFILLED:
1758
      return isSetFulfilled();
4754 mandeep.dh 1759
    case COD_COUNT:
1760
      return isSetCodCount();
6821 amar.kumar 1761
    case AVAILABLE_QUANTITY:
1762
      return isSetAvailableQuantity();
1763
    case RESERVED_QUANTITY:
1764
      return isSetReservedQuantity();
1765
    case AVG_SALES:
1766
      return isSetAvgSales();
1767
    case MIN_STOCK_LEVEL:
1768
      return isSetMinStockLevel();
1769
    case NUMBER_OF_DAYS_STOCK:
1770
      return isSetNumberOfDaysStock();
1771
    case SUGGESTED_QUANTITY:
1772
      return isSetSuggestedQuantity();
1773
    case NUMBER_OF_DAYS_IN_STOCK:
1774
      return isSetNumberOfDaysInStock();
8182 amar.kumar 1775
    case RTO_ORDERS:
1776
      return isSetRtoOrders();
6857 amar.kumar 1777
    case LAST_XDAYS_SALE:
1778
      return isSetLastXdaysSale();
6880 amar.kumar 1779
    case PREVIOUSLY_ORDERED_QTY:
1780
      return isSetPreviouslyOrderedQty();
7672 rajveer 1781
    case NLC:
1782
      return isSetNlc();
9416 amar.kumar 1783
    case MRP:
1784
      return isSetMrp();
12357 manish.sha 1785
    case NLC_P:
1786
      return isSetNlcP();
1787
    case VAT_DIFF:
1788
      return isSetVatDiff();
21844 amit.gupta 1789
    case IGST_RATE:
1790
      return isSetIgstRate();
1791
    case CGST_RATE:
1792
      return isSetCgstRate();
1793
    case SGST_RATE:
1794
      return isSetSgstRate();
1795
    case HSN_CODE:
1796
      return isSetHsnCode();
24832 tejbeer 1797
    case INVOICE_PRICE:
1798
      return isSetInvoicePrice();
1799
    case TP:
1800
      return isSetTp();
4496 mandeep.dh 1801
    }
1802
    throw new IllegalStateException();
1803
  }
1804
 
1805
  @Override
1806
  public boolean equals(Object that) {
1807
    if (that == null)
1808
      return false;
1809
    if (that instanceof LineItem)
1810
      return this.equals((LineItem)that);
1811
    return false;
1812
  }
1813
 
1814
  public boolean equals(LineItem that) {
1815
    if (that == null)
1816
      return false;
1817
 
1818
    boolean this_present_orderId = true;
1819
    boolean that_present_orderId = true;
1820
    if (this_present_orderId || that_present_orderId) {
1821
      if (!(this_present_orderId && that_present_orderId))
1822
        return false;
1823
      if (this.orderId != that.orderId)
1824
        return false;
1825
    }
1826
 
1827
    boolean this_present_itemId = true;
1828
    boolean that_present_itemId = true;
1829
    if (this_present_itemId || that_present_itemId) {
1830
      if (!(this_present_itemId && that_present_itemId))
1831
        return false;
1832
      if (this.itemId != that.itemId)
1833
        return false;
1834
    }
1835
 
1836
    boolean this_present_productGroup = true && this.isSetProductGroup();
1837
    boolean that_present_productGroup = true && that.isSetProductGroup();
1838
    if (this_present_productGroup || that_present_productGroup) {
1839
      if (!(this_present_productGroup && that_present_productGroup))
1840
        return false;
1841
      if (!this.productGroup.equals(that.productGroup))
1842
        return false;
1843
    }
1844
 
1845
    boolean this_present_brand = true && this.isSetBrand();
1846
    boolean that_present_brand = true && that.isSetBrand();
1847
    if (this_present_brand || that_present_brand) {
1848
      if (!(this_present_brand && that_present_brand))
1849
        return false;
1850
      if (!this.brand.equals(that.brand))
1851
        return false;
1852
    }
1853
 
1854
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1855
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1856
    if (this_present_modelNumber || that_present_modelNumber) {
1857
      if (!(this_present_modelNumber && that_present_modelNumber))
1858
        return false;
1859
      if (!this.modelNumber.equals(that.modelNumber))
1860
        return false;
1861
    }
1862
 
1863
    boolean this_present_modelName = true && this.isSetModelName();
1864
    boolean that_present_modelName = true && that.isSetModelName();
1865
    if (this_present_modelName || that_present_modelName) {
1866
      if (!(this_present_modelName && that_present_modelName))
1867
        return false;
1868
      if (!this.modelName.equals(that.modelName))
1869
        return false;
1870
    }
1871
 
1872
    boolean this_present_color = true && this.isSetColor();
1873
    boolean that_present_color = true && that.isSetColor();
1874
    if (this_present_color || that_present_color) {
1875
      if (!(this_present_color && that_present_color))
1876
        return false;
1877
      if (!this.color.equals(that.color))
1878
        return false;
1879
    }
1880
 
1881
    boolean this_present_itemNumber = true && this.isSetItemNumber();
1882
    boolean that_present_itemNumber = true && that.isSetItemNumber();
1883
    if (this_present_itemNumber || that_present_itemNumber) {
1884
      if (!(this_present_itemNumber && that_present_itemNumber))
1885
        return false;
1886
      if (!this.itemNumber.equals(that.itemNumber))
1887
        return false;
1888
    }
1889
 
1890
    boolean this_present_quantity = true;
1891
    boolean that_present_quantity = true;
1892
    if (this_present_quantity || that_present_quantity) {
1893
      if (!(this_present_quantity && that_present_quantity))
1894
        return false;
1895
      if (this.quantity != that.quantity)
1896
        return false;
1897
    }
1898
 
1899
    boolean this_present_unfulfilledQuantity = true;
1900
    boolean that_present_unfulfilledQuantity = true;
1901
    if (this_present_unfulfilledQuantity || that_present_unfulfilledQuantity) {
1902
      if (!(this_present_unfulfilledQuantity && that_present_unfulfilledQuantity))
1903
        return false;
1904
      if (this.unfulfilledQuantity != that.unfulfilledQuantity)
1905
        return false;
1906
    }
1907
 
1908
    boolean this_present_createdAt = true;
1909
    boolean that_present_createdAt = true;
1910
    if (this_present_createdAt || that_present_createdAt) {
1911
      if (!(this_present_createdAt && that_present_createdAt))
1912
        return false;
1913
      if (this.createdAt != that.createdAt)
1914
        return false;
1915
    }
1916
 
1917
    boolean this_present_unitPrice = true;
1918
    boolean that_present_unitPrice = true;
1919
    if (this_present_unitPrice || that_present_unitPrice) {
1920
      if (!(this_present_unitPrice && that_present_unitPrice))
1921
        return false;
1922
      if (this.unitPrice != that.unitPrice)
1923
        return false;
1924
    }
1925
 
1926
    boolean this_present_fulfilled = true;
1927
    boolean that_present_fulfilled = true;
1928
    if (this_present_fulfilled || that_present_fulfilled) {
1929
      if (!(this_present_fulfilled && that_present_fulfilled))
1930
        return false;
1931
      if (this.fulfilled != that.fulfilled)
1932
        return false;
1933
    }
1934
 
4754 mandeep.dh 1935
    boolean this_present_codCount = true;
1936
    boolean that_present_codCount = true;
1937
    if (this_present_codCount || that_present_codCount) {
1938
      if (!(this_present_codCount && that_present_codCount))
1939
        return false;
1940
      if (this.codCount != that.codCount)
1941
        return false;
1942
    }
1943
 
6821 amar.kumar 1944
    boolean this_present_availableQuantity = true;
1945
    boolean that_present_availableQuantity = true;
1946
    if (this_present_availableQuantity || that_present_availableQuantity) {
1947
      if (!(this_present_availableQuantity && that_present_availableQuantity))
1948
        return false;
1949
      if (this.availableQuantity != that.availableQuantity)
1950
        return false;
1951
    }
1952
 
1953
    boolean this_present_reservedQuantity = true;
1954
    boolean that_present_reservedQuantity = true;
1955
    if (this_present_reservedQuantity || that_present_reservedQuantity) {
1956
      if (!(this_present_reservedQuantity && that_present_reservedQuantity))
1957
        return false;
1958
      if (this.reservedQuantity != that.reservedQuantity)
1959
        return false;
1960
    }
1961
 
1962
    boolean this_present_avgSales = true;
1963
    boolean that_present_avgSales = true;
1964
    if (this_present_avgSales || that_present_avgSales) {
1965
      if (!(this_present_avgSales && that_present_avgSales))
1966
        return false;
1967
      if (this.avgSales != that.avgSales)
1968
        return false;
1969
    }
1970
 
1971
    boolean this_present_minStockLevel = true;
1972
    boolean that_present_minStockLevel = true;
1973
    if (this_present_minStockLevel || that_present_minStockLevel) {
1974
      if (!(this_present_minStockLevel && that_present_minStockLevel))
1975
        return false;
1976
      if (this.minStockLevel != that.minStockLevel)
1977
        return false;
1978
    }
1979
 
1980
    boolean this_present_numberOfDaysStock = true;
1981
    boolean that_present_numberOfDaysStock = true;
1982
    if (this_present_numberOfDaysStock || that_present_numberOfDaysStock) {
1983
      if (!(this_present_numberOfDaysStock && that_present_numberOfDaysStock))
1984
        return false;
1985
      if (this.numberOfDaysStock != that.numberOfDaysStock)
1986
        return false;
1987
    }
1988
 
1989
    boolean this_present_suggestedQuantity = true;
1990
    boolean that_present_suggestedQuantity = true;
1991
    if (this_present_suggestedQuantity || that_present_suggestedQuantity) {
1992
      if (!(this_present_suggestedQuantity && that_present_suggestedQuantity))
1993
        return false;
1994
      if (this.suggestedQuantity != that.suggestedQuantity)
1995
        return false;
1996
    }
1997
 
1998
    boolean this_present_numberOfDaysInStock = true;
1999
    boolean that_present_numberOfDaysInStock = true;
2000
    if (this_present_numberOfDaysInStock || that_present_numberOfDaysInStock) {
2001
      if (!(this_present_numberOfDaysInStock && that_present_numberOfDaysInStock))
2002
        return false;
2003
      if (this.numberOfDaysInStock != that.numberOfDaysInStock)
2004
        return false;
2005
    }
2006
 
8182 amar.kumar 2007
    boolean this_present_rtoOrders = true;
2008
    boolean that_present_rtoOrders = true;
2009
    if (this_present_rtoOrders || that_present_rtoOrders) {
2010
      if (!(this_present_rtoOrders && that_present_rtoOrders))
2011
        return false;
2012
      if (this.rtoOrders != that.rtoOrders)
2013
        return false;
2014
    }
2015
 
6857 amar.kumar 2016
    boolean this_present_lastXdaysSale = true && this.isSetLastXdaysSale();
2017
    boolean that_present_lastXdaysSale = true && that.isSetLastXdaysSale();
2018
    if (this_present_lastXdaysSale || that_present_lastXdaysSale) {
2019
      if (!(this_present_lastXdaysSale && that_present_lastXdaysSale))
2020
        return false;
2021
      if (!this.lastXdaysSale.equals(that.lastXdaysSale))
2022
        return false;
2023
    }
2024
 
6880 amar.kumar 2025
    boolean this_present_previouslyOrderedQty = true;
2026
    boolean that_present_previouslyOrderedQty = true;
2027
    if (this_present_previouslyOrderedQty || that_present_previouslyOrderedQty) {
2028
      if (!(this_present_previouslyOrderedQty && that_present_previouslyOrderedQty))
2029
        return false;
2030
      if (this.previouslyOrderedQty != that.previouslyOrderedQty)
2031
        return false;
2032
    }
2033
 
7672 rajveer 2034
    boolean this_present_nlc = true;
2035
    boolean that_present_nlc = true;
2036
    if (this_present_nlc || that_present_nlc) {
2037
      if (!(this_present_nlc && that_present_nlc))
2038
        return false;
2039
      if (this.nlc != that.nlc)
2040
        return false;
2041
    }
2042
 
9416 amar.kumar 2043
    boolean this_present_mrp = true;
2044
    boolean that_present_mrp = true;
2045
    if (this_present_mrp || that_present_mrp) {
2046
      if (!(this_present_mrp && that_present_mrp))
2047
        return false;
2048
      if (this.mrp != that.mrp)
2049
        return false;
2050
    }
2051
 
12357 manish.sha 2052
    boolean this_present_nlcP = true;
2053
    boolean that_present_nlcP = true;
2054
    if (this_present_nlcP || that_present_nlcP) {
2055
      if (!(this_present_nlcP && that_present_nlcP))
2056
        return false;
2057
      if (this.nlcP != that.nlcP)
2058
        return false;
2059
    }
2060
 
2061
    boolean this_present_vatDiff = true;
2062
    boolean that_present_vatDiff = true;
2063
    if (this_present_vatDiff || that_present_vatDiff) {
2064
      if (!(this_present_vatDiff && that_present_vatDiff))
2065
        return false;
2066
      if (this.vatDiff != that.vatDiff)
2067
        return false;
2068
    }
2069
 
21844 amit.gupta 2070
    boolean this_present_igstRate = true;
2071
    boolean that_present_igstRate = true;
2072
    if (this_present_igstRate || that_present_igstRate) {
2073
      if (!(this_present_igstRate && that_present_igstRate))
2074
        return false;
2075
      if (this.igstRate != that.igstRate)
2076
        return false;
2077
    }
2078
 
2079
    boolean this_present_cgstRate = true;
2080
    boolean that_present_cgstRate = true;
2081
    if (this_present_cgstRate || that_present_cgstRate) {
2082
      if (!(this_present_cgstRate && that_present_cgstRate))
2083
        return false;
2084
      if (this.cgstRate != that.cgstRate)
2085
        return false;
2086
    }
2087
 
2088
    boolean this_present_sgstRate = true;
2089
    boolean that_present_sgstRate = true;
2090
    if (this_present_sgstRate || that_present_sgstRate) {
2091
      if (!(this_present_sgstRate && that_present_sgstRate))
2092
        return false;
2093
      if (this.sgstRate != that.sgstRate)
2094
        return false;
2095
    }
2096
 
2097
    boolean this_present_hsnCode = true && this.isSetHsnCode();
2098
    boolean that_present_hsnCode = true && that.isSetHsnCode();
2099
    if (this_present_hsnCode || that_present_hsnCode) {
2100
      if (!(this_present_hsnCode && that_present_hsnCode))
2101
        return false;
2102
      if (!this.hsnCode.equals(that.hsnCode))
2103
        return false;
2104
    }
2105
 
24832 tejbeer 2106
    boolean this_present_invoicePrice = true;
2107
    boolean that_present_invoicePrice = true;
2108
    if (this_present_invoicePrice || that_present_invoicePrice) {
2109
      if (!(this_present_invoicePrice && that_present_invoicePrice))
2110
        return false;
2111
      if (this.invoicePrice != that.invoicePrice)
2112
        return false;
2113
    }
2114
 
2115
    boolean this_present_tp = true;
2116
    boolean that_present_tp = true;
2117
    if (this_present_tp || that_present_tp) {
2118
      if (!(this_present_tp && that_present_tp))
2119
        return false;
2120
      if (this.tp != that.tp)
2121
        return false;
2122
    }
2123
 
4496 mandeep.dh 2124
    return true;
2125
  }
2126
 
2127
  @Override
2128
  public int hashCode() {
2129
    return 0;
2130
  }
2131
 
2132
  public int compareTo(LineItem other) {
2133
    if (!getClass().equals(other.getClass())) {
2134
      return getClass().getName().compareTo(other.getClass().getName());
2135
    }
2136
 
2137
    int lastComparison = 0;
2138
    LineItem typedOther = (LineItem)other;
2139
 
2140
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2141
    if (lastComparison != 0) {
2142
      return lastComparison;
2143
    }
2144
    if (isSetOrderId()) {
2145
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
2146
      if (lastComparison != 0) {
2147
        return lastComparison;
2148
      }
2149
    }
2150
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2151
    if (lastComparison != 0) {
2152
      return lastComparison;
2153
    }
2154
    if (isSetItemId()) {
2155
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2156
      if (lastComparison != 0) {
2157
        return lastComparison;
2158
      }
2159
    }
2160
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
2161
    if (lastComparison != 0) {
2162
      return lastComparison;
2163
    }
2164
    if (isSetProductGroup()) {
2165
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
2166
      if (lastComparison != 0) {
2167
        return lastComparison;
2168
      }
2169
    }
2170
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
2171
    if (lastComparison != 0) {
2172
      return lastComparison;
2173
    }
2174
    if (isSetBrand()) {
2175
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
2176
      if (lastComparison != 0) {
2177
        return lastComparison;
2178
      }
2179
    }
2180
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
2181
    if (lastComparison != 0) {
2182
      return lastComparison;
2183
    }
2184
    if (isSetModelNumber()) {
2185
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
2186
      if (lastComparison != 0) {
2187
        return lastComparison;
2188
      }
2189
    }
2190
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
2191
    if (lastComparison != 0) {
2192
      return lastComparison;
2193
    }
2194
    if (isSetModelName()) {
2195
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
2196
      if (lastComparison != 0) {
2197
        return lastComparison;
2198
      }
2199
    }
2200
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
2201
    if (lastComparison != 0) {
2202
      return lastComparison;
2203
    }
2204
    if (isSetColor()) {
2205
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
2206
      if (lastComparison != 0) {
2207
        return lastComparison;
2208
      }
2209
    }
2210
    lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
2211
    if (lastComparison != 0) {
2212
      return lastComparison;
2213
    }
2214
    if (isSetItemNumber()) {
2215
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
2216
      if (lastComparison != 0) {
2217
        return lastComparison;
2218
      }
2219
    }
2220
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2221
    if (lastComparison != 0) {
2222
      return lastComparison;
2223
    }
2224
    if (isSetQuantity()) {
2225
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
2226
      if (lastComparison != 0) {
2227
        return lastComparison;
2228
      }
2229
    }
2230
    lastComparison = Boolean.valueOf(isSetUnfulfilledQuantity()).compareTo(typedOther.isSetUnfulfilledQuantity());
2231
    if (lastComparison != 0) {
2232
      return lastComparison;
2233
    }
2234
    if (isSetUnfulfilledQuantity()) {
2235
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfilledQuantity, typedOther.unfulfilledQuantity);
2236
      if (lastComparison != 0) {
2237
        return lastComparison;
2238
      }
2239
    }
2240
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
2241
    if (lastComparison != 0) {
2242
      return lastComparison;
2243
    }
2244
    if (isSetCreatedAt()) {
2245
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
2246
      if (lastComparison != 0) {
2247
        return lastComparison;
2248
      }
2249
    }
2250
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
2251
    if (lastComparison != 0) {
2252
      return lastComparison;
2253
    }
2254
    if (isSetUnitPrice()) {
2255
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
2256
      if (lastComparison != 0) {
2257
        return lastComparison;
2258
      }
2259
    }
2260
    lastComparison = Boolean.valueOf(isSetFulfilled()).compareTo(typedOther.isSetFulfilled());
2261
    if (lastComparison != 0) {
2262
      return lastComparison;
2263
    }
2264
    if (isSetFulfilled()) {
2265
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilled, typedOther.fulfilled);
2266
      if (lastComparison != 0) {
2267
        return lastComparison;
2268
      }
2269
    }
4754 mandeep.dh 2270
    lastComparison = Boolean.valueOf(isSetCodCount()).compareTo(typedOther.isSetCodCount());
2271
    if (lastComparison != 0) {
2272
      return lastComparison;
2273
    }
2274
    if (isSetCodCount()) {
2275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
2276
      if (lastComparison != 0) {
2277
        return lastComparison;
2278
      }
2279
    }
6821 amar.kumar 2280
    lastComparison = Boolean.valueOf(isSetAvailableQuantity()).compareTo(typedOther.isSetAvailableQuantity());
2281
    if (lastComparison != 0) {
2282
      return lastComparison;
2283
    }
2284
    if (isSetAvailableQuantity()) {
2285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableQuantity, typedOther.availableQuantity);
2286
      if (lastComparison != 0) {
2287
        return lastComparison;
2288
      }
2289
    }
2290
    lastComparison = Boolean.valueOf(isSetReservedQuantity()).compareTo(typedOther.isSetReservedQuantity());
2291
    if (lastComparison != 0) {
2292
      return lastComparison;
2293
    }
2294
    if (isSetReservedQuantity()) {
2295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reservedQuantity, typedOther.reservedQuantity);
2296
      if (lastComparison != 0) {
2297
        return lastComparison;
2298
      }
2299
    }
2300
    lastComparison = Boolean.valueOf(isSetAvgSales()).compareTo(typedOther.isSetAvgSales());
2301
    if (lastComparison != 0) {
2302
      return lastComparison;
2303
    }
2304
    if (isSetAvgSales()) {
2305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgSales, typedOther.avgSales);
2306
      if (lastComparison != 0) {
2307
        return lastComparison;
2308
      }
2309
    }
2310
    lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
2311
    if (lastComparison != 0) {
2312
      return lastComparison;
2313
    }
2314
    if (isSetMinStockLevel()) {
2315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
2316
      if (lastComparison != 0) {
2317
        return lastComparison;
2318
      }
2319
    }
2320
    lastComparison = Boolean.valueOf(isSetNumberOfDaysStock()).compareTo(typedOther.isSetNumberOfDaysStock());
2321
    if (lastComparison != 0) {
2322
      return lastComparison;
2323
    }
2324
    if (isSetNumberOfDaysStock()) {
2325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysStock, typedOther.numberOfDaysStock);
2326
      if (lastComparison != 0) {
2327
        return lastComparison;
2328
      }
2329
    }
2330
    lastComparison = Boolean.valueOf(isSetSuggestedQuantity()).compareTo(typedOther.isSetSuggestedQuantity());
2331
    if (lastComparison != 0) {
2332
      return lastComparison;
2333
    }
2334
    if (isSetSuggestedQuantity()) {
2335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suggestedQuantity, typedOther.suggestedQuantity);
2336
      if (lastComparison != 0) {
2337
        return lastComparison;
2338
      }
2339
    }
2340
    lastComparison = Boolean.valueOf(isSetNumberOfDaysInStock()).compareTo(typedOther.isSetNumberOfDaysInStock());
2341
    if (lastComparison != 0) {
2342
      return lastComparison;
2343
    }
2344
    if (isSetNumberOfDaysInStock()) {
2345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysInStock, typedOther.numberOfDaysInStock);
2346
      if (lastComparison != 0) {
2347
        return lastComparison;
2348
      }
2349
    }
8182 amar.kumar 2350
    lastComparison = Boolean.valueOf(isSetRtoOrders()).compareTo(typedOther.isSetRtoOrders());
2351
    if (lastComparison != 0) {
2352
      return lastComparison;
2353
    }
2354
    if (isSetRtoOrders()) {
2355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rtoOrders, typedOther.rtoOrders);
2356
      if (lastComparison != 0) {
2357
        return lastComparison;
2358
      }
2359
    }
6857 amar.kumar 2360
    lastComparison = Boolean.valueOf(isSetLastXdaysSale()).compareTo(typedOther.isSetLastXdaysSale());
2361
    if (lastComparison != 0) {
2362
      return lastComparison;
2363
    }
2364
    if (isSetLastXdaysSale()) {
2365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastXdaysSale, typedOther.lastXdaysSale);
2366
      if (lastComparison != 0) {
2367
        return lastComparison;
2368
      }
2369
    }
6880 amar.kumar 2370
    lastComparison = Boolean.valueOf(isSetPreviouslyOrderedQty()).compareTo(typedOther.isSetPreviouslyOrderedQty());
2371
    if (lastComparison != 0) {
2372
      return lastComparison;
2373
    }
2374
    if (isSetPreviouslyOrderedQty()) {
2375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previouslyOrderedQty, typedOther.previouslyOrderedQty);
2376
      if (lastComparison != 0) {
2377
        return lastComparison;
2378
      }
2379
    }
7672 rajveer 2380
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
2381
    if (lastComparison != 0) {
2382
      return lastComparison;
2383
    }
2384
    if (isSetNlc()) {
2385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
2386
      if (lastComparison != 0) {
2387
        return lastComparison;
2388
      }
2389
    }
9416 amar.kumar 2390
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
2391
    if (lastComparison != 0) {
2392
      return lastComparison;
2393
    }
2394
    if (isSetMrp()) {
2395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
2396
      if (lastComparison != 0) {
2397
        return lastComparison;
2398
      }
2399
    }
12357 manish.sha 2400
    lastComparison = Boolean.valueOf(isSetNlcP()).compareTo(typedOther.isSetNlcP());
2401
    if (lastComparison != 0) {
2402
      return lastComparison;
2403
    }
2404
    if (isSetNlcP()) {
2405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlcP, typedOther.nlcP);
2406
      if (lastComparison != 0) {
2407
        return lastComparison;
2408
      }
2409
    }
2410
    lastComparison = Boolean.valueOf(isSetVatDiff()).compareTo(typedOther.isSetVatDiff());
2411
    if (lastComparison != 0) {
2412
      return lastComparison;
2413
    }
2414
    if (isSetVatDiff()) {
2415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatDiff, typedOther.vatDiff);
2416
      if (lastComparison != 0) {
2417
        return lastComparison;
2418
      }
2419
    }
21844 amit.gupta 2420
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
2421
    if (lastComparison != 0) {
2422
      return lastComparison;
2423
    }
2424
    if (isSetIgstRate()) {
2425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
2426
      if (lastComparison != 0) {
2427
        return lastComparison;
2428
      }
2429
    }
2430
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
2431
    if (lastComparison != 0) {
2432
      return lastComparison;
2433
    }
2434
    if (isSetCgstRate()) {
2435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
2436
      if (lastComparison != 0) {
2437
        return lastComparison;
2438
      }
2439
    }
2440
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
2441
    if (lastComparison != 0) {
2442
      return lastComparison;
2443
    }
2444
    if (isSetSgstRate()) {
2445
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
2446
      if (lastComparison != 0) {
2447
        return lastComparison;
2448
      }
2449
    }
2450
    lastComparison = Boolean.valueOf(isSetHsnCode()).compareTo(typedOther.isSetHsnCode());
2451
    if (lastComparison != 0) {
2452
      return lastComparison;
2453
    }
2454
    if (isSetHsnCode()) {
2455
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsnCode, typedOther.hsnCode);
2456
      if (lastComparison != 0) {
2457
        return lastComparison;
2458
      }
2459
    }
24832 tejbeer 2460
    lastComparison = Boolean.valueOf(isSetInvoicePrice()).compareTo(typedOther.isSetInvoicePrice());
2461
    if (lastComparison != 0) {
2462
      return lastComparison;
2463
    }
2464
    if (isSetInvoicePrice()) {
2465
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoicePrice, typedOther.invoicePrice);
2466
      if (lastComparison != 0) {
2467
        return lastComparison;
2468
      }
2469
    }
2470
    lastComparison = Boolean.valueOf(isSetTp()).compareTo(typedOther.isSetTp());
2471
    if (lastComparison != 0) {
2472
      return lastComparison;
2473
    }
2474
    if (isSetTp()) {
2475
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tp, typedOther.tp);
2476
      if (lastComparison != 0) {
2477
        return lastComparison;
2478
      }
2479
    }
4496 mandeep.dh 2480
    return 0;
2481
  }
2482
 
2483
  public _Fields fieldForId(int fieldId) {
2484
    return _Fields.findByThriftId(fieldId);
2485
  }
2486
 
2487
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2488
    org.apache.thrift.protocol.TField field;
2489
    iprot.readStructBegin();
2490
    while (true)
2491
    {
2492
      field = iprot.readFieldBegin();
2493
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2494
        break;
2495
      }
2496
      switch (field.id) {
2497
        case 1: // ORDER_ID
2498
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2499
            this.orderId = iprot.readI64();
2500
            setOrderIdIsSet(true);
2501
          } else { 
2502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2503
          }
2504
          break;
2505
        case 2: // ITEM_ID
2506
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2507
            this.itemId = iprot.readI64();
2508
            setItemIdIsSet(true);
2509
          } else { 
2510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2511
          }
2512
          break;
2513
        case 3: // PRODUCT_GROUP
2514
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2515
            this.productGroup = iprot.readString();
2516
          } else { 
2517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2518
          }
2519
          break;
2520
        case 4: // BRAND
2521
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2522
            this.brand = iprot.readString();
2523
          } else { 
2524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2525
          }
2526
          break;
2527
        case 5: // MODEL_NUMBER
2528
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2529
            this.modelNumber = iprot.readString();
2530
          } else { 
2531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2532
          }
2533
          break;
2534
        case 6: // MODEL_NAME
2535
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2536
            this.modelName = iprot.readString();
2537
          } else { 
2538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2539
          }
2540
          break;
2541
        case 7: // COLOR
2542
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2543
            this.color = iprot.readString();
2544
          } else { 
2545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2546
          }
2547
          break;
2548
        case 8: // ITEM_NUMBER
2549
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2550
            this.itemNumber = iprot.readString();
2551
          } else { 
2552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2553
          }
2554
          break;
2555
        case 9: // QUANTITY
2556
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2557
            this.quantity = iprot.readDouble();
2558
            setQuantityIsSet(true);
2559
          } else { 
2560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2561
          }
2562
          break;
2563
        case 10: // UNFULFILLED_QUANTITY
2564
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2565
            this.unfulfilledQuantity = iprot.readDouble();
2566
            setUnfulfilledQuantityIsSet(true);
2567
          } else { 
2568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2569
          }
2570
          break;
2571
        case 11: // CREATED_AT
2572
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2573
            this.createdAt = iprot.readI64();
2574
            setCreatedAtIsSet(true);
2575
          } else { 
2576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2577
          }
2578
          break;
2579
        case 12: // UNIT_PRICE
2580
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2581
            this.unitPrice = iprot.readDouble();
2582
            setUnitPriceIsSet(true);
2583
          } else { 
2584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2585
          }
2586
          break;
2587
        case 13: // FULFILLED
2588
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2589
            this.fulfilled = iprot.readBool();
2590
            setFulfilledIsSet(true);
2591
          } else { 
2592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2593
          }
2594
          break;
4754 mandeep.dh 2595
        case 14: // COD_COUNT
2596
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2597
            this.codCount = iprot.readI64();
2598
            setCodCountIsSet(true);
2599
          } else { 
2600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2601
          }
2602
          break;
6821 amar.kumar 2603
        case 15: // AVAILABLE_QUANTITY
2604
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2605
            this.availableQuantity = iprot.readI64();
2606
            setAvailableQuantityIsSet(true);
2607
          } else { 
2608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2609
          }
2610
          break;
2611
        case 16: // RESERVED_QUANTITY
2612
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2613
            this.reservedQuantity = iprot.readI64();
2614
            setReservedQuantityIsSet(true);
2615
          } else { 
2616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2617
          }
2618
          break;
2619
        case 17: // AVG_SALES
2620
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2621
            this.avgSales = iprot.readDouble();
2622
            setAvgSalesIsSet(true);
2623
          } else { 
2624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2625
          }
2626
          break;
2627
        case 18: // MIN_STOCK_LEVEL
2628
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2629
            this.minStockLevel = iprot.readI64();
2630
            setMinStockLevelIsSet(true);
2631
          } else { 
2632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2633
          }
2634
          break;
2635
        case 19: // NUMBER_OF_DAYS_STOCK
2636
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2637
            this.numberOfDaysStock = iprot.readI64();
2638
            setNumberOfDaysStockIsSet(true);
2639
          } else { 
2640
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2641
          }
2642
          break;
2643
        case 20: // SUGGESTED_QUANTITY
2644
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2645
            this.suggestedQuantity = iprot.readI64();
2646
            setSuggestedQuantityIsSet(true);
2647
          } else { 
2648
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2649
          }
2650
          break;
2651
        case 21: // NUMBER_OF_DAYS_IN_STOCK
2652
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2653
            this.numberOfDaysInStock = iprot.readI64();
2654
            setNumberOfDaysInStockIsSet(true);
2655
          } else { 
2656
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2657
          }
2658
          break;
8182 amar.kumar 2659
        case 22: // RTO_ORDERS
2660
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2661
            this.rtoOrders = iprot.readI64();
2662
            setRtoOrdersIsSet(true);
2663
          } else { 
2664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2665
          }
2666
          break;
2667
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 2668
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2669
            this.lastXdaysSale = iprot.readString();
2670
          } else { 
2671
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2672
          }
2673
          break;
8182 amar.kumar 2674
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 2675
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2676
            this.previouslyOrderedQty = iprot.readI64();
2677
            setPreviouslyOrderedQtyIsSet(true);
2678
          } else { 
2679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2680
          }
2681
          break;
8182 amar.kumar 2682
        case 25: // NLC
7672 rajveer 2683
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2684
            this.nlc = iprot.readDouble();
2685
            setNlcIsSet(true);
2686
          } else { 
2687
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2688
          }
2689
          break;
9416 amar.kumar 2690
        case 26: // MRP
2691
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2692
            this.mrp = iprot.readDouble();
2693
            setMrpIsSet(true);
2694
          } else { 
2695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2696
          }
2697
          break;
12357 manish.sha 2698
        case 27: // NLC_P
2699
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2700
            this.nlcP = iprot.readDouble();
2701
            setNlcPIsSet(true);
2702
          } else { 
2703
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2704
          }
2705
          break;
2706
        case 28: // VAT_DIFF
2707
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2708
            this.vatDiff = iprot.readDouble();
2709
            setVatDiffIsSet(true);
2710
          } else { 
2711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2712
          }
2713
          break;
21844 amit.gupta 2714
        case 29: // IGST_RATE
2715
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2716
            this.igstRate = iprot.readDouble();
2717
            setIgstRateIsSet(true);
2718
          } else { 
2719
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2720
          }
2721
          break;
2722
        case 30: // CGST_RATE
2723
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2724
            this.cgstRate = iprot.readDouble();
2725
            setCgstRateIsSet(true);
2726
          } else { 
2727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2728
          }
2729
          break;
2730
        case 31: // SGST_RATE
2731
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2732
            this.sgstRate = iprot.readDouble();
2733
            setSgstRateIsSet(true);
2734
          } else { 
2735
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2736
          }
2737
          break;
2738
        case 32: // HSN_CODE
2739
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2740
            this.hsnCode = iprot.readString();
2741
          } else { 
2742
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2743
          }
2744
          break;
24832 tejbeer 2745
        case 33: // INVOICE_PRICE
2746
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2747
            this.invoicePrice = iprot.readDouble();
2748
            setInvoicePriceIsSet(true);
2749
          } else { 
2750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2751
          }
2752
          break;
2753
        case 34: // TP
2754
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2755
            this.tp = iprot.readDouble();
2756
            setTpIsSet(true);
2757
          } else { 
2758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2759
          }
2760
          break;
4496 mandeep.dh 2761
        default:
2762
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2763
      }
2764
      iprot.readFieldEnd();
2765
    }
2766
    iprot.readStructEnd();
2767
    validate();
2768
  }
2769
 
2770
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2771
    validate();
2772
 
2773
    oprot.writeStructBegin(STRUCT_DESC);
2774
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
2775
    oprot.writeI64(this.orderId);
2776
    oprot.writeFieldEnd();
2777
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2778
    oprot.writeI64(this.itemId);
2779
    oprot.writeFieldEnd();
2780
    if (this.productGroup != null) {
2781
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
2782
      oprot.writeString(this.productGroup);
2783
      oprot.writeFieldEnd();
2784
    }
2785
    if (this.brand != null) {
2786
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2787
      oprot.writeString(this.brand);
2788
      oprot.writeFieldEnd();
2789
    }
2790
    if (this.modelNumber != null) {
2791
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2792
      oprot.writeString(this.modelNumber);
2793
      oprot.writeFieldEnd();
2794
    }
2795
    if (this.modelName != null) {
2796
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2797
      oprot.writeString(this.modelName);
2798
      oprot.writeFieldEnd();
2799
    }
2800
    if (this.color != null) {
2801
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2802
      oprot.writeString(this.color);
2803
      oprot.writeFieldEnd();
2804
    }
2805
    if (this.itemNumber != null) {
2806
      oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
2807
      oprot.writeString(this.itemNumber);
2808
      oprot.writeFieldEnd();
2809
    }
2810
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2811
    oprot.writeDouble(this.quantity);
2812
    oprot.writeFieldEnd();
2813
    oprot.writeFieldBegin(UNFULFILLED_QUANTITY_FIELD_DESC);
2814
    oprot.writeDouble(this.unfulfilledQuantity);
2815
    oprot.writeFieldEnd();
2816
    oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
2817
    oprot.writeI64(this.createdAt);
2818
    oprot.writeFieldEnd();
2819
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
2820
    oprot.writeDouble(this.unitPrice);
2821
    oprot.writeFieldEnd();
2822
    oprot.writeFieldBegin(FULFILLED_FIELD_DESC);
2823
    oprot.writeBool(this.fulfilled);
2824
    oprot.writeFieldEnd();
4754 mandeep.dh 2825
    oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
2826
    oprot.writeI64(this.codCount);
2827
    oprot.writeFieldEnd();
6821 amar.kumar 2828
    oprot.writeFieldBegin(AVAILABLE_QUANTITY_FIELD_DESC);
2829
    oprot.writeI64(this.availableQuantity);
2830
    oprot.writeFieldEnd();
2831
    oprot.writeFieldBegin(RESERVED_QUANTITY_FIELD_DESC);
2832
    oprot.writeI64(this.reservedQuantity);
2833
    oprot.writeFieldEnd();
2834
    oprot.writeFieldBegin(AVG_SALES_FIELD_DESC);
2835
    oprot.writeDouble(this.avgSales);
2836
    oprot.writeFieldEnd();
2837
    oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
2838
    oprot.writeI64(this.minStockLevel);
2839
    oprot.writeFieldEnd();
2840
    oprot.writeFieldBegin(NUMBER_OF_DAYS_STOCK_FIELD_DESC);
2841
    oprot.writeI64(this.numberOfDaysStock);
2842
    oprot.writeFieldEnd();
2843
    oprot.writeFieldBegin(SUGGESTED_QUANTITY_FIELD_DESC);
2844
    oprot.writeI64(this.suggestedQuantity);
2845
    oprot.writeFieldEnd();
2846
    oprot.writeFieldBegin(NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC);
2847
    oprot.writeI64(this.numberOfDaysInStock);
2848
    oprot.writeFieldEnd();
8182 amar.kumar 2849
    oprot.writeFieldBegin(RTO_ORDERS_FIELD_DESC);
2850
    oprot.writeI64(this.rtoOrders);
2851
    oprot.writeFieldEnd();
6857 amar.kumar 2852
    if (this.lastXdaysSale != null) {
2853
      oprot.writeFieldBegin(LAST_XDAYS_SALE_FIELD_DESC);
2854
      oprot.writeString(this.lastXdaysSale);
2855
      oprot.writeFieldEnd();
2856
    }
6880 amar.kumar 2857
    oprot.writeFieldBegin(PREVIOUSLY_ORDERED_QTY_FIELD_DESC);
2858
    oprot.writeI64(this.previouslyOrderedQty);
2859
    oprot.writeFieldEnd();
7672 rajveer 2860
    oprot.writeFieldBegin(NLC_FIELD_DESC);
2861
    oprot.writeDouble(this.nlc);
2862
    oprot.writeFieldEnd();
9416 amar.kumar 2863
    oprot.writeFieldBegin(MRP_FIELD_DESC);
2864
    oprot.writeDouble(this.mrp);
2865
    oprot.writeFieldEnd();
12357 manish.sha 2866
    oprot.writeFieldBegin(NLC_P_FIELD_DESC);
2867
    oprot.writeDouble(this.nlcP);
2868
    oprot.writeFieldEnd();
2869
    oprot.writeFieldBegin(VAT_DIFF_FIELD_DESC);
2870
    oprot.writeDouble(this.vatDiff);
2871
    oprot.writeFieldEnd();
21844 amit.gupta 2872
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
2873
    oprot.writeDouble(this.igstRate);
2874
    oprot.writeFieldEnd();
2875
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
2876
    oprot.writeDouble(this.cgstRate);
2877
    oprot.writeFieldEnd();
2878
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
2879
    oprot.writeDouble(this.sgstRate);
2880
    oprot.writeFieldEnd();
2881
    if (this.hsnCode != null) {
2882
      oprot.writeFieldBegin(HSN_CODE_FIELD_DESC);
2883
      oprot.writeString(this.hsnCode);
2884
      oprot.writeFieldEnd();
2885
    }
24832 tejbeer 2886
    oprot.writeFieldBegin(INVOICE_PRICE_FIELD_DESC);
2887
    oprot.writeDouble(this.invoicePrice);
2888
    oprot.writeFieldEnd();
2889
    oprot.writeFieldBegin(TP_FIELD_DESC);
2890
    oprot.writeDouble(this.tp);
2891
    oprot.writeFieldEnd();
4496 mandeep.dh 2892
    oprot.writeFieldStop();
2893
    oprot.writeStructEnd();
2894
  }
2895
 
2896
  @Override
2897
  public String toString() {
2898
    StringBuilder sb = new StringBuilder("LineItem(");
2899
    boolean first = true;
2900
 
2901
    sb.append("orderId:");
2902
    sb.append(this.orderId);
2903
    first = false;
2904
    if (!first) sb.append(", ");
2905
    sb.append("itemId:");
2906
    sb.append(this.itemId);
2907
    first = false;
2908
    if (!first) sb.append(", ");
2909
    sb.append("productGroup:");
2910
    if (this.productGroup == null) {
2911
      sb.append("null");
2912
    } else {
2913
      sb.append(this.productGroup);
2914
    }
2915
    first = false;
2916
    if (!first) sb.append(", ");
2917
    sb.append("brand:");
2918
    if (this.brand == null) {
2919
      sb.append("null");
2920
    } else {
2921
      sb.append(this.brand);
2922
    }
2923
    first = false;
2924
    if (!first) sb.append(", ");
2925
    sb.append("modelNumber:");
2926
    if (this.modelNumber == null) {
2927
      sb.append("null");
2928
    } else {
2929
      sb.append(this.modelNumber);
2930
    }
2931
    first = false;
2932
    if (!first) sb.append(", ");
2933
    sb.append("modelName:");
2934
    if (this.modelName == null) {
2935
      sb.append("null");
2936
    } else {
2937
      sb.append(this.modelName);
2938
    }
2939
    first = false;
2940
    if (!first) sb.append(", ");
2941
    sb.append("color:");
2942
    if (this.color == null) {
2943
      sb.append("null");
2944
    } else {
2945
      sb.append(this.color);
2946
    }
2947
    first = false;
2948
    if (!first) sb.append(", ");
2949
    sb.append("itemNumber:");
2950
    if (this.itemNumber == null) {
2951
      sb.append("null");
2952
    } else {
2953
      sb.append(this.itemNumber);
2954
    }
2955
    first = false;
2956
    if (!first) sb.append(", ");
2957
    sb.append("quantity:");
2958
    sb.append(this.quantity);
2959
    first = false;
2960
    if (!first) sb.append(", ");
2961
    sb.append("unfulfilledQuantity:");
2962
    sb.append(this.unfulfilledQuantity);
2963
    first = false;
2964
    if (!first) sb.append(", ");
2965
    sb.append("createdAt:");
2966
    sb.append(this.createdAt);
2967
    first = false;
2968
    if (!first) sb.append(", ");
2969
    sb.append("unitPrice:");
2970
    sb.append(this.unitPrice);
2971
    first = false;
2972
    if (!first) sb.append(", ");
2973
    sb.append("fulfilled:");
2974
    sb.append(this.fulfilled);
2975
    first = false;
4754 mandeep.dh 2976
    if (!first) sb.append(", ");
2977
    sb.append("codCount:");
2978
    sb.append(this.codCount);
2979
    first = false;
6821 amar.kumar 2980
    if (!first) sb.append(", ");
2981
    sb.append("availableQuantity:");
2982
    sb.append(this.availableQuantity);
2983
    first = false;
2984
    if (!first) sb.append(", ");
2985
    sb.append("reservedQuantity:");
2986
    sb.append(this.reservedQuantity);
2987
    first = false;
2988
    if (!first) sb.append(", ");
2989
    sb.append("avgSales:");
2990
    sb.append(this.avgSales);
2991
    first = false;
2992
    if (!first) sb.append(", ");
2993
    sb.append("minStockLevel:");
2994
    sb.append(this.minStockLevel);
2995
    first = false;
2996
    if (!first) sb.append(", ");
2997
    sb.append("numberOfDaysStock:");
2998
    sb.append(this.numberOfDaysStock);
2999
    first = false;
3000
    if (!first) sb.append(", ");
3001
    sb.append("suggestedQuantity:");
3002
    sb.append(this.suggestedQuantity);
3003
    first = false;
3004
    if (!first) sb.append(", ");
3005
    sb.append("numberOfDaysInStock:");
3006
    sb.append(this.numberOfDaysInStock);
3007
    first = false;
6857 amar.kumar 3008
    if (!first) sb.append(", ");
8182 amar.kumar 3009
    sb.append("rtoOrders:");
3010
    sb.append(this.rtoOrders);
3011
    first = false;
3012
    if (!first) sb.append(", ");
6857 amar.kumar 3013
    sb.append("lastXdaysSale:");
3014
    if (this.lastXdaysSale == null) {
3015
      sb.append("null");
3016
    } else {
3017
      sb.append(this.lastXdaysSale);
3018
    }
3019
    first = false;
6880 amar.kumar 3020
    if (!first) sb.append(", ");
3021
    sb.append("previouslyOrderedQty:");
3022
    sb.append(this.previouslyOrderedQty);
3023
    first = false;
7672 rajveer 3024
    if (!first) sb.append(", ");
3025
    sb.append("nlc:");
3026
    sb.append(this.nlc);
3027
    first = false;
9416 amar.kumar 3028
    if (!first) sb.append(", ");
3029
    sb.append("mrp:");
3030
    sb.append(this.mrp);
3031
    first = false;
12357 manish.sha 3032
    if (!first) sb.append(", ");
3033
    sb.append("nlcP:");
3034
    sb.append(this.nlcP);
3035
    first = false;
3036
    if (!first) sb.append(", ");
3037
    sb.append("vatDiff:");
3038
    sb.append(this.vatDiff);
3039
    first = false;
21844 amit.gupta 3040
    if (!first) sb.append(", ");
3041
    sb.append("igstRate:");
3042
    sb.append(this.igstRate);
3043
    first = false;
3044
    if (!first) sb.append(", ");
3045
    sb.append("cgstRate:");
3046
    sb.append(this.cgstRate);
3047
    first = false;
3048
    if (!first) sb.append(", ");
3049
    sb.append("sgstRate:");
3050
    sb.append(this.sgstRate);
3051
    first = false;
3052
    if (!first) sb.append(", ");
3053
    sb.append("hsnCode:");
3054
    if (this.hsnCode == null) {
3055
      sb.append("null");
3056
    } else {
3057
      sb.append(this.hsnCode);
3058
    }
3059
    first = false;
24832 tejbeer 3060
    if (!first) sb.append(", ");
3061
    sb.append("invoicePrice:");
3062
    sb.append(this.invoicePrice);
3063
    first = false;
3064
    if (!first) sb.append(", ");
3065
    sb.append("tp:");
3066
    sb.append(this.tp);
3067
    first = false;
4496 mandeep.dh 3068
    sb.append(")");
3069
    return sb.toString();
3070
  }
3071
 
3072
  public void validate() throws org.apache.thrift.TException {
3073
    // check for required fields
3074
  }
3075
 
3076
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3077
    try {
3078
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3079
    } catch (org.apache.thrift.TException te) {
3080
      throw new java.io.IOException(te);
3081
    }
3082
  }
3083
 
3084
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3085
    try {
3086
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3087
      __isset_bit_vector = new BitSet(1);
3088
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3089
    } catch (org.apache.thrift.TException te) {
3090
      throw new java.io.IOException(te);
3091
    }
3092
  }
3093
 
3094
}
3095