Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5372 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.warehouse;
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 DetailedPurchaseScan implements org.apache.thrift.TBase<DetailedPurchaseScan, DetailedPurchaseScan._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DetailedPurchaseScan");
25
 
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
6494 amar.kumar 30
  private static final org.apache.thrift.protocol.TField RECEIVED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  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)6);
32
  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)7);
33
  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)8);
34
  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)9);
35
  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)10);
36
  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)11);
37
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)14);
7672 rajveer 40
  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)15);
8580 amar.kumar 41
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)16);
9433 amar.kumar 42
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I64, (short)17);
11219 manish.sha 43
  private static final org.apache.thrift.protocol.TField INVOICE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceDate", org.apache.thrift.protocol.TType.I64, (short)18);
12620 amit.gupta 44
  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)19);
12800 manish.sha 45
  private static final org.apache.thrift.protocol.TField PURCHASE_COMMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseComments", org.apache.thrift.protocol.TType.STRING, (short)20);
23400 amit.gupta 46
  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)21);
47
  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)22);
48
  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)23);
25269 tejbeer 49
  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)24);
5372 mandeep.dh 50
 
51
  private long purchaseOrderId; // required
52
  private long poCreatedAt; // required
53
  private String supplierName; // required
54
  private String invoiceNumbers; // required
6494 amar.kumar 55
  private String receivedBy; // required
5372 mandeep.dh 56
  private long itemId; // required
5545 mandeep.dh 57
  private String brand; // required
58
  private String modelName; // required
59
  private String modelNumber; // required
60
  private String color; // required
5372 mandeep.dh 61
  private double unitPrice; // required
62
  private long quantity; // required
6361 rajveer 63
  private long purchaseId; // required
64
  private long purchasedAt; // required
7672 rajveer 65
  private double nlc; // required
8580 amar.kumar 66
  private long warehouseId; // required
9433 amar.kumar 67
  private long taxType; // required
11219 manish.sha 68
  private long invoiceDate; // required
12620 amit.gupta 69
  private double mrp; // required
12800 manish.sha 70
  private String purchaseComments; // required
23400 amit.gupta 71
  private double sgstRate; // required
72
  private double cgstRate; // required
73
  private double igstRate; // required
25269 tejbeer 74
  private double invoicePrice; // required
5372 mandeep.dh 75
 
76
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
77
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
78
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
79
    PO_CREATED_AT((short)2, "poCreatedAt"),
80
    SUPPLIER_NAME((short)3, "supplierName"),
81
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
6494 amar.kumar 82
    RECEIVED_BY((short)5, "receivedBy"),
83
    ITEM_ID((short)6, "itemId"),
84
    BRAND((short)7, "brand"),
85
    MODEL_NAME((short)8, "modelName"),
86
    MODEL_NUMBER((short)9, "modelNumber"),
87
    COLOR((short)10, "color"),
88
    UNIT_PRICE((short)11, "unitPrice"),
89
    QUANTITY((short)12, "quantity"),
90
    PURCHASE_ID((short)13, "purchaseId"),
7672 rajveer 91
    PURCHASED_AT((short)14, "purchasedAt"),
8580 amar.kumar 92
    NLC((short)15, "nlc"),
9433 amar.kumar 93
    WAREHOUSE_ID((short)16, "warehouseId"),
11219 manish.sha 94
    TAX_TYPE((short)17, "taxType"),
12620 amit.gupta 95
    INVOICE_DATE((short)18, "invoiceDate"),
12800 manish.sha 96
    MRP((short)19, "mrp"),
23400 amit.gupta 97
    PURCHASE_COMMENTS((short)20, "purchaseComments"),
98
    SGST_RATE((short)21, "sgstRate"),
99
    CGST_RATE((short)22, "cgstRate"),
25269 tejbeer 100
    IGST_RATE((short)23, "igstRate"),
101
    INVOICE_PRICE((short)24, "invoicePrice");
5372 mandeep.dh 102
 
103
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
104
 
105
    static {
106
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
107
        byName.put(field.getFieldName(), field);
108
      }
109
    }
110
 
111
    /**
112
     * Find the _Fields constant that matches fieldId, or null if its not found.
113
     */
114
    public static _Fields findByThriftId(int fieldId) {
115
      switch(fieldId) {
116
        case 1: // PURCHASE_ORDER_ID
117
          return PURCHASE_ORDER_ID;
118
        case 2: // PO_CREATED_AT
119
          return PO_CREATED_AT;
120
        case 3: // SUPPLIER_NAME
121
          return SUPPLIER_NAME;
122
        case 4: // INVOICE_NUMBERS
123
          return INVOICE_NUMBERS;
6494 amar.kumar 124
        case 5: // RECEIVED_BY
125
          return RECEIVED_BY;
126
        case 6: // ITEM_ID
5372 mandeep.dh 127
          return ITEM_ID;
6494 amar.kumar 128
        case 7: // BRAND
5545 mandeep.dh 129
          return BRAND;
6494 amar.kumar 130
        case 8: // MODEL_NAME
5545 mandeep.dh 131
          return MODEL_NAME;
6494 amar.kumar 132
        case 9: // MODEL_NUMBER
5545 mandeep.dh 133
          return MODEL_NUMBER;
6494 amar.kumar 134
        case 10: // COLOR
5545 mandeep.dh 135
          return COLOR;
6494 amar.kumar 136
        case 11: // UNIT_PRICE
5372 mandeep.dh 137
          return UNIT_PRICE;
6494 amar.kumar 138
        case 12: // QUANTITY
5372 mandeep.dh 139
          return QUANTITY;
6494 amar.kumar 140
        case 13: // PURCHASE_ID
6361 rajveer 141
          return PURCHASE_ID;
6494 amar.kumar 142
        case 14: // PURCHASED_AT
6361 rajveer 143
          return PURCHASED_AT;
7672 rajveer 144
        case 15: // NLC
145
          return NLC;
8580 amar.kumar 146
        case 16: // WAREHOUSE_ID
147
          return WAREHOUSE_ID;
9433 amar.kumar 148
        case 17: // TAX_TYPE
149
          return TAX_TYPE;
11219 manish.sha 150
        case 18: // INVOICE_DATE
151
          return INVOICE_DATE;
12620 amit.gupta 152
        case 19: // MRP
153
          return MRP;
12800 manish.sha 154
        case 20: // PURCHASE_COMMENTS
155
          return PURCHASE_COMMENTS;
23400 amit.gupta 156
        case 21: // SGST_RATE
157
          return SGST_RATE;
158
        case 22: // CGST_RATE
159
          return CGST_RATE;
160
        case 23: // IGST_RATE
161
          return IGST_RATE;
25269 tejbeer 162
        case 24: // INVOICE_PRICE
163
          return INVOICE_PRICE;
5372 mandeep.dh 164
        default:
165
          return null;
166
      }
167
    }
168
 
169
    /**
170
     * Find the _Fields constant that matches fieldId, throwing an exception
171
     * if it is not found.
172
     */
173
    public static _Fields findByThriftIdOrThrow(int fieldId) {
174
      _Fields fields = findByThriftId(fieldId);
175
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
176
      return fields;
177
    }
178
 
179
    /**
180
     * Find the _Fields constant that matches name, or null if its not found.
181
     */
182
    public static _Fields findByName(String name) {
183
      return byName.get(name);
184
    }
185
 
186
    private final short _thriftId;
187
    private final String _fieldName;
188
 
189
    _Fields(short thriftId, String fieldName) {
190
      _thriftId = thriftId;
191
      _fieldName = fieldName;
192
    }
193
 
194
    public short getThriftFieldId() {
195
      return _thriftId;
196
    }
197
 
198
    public String getFieldName() {
199
      return _fieldName;
200
    }
201
  }
202
 
203
  // isset id assignments
204
  private static final int __PURCHASEORDERID_ISSET_ID = 0;
205
  private static final int __POCREATEDAT_ISSET_ID = 1;
206
  private static final int __ITEMID_ISSET_ID = 2;
207
  private static final int __UNITPRICE_ISSET_ID = 3;
208
  private static final int __QUANTITY_ISSET_ID = 4;
6361 rajveer 209
  private static final int __PURCHASEID_ISSET_ID = 5;
210
  private static final int __PURCHASEDAT_ISSET_ID = 6;
7672 rajveer 211
  private static final int __NLC_ISSET_ID = 7;
8580 amar.kumar 212
  private static final int __WAREHOUSEID_ISSET_ID = 8;
9433 amar.kumar 213
  private static final int __TAXTYPE_ISSET_ID = 9;
11219 manish.sha 214
  private static final int __INVOICEDATE_ISSET_ID = 10;
12620 amit.gupta 215
  private static final int __MRP_ISSET_ID = 11;
23400 amit.gupta 216
  private static final int __SGSTRATE_ISSET_ID = 12;
217
  private static final int __CGSTRATE_ISSET_ID = 13;
218
  private static final int __IGSTRATE_ISSET_ID = 14;
25269 tejbeer 219
  private static final int __INVOICEPRICE_ISSET_ID = 15;
220
  private BitSet __isset_bit_vector = new BitSet(16);
5372 mandeep.dh 221
 
222
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
223
  static {
224
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
225
    tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
227
    tmpMap.put(_Fields.PO_CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("poCreatedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
229
    tmpMap.put(_Fields.SUPPLIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("supplierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
231
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6494 amar.kumar 233
    tmpMap.put(_Fields.RECEIVED_BY, new org.apache.thrift.meta_data.FieldMetaData("receivedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 235
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5545 mandeep.dh 237
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5372 mandeep.dh 238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5545 mandeep.dh 239
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
240
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
241
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
243
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 245
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
247
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
248
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6361 rajveer 249
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
250
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
251
    tmpMap.put(_Fields.PURCHASED_AT, new org.apache.thrift.meta_data.FieldMetaData("purchasedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
252
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 253
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8580 amar.kumar 255
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
256
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9433 amar.kumar 257
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
258
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11219 manish.sha 259
    tmpMap.put(_Fields.INVOICE_DATE, new org.apache.thrift.meta_data.FieldMetaData("invoiceDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
260
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12620 amit.gupta 261
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
262
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12800 manish.sha 263
    tmpMap.put(_Fields.PURCHASE_COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("purchaseComments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
264
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23400 amit.gupta 265
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
266
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
267
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
268
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
269
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
270
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
25269 tejbeer 271
    tmpMap.put(_Fields.INVOICE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("invoicePrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
272
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
5372 mandeep.dh 273
    metaDataMap = Collections.unmodifiableMap(tmpMap);
274
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DetailedPurchaseScan.class, metaDataMap);
275
  }
276
 
277
  public DetailedPurchaseScan() {
278
  }
279
 
280
  public DetailedPurchaseScan(
281
    long purchaseOrderId,
282
    long poCreatedAt,
283
    String supplierName,
284
    String invoiceNumbers,
6494 amar.kumar 285
    String receivedBy,
5372 mandeep.dh 286
    long itemId,
5545 mandeep.dh 287
    String brand,
288
    String modelName,
289
    String modelNumber,
290
    String color,
5372 mandeep.dh 291
    double unitPrice,
6361 rajveer 292
    long quantity,
293
    long purchaseId,
7672 rajveer 294
    long purchasedAt,
8580 amar.kumar 295
    double nlc,
9433 amar.kumar 296
    long warehouseId,
11219 manish.sha 297
    long taxType,
12620 amit.gupta 298
    long invoiceDate,
12800 manish.sha 299
    double mrp,
23400 amit.gupta 300
    String purchaseComments,
301
    double sgstRate,
302
    double cgstRate,
25269 tejbeer 303
    double igstRate,
304
    double invoicePrice)
5372 mandeep.dh 305
  {
306
    this();
307
    this.purchaseOrderId = purchaseOrderId;
308
    setPurchaseOrderIdIsSet(true);
309
    this.poCreatedAt = poCreatedAt;
310
    setPoCreatedAtIsSet(true);
311
    this.supplierName = supplierName;
312
    this.invoiceNumbers = invoiceNumbers;
6494 amar.kumar 313
    this.receivedBy = receivedBy;
5372 mandeep.dh 314
    this.itemId = itemId;
315
    setItemIdIsSet(true);
5545 mandeep.dh 316
    this.brand = brand;
317
    this.modelName = modelName;
318
    this.modelNumber = modelNumber;
319
    this.color = color;
5372 mandeep.dh 320
    this.unitPrice = unitPrice;
321
    setUnitPriceIsSet(true);
322
    this.quantity = quantity;
323
    setQuantityIsSet(true);
6361 rajveer 324
    this.purchaseId = purchaseId;
325
    setPurchaseIdIsSet(true);
326
    this.purchasedAt = purchasedAt;
327
    setPurchasedAtIsSet(true);
7672 rajveer 328
    this.nlc = nlc;
329
    setNlcIsSet(true);
8580 amar.kumar 330
    this.warehouseId = warehouseId;
331
    setWarehouseIdIsSet(true);
9433 amar.kumar 332
    this.taxType = taxType;
333
    setTaxTypeIsSet(true);
11219 manish.sha 334
    this.invoiceDate = invoiceDate;
335
    setInvoiceDateIsSet(true);
12620 amit.gupta 336
    this.mrp = mrp;
337
    setMrpIsSet(true);
12800 manish.sha 338
    this.purchaseComments = purchaseComments;
23400 amit.gupta 339
    this.sgstRate = sgstRate;
340
    setSgstRateIsSet(true);
341
    this.cgstRate = cgstRate;
342
    setCgstRateIsSet(true);
343
    this.igstRate = igstRate;
344
    setIgstRateIsSet(true);
25269 tejbeer 345
    this.invoicePrice = invoicePrice;
346
    setInvoicePriceIsSet(true);
5372 mandeep.dh 347
  }
348
 
349
  /**
350
   * Performs a deep copy on <i>other</i>.
351
   */
352
  public DetailedPurchaseScan(DetailedPurchaseScan other) {
353
    __isset_bit_vector.clear();
354
    __isset_bit_vector.or(other.__isset_bit_vector);
355
    this.purchaseOrderId = other.purchaseOrderId;
356
    this.poCreatedAt = other.poCreatedAt;
357
    if (other.isSetSupplierName()) {
358
      this.supplierName = other.supplierName;
359
    }
360
    if (other.isSetInvoiceNumbers()) {
361
      this.invoiceNumbers = other.invoiceNumbers;
362
    }
6494 amar.kumar 363
    if (other.isSetReceivedBy()) {
364
      this.receivedBy = other.receivedBy;
365
    }
5372 mandeep.dh 366
    this.itemId = other.itemId;
5545 mandeep.dh 367
    if (other.isSetBrand()) {
368
      this.brand = other.brand;
5372 mandeep.dh 369
    }
5545 mandeep.dh 370
    if (other.isSetModelName()) {
371
      this.modelName = other.modelName;
372
    }
373
    if (other.isSetModelNumber()) {
374
      this.modelNumber = other.modelNumber;
375
    }
376
    if (other.isSetColor()) {
377
      this.color = other.color;
378
    }
5372 mandeep.dh 379
    this.unitPrice = other.unitPrice;
380
    this.quantity = other.quantity;
6361 rajveer 381
    this.purchaseId = other.purchaseId;
382
    this.purchasedAt = other.purchasedAt;
7672 rajveer 383
    this.nlc = other.nlc;
8580 amar.kumar 384
    this.warehouseId = other.warehouseId;
9433 amar.kumar 385
    this.taxType = other.taxType;
11219 manish.sha 386
    this.invoiceDate = other.invoiceDate;
12620 amit.gupta 387
    this.mrp = other.mrp;
12800 manish.sha 388
    if (other.isSetPurchaseComments()) {
389
      this.purchaseComments = other.purchaseComments;
390
    }
23400 amit.gupta 391
    this.sgstRate = other.sgstRate;
392
    this.cgstRate = other.cgstRate;
393
    this.igstRate = other.igstRate;
25269 tejbeer 394
    this.invoicePrice = other.invoicePrice;
5372 mandeep.dh 395
  }
396
 
397
  public DetailedPurchaseScan deepCopy() {
398
    return new DetailedPurchaseScan(this);
399
  }
400
 
401
  @Override
402
  public void clear() {
403
    setPurchaseOrderIdIsSet(false);
404
    this.purchaseOrderId = 0;
405
    setPoCreatedAtIsSet(false);
406
    this.poCreatedAt = 0;
407
    this.supplierName = null;
408
    this.invoiceNumbers = null;
6494 amar.kumar 409
    this.receivedBy = null;
5372 mandeep.dh 410
    setItemIdIsSet(false);
411
    this.itemId = 0;
5545 mandeep.dh 412
    this.brand = null;
413
    this.modelName = null;
414
    this.modelNumber = null;
415
    this.color = null;
5372 mandeep.dh 416
    setUnitPriceIsSet(false);
417
    this.unitPrice = 0.0;
418
    setQuantityIsSet(false);
419
    this.quantity = 0;
6361 rajveer 420
    setPurchaseIdIsSet(false);
421
    this.purchaseId = 0;
422
    setPurchasedAtIsSet(false);
423
    this.purchasedAt = 0;
7672 rajveer 424
    setNlcIsSet(false);
425
    this.nlc = 0.0;
8580 amar.kumar 426
    setWarehouseIdIsSet(false);
427
    this.warehouseId = 0;
9433 amar.kumar 428
    setTaxTypeIsSet(false);
429
    this.taxType = 0;
11219 manish.sha 430
    setInvoiceDateIsSet(false);
431
    this.invoiceDate = 0;
12620 amit.gupta 432
    setMrpIsSet(false);
433
    this.mrp = 0.0;
12800 manish.sha 434
    this.purchaseComments = null;
23400 amit.gupta 435
    setSgstRateIsSet(false);
436
    this.sgstRate = 0.0;
437
    setCgstRateIsSet(false);
438
    this.cgstRate = 0.0;
439
    setIgstRateIsSet(false);
440
    this.igstRate = 0.0;
25269 tejbeer 441
    setInvoicePriceIsSet(false);
442
    this.invoicePrice = 0.0;
5372 mandeep.dh 443
  }
444
 
445
  public long getPurchaseOrderId() {
446
    return this.purchaseOrderId;
447
  }
448
 
449
  public void setPurchaseOrderId(long purchaseOrderId) {
450
    this.purchaseOrderId = purchaseOrderId;
451
    setPurchaseOrderIdIsSet(true);
452
  }
453
 
454
  public void unsetPurchaseOrderId() {
455
    __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
456
  }
457
 
458
  /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
459
  public boolean isSetPurchaseOrderId() {
460
    return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
461
  }
462
 
463
  public void setPurchaseOrderIdIsSet(boolean value) {
464
    __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
465
  }
466
 
467
  public long getPoCreatedAt() {
468
    return this.poCreatedAt;
469
  }
470
 
471
  public void setPoCreatedAt(long poCreatedAt) {
472
    this.poCreatedAt = poCreatedAt;
473
    setPoCreatedAtIsSet(true);
474
  }
475
 
476
  public void unsetPoCreatedAt() {
477
    __isset_bit_vector.clear(__POCREATEDAT_ISSET_ID);
478
  }
479
 
480
  /** Returns true if field poCreatedAt is set (has been assigned a value) and false otherwise */
481
  public boolean isSetPoCreatedAt() {
482
    return __isset_bit_vector.get(__POCREATEDAT_ISSET_ID);
483
  }
484
 
485
  public void setPoCreatedAtIsSet(boolean value) {
486
    __isset_bit_vector.set(__POCREATEDAT_ISSET_ID, value);
487
  }
488
 
489
  public String getSupplierName() {
490
    return this.supplierName;
491
  }
492
 
493
  public void setSupplierName(String supplierName) {
494
    this.supplierName = supplierName;
495
  }
496
 
497
  public void unsetSupplierName() {
498
    this.supplierName = null;
499
  }
500
 
501
  /** Returns true if field supplierName is set (has been assigned a value) and false otherwise */
502
  public boolean isSetSupplierName() {
503
    return this.supplierName != null;
504
  }
505
 
506
  public void setSupplierNameIsSet(boolean value) {
507
    if (!value) {
508
      this.supplierName = null;
509
    }
510
  }
511
 
512
  public String getInvoiceNumbers() {
513
    return this.invoiceNumbers;
514
  }
515
 
516
  public void setInvoiceNumbers(String invoiceNumbers) {
517
    this.invoiceNumbers = invoiceNumbers;
518
  }
519
 
520
  public void unsetInvoiceNumbers() {
521
    this.invoiceNumbers = null;
522
  }
523
 
524
  /** Returns true if field invoiceNumbers is set (has been assigned a value) and false otherwise */
525
  public boolean isSetInvoiceNumbers() {
526
    return this.invoiceNumbers != null;
527
  }
528
 
529
  public void setInvoiceNumbersIsSet(boolean value) {
530
    if (!value) {
531
      this.invoiceNumbers = null;
532
    }
533
  }
534
 
6494 amar.kumar 535
  public String getReceivedBy() {
536
    return this.receivedBy;
537
  }
538
 
539
  public void setReceivedBy(String receivedBy) {
540
    this.receivedBy = receivedBy;
541
  }
542
 
543
  public void unsetReceivedBy() {
544
    this.receivedBy = null;
545
  }
546
 
547
  /** Returns true if field receivedBy is set (has been assigned a value) and false otherwise */
548
  public boolean isSetReceivedBy() {
549
    return this.receivedBy != null;
550
  }
551
 
552
  public void setReceivedByIsSet(boolean value) {
553
    if (!value) {
554
      this.receivedBy = null;
555
    }
556
  }
557
 
5372 mandeep.dh 558
  public long getItemId() {
559
    return this.itemId;
560
  }
561
 
562
  public void setItemId(long itemId) {
563
    this.itemId = itemId;
564
    setItemIdIsSet(true);
565
  }
566
 
567
  public void unsetItemId() {
568
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
569
  }
570
 
571
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
572
  public boolean isSetItemId() {
573
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
574
  }
575
 
576
  public void setItemIdIsSet(boolean value) {
577
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
578
  }
579
 
5545 mandeep.dh 580
  public String getBrand() {
581
    return this.brand;
5372 mandeep.dh 582
  }
583
 
5545 mandeep.dh 584
  public void setBrand(String brand) {
585
    this.brand = brand;
5372 mandeep.dh 586
  }
587
 
5545 mandeep.dh 588
  public void unsetBrand() {
589
    this.brand = null;
5372 mandeep.dh 590
  }
591
 
5545 mandeep.dh 592
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
593
  public boolean isSetBrand() {
594
    return this.brand != null;
5372 mandeep.dh 595
  }
596
 
5545 mandeep.dh 597
  public void setBrandIsSet(boolean value) {
5372 mandeep.dh 598
    if (!value) {
5545 mandeep.dh 599
      this.brand = null;
5372 mandeep.dh 600
    }
601
  }
602
 
5545 mandeep.dh 603
  public String getModelName() {
604
    return this.modelName;
605
  }
606
 
607
  public void setModelName(String modelName) {
608
    this.modelName = modelName;
609
  }
610
 
611
  public void unsetModelName() {
612
    this.modelName = null;
613
  }
614
 
615
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
616
  public boolean isSetModelName() {
617
    return this.modelName != null;
618
  }
619
 
620
  public void setModelNameIsSet(boolean value) {
621
    if (!value) {
622
      this.modelName = null;
623
    }
624
  }
625
 
626
  public String getModelNumber() {
627
    return this.modelNumber;
628
  }
629
 
630
  public void setModelNumber(String modelNumber) {
631
    this.modelNumber = modelNumber;
632
  }
633
 
634
  public void unsetModelNumber() {
635
    this.modelNumber = null;
636
  }
637
 
638
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
639
  public boolean isSetModelNumber() {
640
    return this.modelNumber != null;
641
  }
642
 
643
  public void setModelNumberIsSet(boolean value) {
644
    if (!value) {
645
      this.modelNumber = null;
646
    }
647
  }
648
 
649
  public String getColor() {
650
    return this.color;
651
  }
652
 
653
  public void setColor(String color) {
654
    this.color = color;
655
  }
656
 
657
  public void unsetColor() {
658
    this.color = null;
659
  }
660
 
661
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
662
  public boolean isSetColor() {
663
    return this.color != null;
664
  }
665
 
666
  public void setColorIsSet(boolean value) {
667
    if (!value) {
668
      this.color = null;
669
    }
670
  }
671
 
5372 mandeep.dh 672
  public double getUnitPrice() {
673
    return this.unitPrice;
674
  }
675
 
676
  public void setUnitPrice(double unitPrice) {
677
    this.unitPrice = unitPrice;
678
    setUnitPriceIsSet(true);
679
  }
680
 
681
  public void unsetUnitPrice() {
682
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
683
  }
684
 
685
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
686
  public boolean isSetUnitPrice() {
687
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
688
  }
689
 
690
  public void setUnitPriceIsSet(boolean value) {
691
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
692
  }
693
 
694
  public long getQuantity() {
695
    return this.quantity;
696
  }
697
 
698
  public void setQuantity(long quantity) {
699
    this.quantity = quantity;
700
    setQuantityIsSet(true);
701
  }
702
 
703
  public void unsetQuantity() {
704
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
705
  }
706
 
707
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
708
  public boolean isSetQuantity() {
709
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
710
  }
711
 
712
  public void setQuantityIsSet(boolean value) {
713
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
714
  }
715
 
6361 rajveer 716
  public long getPurchaseId() {
717
    return this.purchaseId;
718
  }
719
 
720
  public void setPurchaseId(long purchaseId) {
721
    this.purchaseId = purchaseId;
722
    setPurchaseIdIsSet(true);
723
  }
724
 
725
  public void unsetPurchaseId() {
726
    __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
727
  }
728
 
729
  /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
730
  public boolean isSetPurchaseId() {
731
    return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
732
  }
733
 
734
  public void setPurchaseIdIsSet(boolean value) {
735
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
736
  }
737
 
738
  public long getPurchasedAt() {
739
    return this.purchasedAt;
740
  }
741
 
742
  public void setPurchasedAt(long purchasedAt) {
743
    this.purchasedAt = purchasedAt;
744
    setPurchasedAtIsSet(true);
745
  }
746
 
747
  public void unsetPurchasedAt() {
748
    __isset_bit_vector.clear(__PURCHASEDAT_ISSET_ID);
749
  }
750
 
751
  /** Returns true if field purchasedAt is set (has been assigned a value) and false otherwise */
752
  public boolean isSetPurchasedAt() {
753
    return __isset_bit_vector.get(__PURCHASEDAT_ISSET_ID);
754
  }
755
 
756
  public void setPurchasedAtIsSet(boolean value) {
757
    __isset_bit_vector.set(__PURCHASEDAT_ISSET_ID, value);
758
  }
759
 
7672 rajveer 760
  public double getNlc() {
761
    return this.nlc;
762
  }
763
 
764
  public void setNlc(double nlc) {
765
    this.nlc = nlc;
766
    setNlcIsSet(true);
767
  }
768
 
769
  public void unsetNlc() {
770
    __isset_bit_vector.clear(__NLC_ISSET_ID);
771
  }
772
 
773
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
774
  public boolean isSetNlc() {
775
    return __isset_bit_vector.get(__NLC_ISSET_ID);
776
  }
777
 
778
  public void setNlcIsSet(boolean value) {
779
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
780
  }
781
 
8580 amar.kumar 782
  public long getWarehouseId() {
783
    return this.warehouseId;
784
  }
785
 
786
  public void setWarehouseId(long warehouseId) {
787
    this.warehouseId = warehouseId;
788
    setWarehouseIdIsSet(true);
789
  }
790
 
791
  public void unsetWarehouseId() {
792
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
793
  }
794
 
795
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
796
  public boolean isSetWarehouseId() {
797
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
798
  }
799
 
800
  public void setWarehouseIdIsSet(boolean value) {
801
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
802
  }
803
 
9433 amar.kumar 804
  public long getTaxType() {
805
    return this.taxType;
806
  }
807
 
808
  public void setTaxType(long taxType) {
809
    this.taxType = taxType;
810
    setTaxTypeIsSet(true);
811
  }
812
 
813
  public void unsetTaxType() {
814
    __isset_bit_vector.clear(__TAXTYPE_ISSET_ID);
815
  }
816
 
817
  /** Returns true if field taxType is set (has been assigned a value) and false otherwise */
818
  public boolean isSetTaxType() {
819
    return __isset_bit_vector.get(__TAXTYPE_ISSET_ID);
820
  }
821
 
822
  public void setTaxTypeIsSet(boolean value) {
823
    __isset_bit_vector.set(__TAXTYPE_ISSET_ID, value);
824
  }
825
 
11219 manish.sha 826
  public long getInvoiceDate() {
827
    return this.invoiceDate;
828
  }
829
 
830
  public void setInvoiceDate(long invoiceDate) {
831
    this.invoiceDate = invoiceDate;
832
    setInvoiceDateIsSet(true);
833
  }
834
 
835
  public void unsetInvoiceDate() {
836
    __isset_bit_vector.clear(__INVOICEDATE_ISSET_ID);
837
  }
838
 
839
  /** Returns true if field invoiceDate is set (has been assigned a value) and false otherwise */
840
  public boolean isSetInvoiceDate() {
841
    return __isset_bit_vector.get(__INVOICEDATE_ISSET_ID);
842
  }
843
 
844
  public void setInvoiceDateIsSet(boolean value) {
845
    __isset_bit_vector.set(__INVOICEDATE_ISSET_ID, value);
846
  }
847
 
12620 amit.gupta 848
  public double getMrp() {
849
    return this.mrp;
850
  }
851
 
852
  public void setMrp(double mrp) {
853
    this.mrp = mrp;
854
    setMrpIsSet(true);
855
  }
856
 
857
  public void unsetMrp() {
858
    __isset_bit_vector.clear(__MRP_ISSET_ID);
859
  }
860
 
861
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
862
  public boolean isSetMrp() {
863
    return __isset_bit_vector.get(__MRP_ISSET_ID);
864
  }
865
 
866
  public void setMrpIsSet(boolean value) {
867
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
868
  }
869
 
12800 manish.sha 870
  public String getPurchaseComments() {
871
    return this.purchaseComments;
872
  }
873
 
874
  public void setPurchaseComments(String purchaseComments) {
875
    this.purchaseComments = purchaseComments;
876
  }
877
 
878
  public void unsetPurchaseComments() {
879
    this.purchaseComments = null;
880
  }
881
 
882
  /** Returns true if field purchaseComments is set (has been assigned a value) and false otherwise */
883
  public boolean isSetPurchaseComments() {
884
    return this.purchaseComments != null;
885
  }
886
 
887
  public void setPurchaseCommentsIsSet(boolean value) {
888
    if (!value) {
889
      this.purchaseComments = null;
890
    }
891
  }
892
 
23400 amit.gupta 893
  public double getSgstRate() {
894
    return this.sgstRate;
895
  }
896
 
897
  public void setSgstRate(double sgstRate) {
898
    this.sgstRate = sgstRate;
899
    setSgstRateIsSet(true);
900
  }
901
 
902
  public void unsetSgstRate() {
903
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
904
  }
905
 
906
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
907
  public boolean isSetSgstRate() {
908
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
909
  }
910
 
911
  public void setSgstRateIsSet(boolean value) {
912
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
913
  }
914
 
915
  public double getCgstRate() {
916
    return this.cgstRate;
917
  }
918
 
919
  public void setCgstRate(double cgstRate) {
920
    this.cgstRate = cgstRate;
921
    setCgstRateIsSet(true);
922
  }
923
 
924
  public void unsetCgstRate() {
925
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
926
  }
927
 
928
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
929
  public boolean isSetCgstRate() {
930
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
931
  }
932
 
933
  public void setCgstRateIsSet(boolean value) {
934
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
935
  }
936
 
937
  public double getIgstRate() {
938
    return this.igstRate;
939
  }
940
 
941
  public void setIgstRate(double igstRate) {
942
    this.igstRate = igstRate;
943
    setIgstRateIsSet(true);
944
  }
945
 
946
  public void unsetIgstRate() {
947
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
948
  }
949
 
950
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
951
  public boolean isSetIgstRate() {
952
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
953
  }
954
 
955
  public void setIgstRateIsSet(boolean value) {
956
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
957
  }
958
 
25269 tejbeer 959
  public double getInvoicePrice() {
960
    return this.invoicePrice;
961
  }
962
 
963
  public void setInvoicePrice(double invoicePrice) {
964
    this.invoicePrice = invoicePrice;
965
    setInvoicePriceIsSet(true);
966
  }
967
 
968
  public void unsetInvoicePrice() {
969
    __isset_bit_vector.clear(__INVOICEPRICE_ISSET_ID);
970
  }
971
 
972
  /** Returns true if field invoicePrice is set (has been assigned a value) and false otherwise */
973
  public boolean isSetInvoicePrice() {
974
    return __isset_bit_vector.get(__INVOICEPRICE_ISSET_ID);
975
  }
976
 
977
  public void setInvoicePriceIsSet(boolean value) {
978
    __isset_bit_vector.set(__INVOICEPRICE_ISSET_ID, value);
979
  }
980
 
5372 mandeep.dh 981
  public void setFieldValue(_Fields field, Object value) {
982
    switch (field) {
983
    case PURCHASE_ORDER_ID:
984
      if (value == null) {
985
        unsetPurchaseOrderId();
986
      } else {
987
        setPurchaseOrderId((Long)value);
988
      }
989
      break;
990
 
991
    case PO_CREATED_AT:
992
      if (value == null) {
993
        unsetPoCreatedAt();
994
      } else {
995
        setPoCreatedAt((Long)value);
996
      }
997
      break;
998
 
999
    case SUPPLIER_NAME:
1000
      if (value == null) {
1001
        unsetSupplierName();
1002
      } else {
1003
        setSupplierName((String)value);
1004
      }
1005
      break;
1006
 
1007
    case INVOICE_NUMBERS:
1008
      if (value == null) {
1009
        unsetInvoiceNumbers();
1010
      } else {
1011
        setInvoiceNumbers((String)value);
1012
      }
1013
      break;
1014
 
6494 amar.kumar 1015
    case RECEIVED_BY:
1016
      if (value == null) {
1017
        unsetReceivedBy();
1018
      } else {
1019
        setReceivedBy((String)value);
1020
      }
1021
      break;
1022
 
5372 mandeep.dh 1023
    case ITEM_ID:
1024
      if (value == null) {
1025
        unsetItemId();
1026
      } else {
1027
        setItemId((Long)value);
1028
      }
1029
      break;
1030
 
5545 mandeep.dh 1031
    case BRAND:
5372 mandeep.dh 1032
      if (value == null) {
5545 mandeep.dh 1033
        unsetBrand();
5372 mandeep.dh 1034
      } else {
5545 mandeep.dh 1035
        setBrand((String)value);
5372 mandeep.dh 1036
      }
1037
      break;
1038
 
5545 mandeep.dh 1039
    case MODEL_NAME:
1040
      if (value == null) {
1041
        unsetModelName();
1042
      } else {
1043
        setModelName((String)value);
1044
      }
1045
      break;
1046
 
1047
    case MODEL_NUMBER:
1048
      if (value == null) {
1049
        unsetModelNumber();
1050
      } else {
1051
        setModelNumber((String)value);
1052
      }
1053
      break;
1054
 
1055
    case COLOR:
1056
      if (value == null) {
1057
        unsetColor();
1058
      } else {
1059
        setColor((String)value);
1060
      }
1061
      break;
1062
 
5372 mandeep.dh 1063
    case UNIT_PRICE:
1064
      if (value == null) {
1065
        unsetUnitPrice();
1066
      } else {
1067
        setUnitPrice((Double)value);
1068
      }
1069
      break;
1070
 
1071
    case QUANTITY:
1072
      if (value == null) {
1073
        unsetQuantity();
1074
      } else {
1075
        setQuantity((Long)value);
1076
      }
1077
      break;
1078
 
6361 rajveer 1079
    case PURCHASE_ID:
1080
      if (value == null) {
1081
        unsetPurchaseId();
1082
      } else {
1083
        setPurchaseId((Long)value);
1084
      }
1085
      break;
1086
 
1087
    case PURCHASED_AT:
1088
      if (value == null) {
1089
        unsetPurchasedAt();
1090
      } else {
1091
        setPurchasedAt((Long)value);
1092
      }
1093
      break;
1094
 
7672 rajveer 1095
    case NLC:
1096
      if (value == null) {
1097
        unsetNlc();
1098
      } else {
1099
        setNlc((Double)value);
1100
      }
1101
      break;
1102
 
8580 amar.kumar 1103
    case WAREHOUSE_ID:
1104
      if (value == null) {
1105
        unsetWarehouseId();
1106
      } else {
1107
        setWarehouseId((Long)value);
1108
      }
1109
      break;
1110
 
9433 amar.kumar 1111
    case TAX_TYPE:
1112
      if (value == null) {
1113
        unsetTaxType();
1114
      } else {
1115
        setTaxType((Long)value);
1116
      }
1117
      break;
1118
 
11219 manish.sha 1119
    case INVOICE_DATE:
1120
      if (value == null) {
1121
        unsetInvoiceDate();
1122
      } else {
1123
        setInvoiceDate((Long)value);
1124
      }
1125
      break;
1126
 
12620 amit.gupta 1127
    case MRP:
1128
      if (value == null) {
1129
        unsetMrp();
1130
      } else {
1131
        setMrp((Double)value);
1132
      }
1133
      break;
1134
 
12800 manish.sha 1135
    case PURCHASE_COMMENTS:
1136
      if (value == null) {
1137
        unsetPurchaseComments();
1138
      } else {
1139
        setPurchaseComments((String)value);
1140
      }
1141
      break;
1142
 
23400 amit.gupta 1143
    case SGST_RATE:
1144
      if (value == null) {
1145
        unsetSgstRate();
1146
      } else {
1147
        setSgstRate((Double)value);
1148
      }
1149
      break;
1150
 
1151
    case CGST_RATE:
1152
      if (value == null) {
1153
        unsetCgstRate();
1154
      } else {
1155
        setCgstRate((Double)value);
1156
      }
1157
      break;
1158
 
1159
    case IGST_RATE:
1160
      if (value == null) {
1161
        unsetIgstRate();
1162
      } else {
1163
        setIgstRate((Double)value);
1164
      }
1165
      break;
1166
 
25269 tejbeer 1167
    case INVOICE_PRICE:
1168
      if (value == null) {
1169
        unsetInvoicePrice();
1170
      } else {
1171
        setInvoicePrice((Double)value);
1172
      }
1173
      break;
1174
 
5372 mandeep.dh 1175
    }
1176
  }
1177
 
1178
  public Object getFieldValue(_Fields field) {
1179
    switch (field) {
1180
    case PURCHASE_ORDER_ID:
1181
      return Long.valueOf(getPurchaseOrderId());
1182
 
1183
    case PO_CREATED_AT:
1184
      return Long.valueOf(getPoCreatedAt());
1185
 
1186
    case SUPPLIER_NAME:
1187
      return getSupplierName();
1188
 
1189
    case INVOICE_NUMBERS:
1190
      return getInvoiceNumbers();
1191
 
6494 amar.kumar 1192
    case RECEIVED_BY:
1193
      return getReceivedBy();
1194
 
5372 mandeep.dh 1195
    case ITEM_ID:
1196
      return Long.valueOf(getItemId());
1197
 
5545 mandeep.dh 1198
    case BRAND:
1199
      return getBrand();
5372 mandeep.dh 1200
 
5545 mandeep.dh 1201
    case MODEL_NAME:
1202
      return getModelName();
1203
 
1204
    case MODEL_NUMBER:
1205
      return getModelNumber();
1206
 
1207
    case COLOR:
1208
      return getColor();
1209
 
5372 mandeep.dh 1210
    case UNIT_PRICE:
1211
      return Double.valueOf(getUnitPrice());
1212
 
1213
    case QUANTITY:
1214
      return Long.valueOf(getQuantity());
1215
 
6361 rajveer 1216
    case PURCHASE_ID:
1217
      return Long.valueOf(getPurchaseId());
1218
 
1219
    case PURCHASED_AT:
1220
      return Long.valueOf(getPurchasedAt());
1221
 
7672 rajveer 1222
    case NLC:
1223
      return Double.valueOf(getNlc());
1224
 
8580 amar.kumar 1225
    case WAREHOUSE_ID:
1226
      return Long.valueOf(getWarehouseId());
1227
 
9433 amar.kumar 1228
    case TAX_TYPE:
1229
      return Long.valueOf(getTaxType());
1230
 
11219 manish.sha 1231
    case INVOICE_DATE:
1232
      return Long.valueOf(getInvoiceDate());
1233
 
12620 amit.gupta 1234
    case MRP:
1235
      return Double.valueOf(getMrp());
1236
 
12800 manish.sha 1237
    case PURCHASE_COMMENTS:
1238
      return getPurchaseComments();
1239
 
23400 amit.gupta 1240
    case SGST_RATE:
1241
      return Double.valueOf(getSgstRate());
1242
 
1243
    case CGST_RATE:
1244
      return Double.valueOf(getCgstRate());
1245
 
1246
    case IGST_RATE:
1247
      return Double.valueOf(getIgstRate());
1248
 
25269 tejbeer 1249
    case INVOICE_PRICE:
1250
      return Double.valueOf(getInvoicePrice());
1251
 
5372 mandeep.dh 1252
    }
1253
    throw new IllegalStateException();
1254
  }
1255
 
1256
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1257
  public boolean isSet(_Fields field) {
1258
    if (field == null) {
1259
      throw new IllegalArgumentException();
1260
    }
1261
 
1262
    switch (field) {
1263
    case PURCHASE_ORDER_ID:
1264
      return isSetPurchaseOrderId();
1265
    case PO_CREATED_AT:
1266
      return isSetPoCreatedAt();
1267
    case SUPPLIER_NAME:
1268
      return isSetSupplierName();
1269
    case INVOICE_NUMBERS:
1270
      return isSetInvoiceNumbers();
6494 amar.kumar 1271
    case RECEIVED_BY:
1272
      return isSetReceivedBy();
5372 mandeep.dh 1273
    case ITEM_ID:
1274
      return isSetItemId();
5545 mandeep.dh 1275
    case BRAND:
1276
      return isSetBrand();
1277
    case MODEL_NAME:
1278
      return isSetModelName();
1279
    case MODEL_NUMBER:
1280
      return isSetModelNumber();
1281
    case COLOR:
1282
      return isSetColor();
5372 mandeep.dh 1283
    case UNIT_PRICE:
1284
      return isSetUnitPrice();
1285
    case QUANTITY:
1286
      return isSetQuantity();
6361 rajveer 1287
    case PURCHASE_ID:
1288
      return isSetPurchaseId();
1289
    case PURCHASED_AT:
1290
      return isSetPurchasedAt();
7672 rajveer 1291
    case NLC:
1292
      return isSetNlc();
8580 amar.kumar 1293
    case WAREHOUSE_ID:
1294
      return isSetWarehouseId();
9433 amar.kumar 1295
    case TAX_TYPE:
1296
      return isSetTaxType();
11219 manish.sha 1297
    case INVOICE_DATE:
1298
      return isSetInvoiceDate();
12620 amit.gupta 1299
    case MRP:
1300
      return isSetMrp();
12800 manish.sha 1301
    case PURCHASE_COMMENTS:
1302
      return isSetPurchaseComments();
23400 amit.gupta 1303
    case SGST_RATE:
1304
      return isSetSgstRate();
1305
    case CGST_RATE:
1306
      return isSetCgstRate();
1307
    case IGST_RATE:
1308
      return isSetIgstRate();
25269 tejbeer 1309
    case INVOICE_PRICE:
1310
      return isSetInvoicePrice();
5372 mandeep.dh 1311
    }
1312
    throw new IllegalStateException();
1313
  }
1314
 
1315
  @Override
1316
  public boolean equals(Object that) {
1317
    if (that == null)
1318
      return false;
1319
    if (that instanceof DetailedPurchaseScan)
1320
      return this.equals((DetailedPurchaseScan)that);
1321
    return false;
1322
  }
1323
 
1324
  public boolean equals(DetailedPurchaseScan that) {
1325
    if (that == null)
1326
      return false;
1327
 
1328
    boolean this_present_purchaseOrderId = true;
1329
    boolean that_present_purchaseOrderId = true;
1330
    if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
1331
      if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
1332
        return false;
1333
      if (this.purchaseOrderId != that.purchaseOrderId)
1334
        return false;
1335
    }
1336
 
1337
    boolean this_present_poCreatedAt = true;
1338
    boolean that_present_poCreatedAt = true;
1339
    if (this_present_poCreatedAt || that_present_poCreatedAt) {
1340
      if (!(this_present_poCreatedAt && that_present_poCreatedAt))
1341
        return false;
1342
      if (this.poCreatedAt != that.poCreatedAt)
1343
        return false;
1344
    }
1345
 
1346
    boolean this_present_supplierName = true && this.isSetSupplierName();
1347
    boolean that_present_supplierName = true && that.isSetSupplierName();
1348
    if (this_present_supplierName || that_present_supplierName) {
1349
      if (!(this_present_supplierName && that_present_supplierName))
1350
        return false;
1351
      if (!this.supplierName.equals(that.supplierName))
1352
        return false;
1353
    }
1354
 
1355
    boolean this_present_invoiceNumbers = true && this.isSetInvoiceNumbers();
1356
    boolean that_present_invoiceNumbers = true && that.isSetInvoiceNumbers();
1357
    if (this_present_invoiceNumbers || that_present_invoiceNumbers) {
1358
      if (!(this_present_invoiceNumbers && that_present_invoiceNumbers))
1359
        return false;
1360
      if (!this.invoiceNumbers.equals(that.invoiceNumbers))
1361
        return false;
1362
    }
1363
 
6494 amar.kumar 1364
    boolean this_present_receivedBy = true && this.isSetReceivedBy();
1365
    boolean that_present_receivedBy = true && that.isSetReceivedBy();
1366
    if (this_present_receivedBy || that_present_receivedBy) {
1367
      if (!(this_present_receivedBy && that_present_receivedBy))
1368
        return false;
1369
      if (!this.receivedBy.equals(that.receivedBy))
1370
        return false;
1371
    }
1372
 
5372 mandeep.dh 1373
    boolean this_present_itemId = true;
1374
    boolean that_present_itemId = true;
1375
    if (this_present_itemId || that_present_itemId) {
1376
      if (!(this_present_itemId && that_present_itemId))
1377
        return false;
1378
      if (this.itemId != that.itemId)
1379
        return false;
1380
    }
1381
 
5545 mandeep.dh 1382
    boolean this_present_brand = true && this.isSetBrand();
1383
    boolean that_present_brand = true && that.isSetBrand();
1384
    if (this_present_brand || that_present_brand) {
1385
      if (!(this_present_brand && that_present_brand))
5372 mandeep.dh 1386
        return false;
5545 mandeep.dh 1387
      if (!this.brand.equals(that.brand))
5372 mandeep.dh 1388
        return false;
1389
    }
1390
 
5545 mandeep.dh 1391
    boolean this_present_modelName = true && this.isSetModelName();
1392
    boolean that_present_modelName = true && that.isSetModelName();
1393
    if (this_present_modelName || that_present_modelName) {
1394
      if (!(this_present_modelName && that_present_modelName))
1395
        return false;
1396
      if (!this.modelName.equals(that.modelName))
1397
        return false;
1398
    }
1399
 
1400
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1401
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1402
    if (this_present_modelNumber || that_present_modelNumber) {
1403
      if (!(this_present_modelNumber && that_present_modelNumber))
1404
        return false;
1405
      if (!this.modelNumber.equals(that.modelNumber))
1406
        return false;
1407
    }
1408
 
1409
    boolean this_present_color = true && this.isSetColor();
1410
    boolean that_present_color = true && that.isSetColor();
1411
    if (this_present_color || that_present_color) {
1412
      if (!(this_present_color && that_present_color))
1413
        return false;
1414
      if (!this.color.equals(that.color))
1415
        return false;
1416
    }
1417
 
5372 mandeep.dh 1418
    boolean this_present_unitPrice = true;
1419
    boolean that_present_unitPrice = true;
1420
    if (this_present_unitPrice || that_present_unitPrice) {
1421
      if (!(this_present_unitPrice && that_present_unitPrice))
1422
        return false;
1423
      if (this.unitPrice != that.unitPrice)
1424
        return false;
1425
    }
1426
 
1427
    boolean this_present_quantity = true;
1428
    boolean that_present_quantity = true;
1429
    if (this_present_quantity || that_present_quantity) {
1430
      if (!(this_present_quantity && that_present_quantity))
1431
        return false;
1432
      if (this.quantity != that.quantity)
1433
        return false;
1434
    }
1435
 
6361 rajveer 1436
    boolean this_present_purchaseId = true;
1437
    boolean that_present_purchaseId = true;
1438
    if (this_present_purchaseId || that_present_purchaseId) {
1439
      if (!(this_present_purchaseId && that_present_purchaseId))
1440
        return false;
1441
      if (this.purchaseId != that.purchaseId)
1442
        return false;
1443
    }
1444
 
1445
    boolean this_present_purchasedAt = true;
1446
    boolean that_present_purchasedAt = true;
1447
    if (this_present_purchasedAt || that_present_purchasedAt) {
1448
      if (!(this_present_purchasedAt && that_present_purchasedAt))
1449
        return false;
1450
      if (this.purchasedAt != that.purchasedAt)
1451
        return false;
1452
    }
1453
 
7672 rajveer 1454
    boolean this_present_nlc = true;
1455
    boolean that_present_nlc = true;
1456
    if (this_present_nlc || that_present_nlc) {
1457
      if (!(this_present_nlc && that_present_nlc))
1458
        return false;
1459
      if (this.nlc != that.nlc)
1460
        return false;
1461
    }
1462
 
8580 amar.kumar 1463
    boolean this_present_warehouseId = true;
1464
    boolean that_present_warehouseId = true;
1465
    if (this_present_warehouseId || that_present_warehouseId) {
1466
      if (!(this_present_warehouseId && that_present_warehouseId))
1467
        return false;
1468
      if (this.warehouseId != that.warehouseId)
1469
        return false;
1470
    }
1471
 
9433 amar.kumar 1472
    boolean this_present_taxType = true;
1473
    boolean that_present_taxType = true;
1474
    if (this_present_taxType || that_present_taxType) {
1475
      if (!(this_present_taxType && that_present_taxType))
1476
        return false;
1477
      if (this.taxType != that.taxType)
1478
        return false;
1479
    }
1480
 
11219 manish.sha 1481
    boolean this_present_invoiceDate = true;
1482
    boolean that_present_invoiceDate = true;
1483
    if (this_present_invoiceDate || that_present_invoiceDate) {
1484
      if (!(this_present_invoiceDate && that_present_invoiceDate))
1485
        return false;
1486
      if (this.invoiceDate != that.invoiceDate)
1487
        return false;
1488
    }
1489
 
12620 amit.gupta 1490
    boolean this_present_mrp = true;
1491
    boolean that_present_mrp = true;
1492
    if (this_present_mrp || that_present_mrp) {
1493
      if (!(this_present_mrp && that_present_mrp))
1494
        return false;
1495
      if (this.mrp != that.mrp)
1496
        return false;
1497
    }
1498
 
12800 manish.sha 1499
    boolean this_present_purchaseComments = true && this.isSetPurchaseComments();
1500
    boolean that_present_purchaseComments = true && that.isSetPurchaseComments();
1501
    if (this_present_purchaseComments || that_present_purchaseComments) {
1502
      if (!(this_present_purchaseComments && that_present_purchaseComments))
1503
        return false;
1504
      if (!this.purchaseComments.equals(that.purchaseComments))
1505
        return false;
1506
    }
1507
 
23400 amit.gupta 1508
    boolean this_present_sgstRate = true;
1509
    boolean that_present_sgstRate = true;
1510
    if (this_present_sgstRate || that_present_sgstRate) {
1511
      if (!(this_present_sgstRate && that_present_sgstRate))
1512
        return false;
1513
      if (this.sgstRate != that.sgstRate)
1514
        return false;
1515
    }
1516
 
1517
    boolean this_present_cgstRate = true;
1518
    boolean that_present_cgstRate = true;
1519
    if (this_present_cgstRate || that_present_cgstRate) {
1520
      if (!(this_present_cgstRate && that_present_cgstRate))
1521
        return false;
1522
      if (this.cgstRate != that.cgstRate)
1523
        return false;
1524
    }
1525
 
1526
    boolean this_present_igstRate = true;
1527
    boolean that_present_igstRate = true;
1528
    if (this_present_igstRate || that_present_igstRate) {
1529
      if (!(this_present_igstRate && that_present_igstRate))
1530
        return false;
1531
      if (this.igstRate != that.igstRate)
1532
        return false;
1533
    }
1534
 
25269 tejbeer 1535
    boolean this_present_invoicePrice = true;
1536
    boolean that_present_invoicePrice = true;
1537
    if (this_present_invoicePrice || that_present_invoicePrice) {
1538
      if (!(this_present_invoicePrice && that_present_invoicePrice))
1539
        return false;
1540
      if (this.invoicePrice != that.invoicePrice)
1541
        return false;
1542
    }
1543
 
5372 mandeep.dh 1544
    return true;
1545
  }
1546
 
1547
  @Override
1548
  public int hashCode() {
1549
    return 0;
1550
  }
1551
 
1552
  public int compareTo(DetailedPurchaseScan other) {
1553
    if (!getClass().equals(other.getClass())) {
1554
      return getClass().getName().compareTo(other.getClass().getName());
1555
    }
1556
 
1557
    int lastComparison = 0;
1558
    DetailedPurchaseScan typedOther = (DetailedPurchaseScan)other;
1559
 
1560
    lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
1561
    if (lastComparison != 0) {
1562
      return lastComparison;
1563
    }
1564
    if (isSetPurchaseOrderId()) {
1565
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
1566
      if (lastComparison != 0) {
1567
        return lastComparison;
1568
      }
1569
    }
1570
    lastComparison = Boolean.valueOf(isSetPoCreatedAt()).compareTo(typedOther.isSetPoCreatedAt());
1571
    if (lastComparison != 0) {
1572
      return lastComparison;
1573
    }
1574
    if (isSetPoCreatedAt()) {
1575
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poCreatedAt, typedOther.poCreatedAt);
1576
      if (lastComparison != 0) {
1577
        return lastComparison;
1578
      }
1579
    }
1580
    lastComparison = Boolean.valueOf(isSetSupplierName()).compareTo(typedOther.isSetSupplierName());
1581
    if (lastComparison != 0) {
1582
      return lastComparison;
1583
    }
1584
    if (isSetSupplierName()) {
1585
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierName, typedOther.supplierName);
1586
      if (lastComparison != 0) {
1587
        return lastComparison;
1588
      }
1589
    }
1590
    lastComparison = Boolean.valueOf(isSetInvoiceNumbers()).compareTo(typedOther.isSetInvoiceNumbers());
1591
    if (lastComparison != 0) {
1592
      return lastComparison;
1593
    }
1594
    if (isSetInvoiceNumbers()) {
1595
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumbers, typedOther.invoiceNumbers);
1596
      if (lastComparison != 0) {
1597
        return lastComparison;
1598
      }
1599
    }
6494 amar.kumar 1600
    lastComparison = Boolean.valueOf(isSetReceivedBy()).compareTo(typedOther.isSetReceivedBy());
1601
    if (lastComparison != 0) {
1602
      return lastComparison;
1603
    }
1604
    if (isSetReceivedBy()) {
1605
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedBy, typedOther.receivedBy);
1606
      if (lastComparison != 0) {
1607
        return lastComparison;
1608
      }
1609
    }
5372 mandeep.dh 1610
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1611
    if (lastComparison != 0) {
1612
      return lastComparison;
1613
    }
1614
    if (isSetItemId()) {
1615
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1616
      if (lastComparison != 0) {
1617
        return lastComparison;
1618
      }
1619
    }
5545 mandeep.dh 1620
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
5372 mandeep.dh 1621
    if (lastComparison != 0) {
1622
      return lastComparison;
1623
    }
5545 mandeep.dh 1624
    if (isSetBrand()) {
1625
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
5372 mandeep.dh 1626
      if (lastComparison != 0) {
1627
        return lastComparison;
1628
      }
1629
    }
5545 mandeep.dh 1630
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
1631
    if (lastComparison != 0) {
1632
      return lastComparison;
1633
    }
1634
    if (isSetModelName()) {
1635
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
1636
      if (lastComparison != 0) {
1637
        return lastComparison;
1638
      }
1639
    }
1640
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
1641
    if (lastComparison != 0) {
1642
      return lastComparison;
1643
    }
1644
    if (isSetModelNumber()) {
1645
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
1646
      if (lastComparison != 0) {
1647
        return lastComparison;
1648
      }
1649
    }
1650
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1651
    if (lastComparison != 0) {
1652
      return lastComparison;
1653
    }
1654
    if (isSetColor()) {
1655
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1656
      if (lastComparison != 0) {
1657
        return lastComparison;
1658
      }
1659
    }
5372 mandeep.dh 1660
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
1661
    if (lastComparison != 0) {
1662
      return lastComparison;
1663
    }
1664
    if (isSetUnitPrice()) {
1665
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
1666
      if (lastComparison != 0) {
1667
        return lastComparison;
1668
      }
1669
    }
1670
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
1671
    if (lastComparison != 0) {
1672
      return lastComparison;
1673
    }
1674
    if (isSetQuantity()) {
1675
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1676
      if (lastComparison != 0) {
1677
        return lastComparison;
1678
      }
1679
    }
6361 rajveer 1680
    lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
1681
    if (lastComparison != 0) {
1682
      return lastComparison;
1683
    }
1684
    if (isSetPurchaseId()) {
1685
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
1686
      if (lastComparison != 0) {
1687
        return lastComparison;
1688
      }
1689
    }
1690
    lastComparison = Boolean.valueOf(isSetPurchasedAt()).compareTo(typedOther.isSetPurchasedAt());
1691
    if (lastComparison != 0) {
1692
      return lastComparison;
1693
    }
1694
    if (isSetPurchasedAt()) {
1695
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchasedAt, typedOther.purchasedAt);
1696
      if (lastComparison != 0) {
1697
        return lastComparison;
1698
      }
1699
    }
7672 rajveer 1700
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
1701
    if (lastComparison != 0) {
1702
      return lastComparison;
1703
    }
1704
    if (isSetNlc()) {
1705
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1706
      if (lastComparison != 0) {
1707
        return lastComparison;
1708
      }
1709
    }
8580 amar.kumar 1710
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1711
    if (lastComparison != 0) {
1712
      return lastComparison;
1713
    }
1714
    if (isSetWarehouseId()) {
1715
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1716
      if (lastComparison != 0) {
1717
        return lastComparison;
1718
      }
1719
    }
9433 amar.kumar 1720
    lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
1721
    if (lastComparison != 0) {
1722
      return lastComparison;
1723
    }
1724
    if (isSetTaxType()) {
1725
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
1726
      if (lastComparison != 0) {
1727
        return lastComparison;
1728
      }
1729
    }
11219 manish.sha 1730
    lastComparison = Boolean.valueOf(isSetInvoiceDate()).compareTo(typedOther.isSetInvoiceDate());
1731
    if (lastComparison != 0) {
1732
      return lastComparison;
1733
    }
1734
    if (isSetInvoiceDate()) {
1735
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceDate, typedOther.invoiceDate);
1736
      if (lastComparison != 0) {
1737
        return lastComparison;
1738
      }
1739
    }
12620 amit.gupta 1740
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1741
    if (lastComparison != 0) {
1742
      return lastComparison;
1743
    }
1744
    if (isSetMrp()) {
1745
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1746
      if (lastComparison != 0) {
1747
        return lastComparison;
1748
      }
1749
    }
12800 manish.sha 1750
    lastComparison = Boolean.valueOf(isSetPurchaseComments()).compareTo(typedOther.isSetPurchaseComments());
1751
    if (lastComparison != 0) {
1752
      return lastComparison;
1753
    }
1754
    if (isSetPurchaseComments()) {
1755
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseComments, typedOther.purchaseComments);
1756
      if (lastComparison != 0) {
1757
        return lastComparison;
1758
      }
1759
    }
23400 amit.gupta 1760
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
1761
    if (lastComparison != 0) {
1762
      return lastComparison;
1763
    }
1764
    if (isSetSgstRate()) {
1765
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
1766
      if (lastComparison != 0) {
1767
        return lastComparison;
1768
      }
1769
    }
1770
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
1771
    if (lastComparison != 0) {
1772
      return lastComparison;
1773
    }
1774
    if (isSetCgstRate()) {
1775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
1776
      if (lastComparison != 0) {
1777
        return lastComparison;
1778
      }
1779
    }
1780
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
1781
    if (lastComparison != 0) {
1782
      return lastComparison;
1783
    }
1784
    if (isSetIgstRate()) {
1785
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
1786
      if (lastComparison != 0) {
1787
        return lastComparison;
1788
      }
1789
    }
25269 tejbeer 1790
    lastComparison = Boolean.valueOf(isSetInvoicePrice()).compareTo(typedOther.isSetInvoicePrice());
1791
    if (lastComparison != 0) {
1792
      return lastComparison;
1793
    }
1794
    if (isSetInvoicePrice()) {
1795
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoicePrice, typedOther.invoicePrice);
1796
      if (lastComparison != 0) {
1797
        return lastComparison;
1798
      }
1799
    }
5372 mandeep.dh 1800
    return 0;
1801
  }
1802
 
1803
  public _Fields fieldForId(int fieldId) {
1804
    return _Fields.findByThriftId(fieldId);
1805
  }
1806
 
1807
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1808
    org.apache.thrift.protocol.TField field;
1809
    iprot.readStructBegin();
1810
    while (true)
1811
    {
1812
      field = iprot.readFieldBegin();
1813
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1814
        break;
1815
      }
1816
      switch (field.id) {
1817
        case 1: // PURCHASE_ORDER_ID
1818
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1819
            this.purchaseOrderId = iprot.readI64();
1820
            setPurchaseOrderIdIsSet(true);
1821
          } else { 
1822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1823
          }
1824
          break;
1825
        case 2: // PO_CREATED_AT
1826
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1827
            this.poCreatedAt = iprot.readI64();
1828
            setPoCreatedAtIsSet(true);
1829
          } else { 
1830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1831
          }
1832
          break;
1833
        case 3: // SUPPLIER_NAME
1834
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1835
            this.supplierName = iprot.readString();
1836
          } else { 
1837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1838
          }
1839
          break;
1840
        case 4: // INVOICE_NUMBERS
1841
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1842
            this.invoiceNumbers = iprot.readString();
1843
          } else { 
1844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1845
          }
1846
          break;
6494 amar.kumar 1847
        case 5: // RECEIVED_BY
1848
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1849
            this.receivedBy = iprot.readString();
1850
          } else { 
1851
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1852
          }
1853
          break;
1854
        case 6: // ITEM_ID
5372 mandeep.dh 1855
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1856
            this.itemId = iprot.readI64();
1857
            setItemIdIsSet(true);
1858
          } else { 
1859
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1860
          }
1861
          break;
6494 amar.kumar 1862
        case 7: // BRAND
5372 mandeep.dh 1863
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
5545 mandeep.dh 1864
            this.brand = iprot.readString();
5372 mandeep.dh 1865
          } else { 
1866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1867
          }
1868
          break;
6494 amar.kumar 1869
        case 8: // MODEL_NAME
5545 mandeep.dh 1870
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1871
            this.modelName = iprot.readString();
1872
          } else { 
1873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1874
          }
1875
          break;
6494 amar.kumar 1876
        case 9: // MODEL_NUMBER
5545 mandeep.dh 1877
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1878
            this.modelNumber = iprot.readString();
1879
          } else { 
1880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1881
          }
1882
          break;
6494 amar.kumar 1883
        case 10: // COLOR
5545 mandeep.dh 1884
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1885
            this.color = iprot.readString();
1886
          } else { 
1887
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1888
          }
1889
          break;
6494 amar.kumar 1890
        case 11: // UNIT_PRICE
5372 mandeep.dh 1891
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1892
            this.unitPrice = iprot.readDouble();
1893
            setUnitPriceIsSet(true);
1894
          } else { 
1895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1896
          }
1897
          break;
6494 amar.kumar 1898
        case 12: // QUANTITY
5372 mandeep.dh 1899
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1900
            this.quantity = iprot.readI64();
1901
            setQuantityIsSet(true);
1902
          } else { 
1903
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1904
          }
1905
          break;
6494 amar.kumar 1906
        case 13: // PURCHASE_ID
6361 rajveer 1907
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1908
            this.purchaseId = iprot.readI64();
1909
            setPurchaseIdIsSet(true);
1910
          } else { 
1911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1912
          }
1913
          break;
6494 amar.kumar 1914
        case 14: // PURCHASED_AT
6361 rajveer 1915
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1916
            this.purchasedAt = iprot.readI64();
1917
            setPurchasedAtIsSet(true);
1918
          } else { 
1919
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1920
          }
1921
          break;
7672 rajveer 1922
        case 15: // NLC
1923
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1924
            this.nlc = iprot.readDouble();
1925
            setNlcIsSet(true);
1926
          } else { 
1927
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1928
          }
1929
          break;
8580 amar.kumar 1930
        case 16: // WAREHOUSE_ID
1931
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1932
            this.warehouseId = iprot.readI64();
1933
            setWarehouseIdIsSet(true);
1934
          } else { 
1935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1936
          }
1937
          break;
9433 amar.kumar 1938
        case 17: // TAX_TYPE
1939
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1940
            this.taxType = iprot.readI64();
1941
            setTaxTypeIsSet(true);
1942
          } else { 
1943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1944
          }
1945
          break;
11219 manish.sha 1946
        case 18: // INVOICE_DATE
1947
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1948
            this.invoiceDate = iprot.readI64();
1949
            setInvoiceDateIsSet(true);
1950
          } else { 
1951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1952
          }
1953
          break;
12620 amit.gupta 1954
        case 19: // MRP
1955
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1956
            this.mrp = iprot.readDouble();
1957
            setMrpIsSet(true);
1958
          } else { 
1959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1960
          }
1961
          break;
12800 manish.sha 1962
        case 20: // PURCHASE_COMMENTS
1963
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1964
            this.purchaseComments = iprot.readString();
1965
          } else { 
1966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1967
          }
1968
          break;
23400 amit.gupta 1969
        case 21: // SGST_RATE
1970
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1971
            this.sgstRate = iprot.readDouble();
1972
            setSgstRateIsSet(true);
1973
          } else { 
1974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1975
          }
1976
          break;
1977
        case 22: // CGST_RATE
1978
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1979
            this.cgstRate = iprot.readDouble();
1980
            setCgstRateIsSet(true);
1981
          } else { 
1982
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1983
          }
1984
          break;
1985
        case 23: // IGST_RATE
1986
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1987
            this.igstRate = iprot.readDouble();
1988
            setIgstRateIsSet(true);
1989
          } else { 
1990
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1991
          }
1992
          break;
25269 tejbeer 1993
        case 24: // INVOICE_PRICE
1994
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1995
            this.invoicePrice = iprot.readDouble();
1996
            setInvoicePriceIsSet(true);
1997
          } else { 
1998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1999
          }
2000
          break;
5372 mandeep.dh 2001
        default:
2002
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2003
      }
2004
      iprot.readFieldEnd();
2005
    }
2006
    iprot.readStructEnd();
2007
    validate();
2008
  }
2009
 
2010
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2011
    validate();
2012
 
2013
    oprot.writeStructBegin(STRUCT_DESC);
2014
    oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
2015
    oprot.writeI64(this.purchaseOrderId);
2016
    oprot.writeFieldEnd();
2017
    oprot.writeFieldBegin(PO_CREATED_AT_FIELD_DESC);
2018
    oprot.writeI64(this.poCreatedAt);
2019
    oprot.writeFieldEnd();
2020
    if (this.supplierName != null) {
2021
      oprot.writeFieldBegin(SUPPLIER_NAME_FIELD_DESC);
2022
      oprot.writeString(this.supplierName);
2023
      oprot.writeFieldEnd();
2024
    }
2025
    if (this.invoiceNumbers != null) {
2026
      oprot.writeFieldBegin(INVOICE_NUMBERS_FIELD_DESC);
2027
      oprot.writeString(this.invoiceNumbers);
2028
      oprot.writeFieldEnd();
2029
    }
6494 amar.kumar 2030
    if (this.receivedBy != null) {
2031
      oprot.writeFieldBegin(RECEIVED_BY_FIELD_DESC);
2032
      oprot.writeString(this.receivedBy);
2033
      oprot.writeFieldEnd();
2034
    }
5372 mandeep.dh 2035
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2036
    oprot.writeI64(this.itemId);
2037
    oprot.writeFieldEnd();
5545 mandeep.dh 2038
    if (this.brand != null) {
2039
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2040
      oprot.writeString(this.brand);
5372 mandeep.dh 2041
      oprot.writeFieldEnd();
2042
    }
5545 mandeep.dh 2043
    if (this.modelName != null) {
2044
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2045
      oprot.writeString(this.modelName);
2046
      oprot.writeFieldEnd();
2047
    }
2048
    if (this.modelNumber != null) {
2049
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2050
      oprot.writeString(this.modelNumber);
2051
      oprot.writeFieldEnd();
2052
    }
2053
    if (this.color != null) {
2054
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2055
      oprot.writeString(this.color);
2056
      oprot.writeFieldEnd();
2057
    }
5372 mandeep.dh 2058
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
2059
    oprot.writeDouble(this.unitPrice);
2060
    oprot.writeFieldEnd();
2061
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2062
    oprot.writeI64(this.quantity);
2063
    oprot.writeFieldEnd();
6361 rajveer 2064
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
2065
    oprot.writeI64(this.purchaseId);
2066
    oprot.writeFieldEnd();
2067
    oprot.writeFieldBegin(PURCHASED_AT_FIELD_DESC);
2068
    oprot.writeI64(this.purchasedAt);
2069
    oprot.writeFieldEnd();
7672 rajveer 2070
    oprot.writeFieldBegin(NLC_FIELD_DESC);
2071
    oprot.writeDouble(this.nlc);
2072
    oprot.writeFieldEnd();
8580 amar.kumar 2073
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2074
    oprot.writeI64(this.warehouseId);
2075
    oprot.writeFieldEnd();
9433 amar.kumar 2076
    oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
2077
    oprot.writeI64(this.taxType);
2078
    oprot.writeFieldEnd();
11219 manish.sha 2079
    oprot.writeFieldBegin(INVOICE_DATE_FIELD_DESC);
2080
    oprot.writeI64(this.invoiceDate);
2081
    oprot.writeFieldEnd();
12620 amit.gupta 2082
    oprot.writeFieldBegin(MRP_FIELD_DESC);
2083
    oprot.writeDouble(this.mrp);
2084
    oprot.writeFieldEnd();
12800 manish.sha 2085
    if (this.purchaseComments != null) {
2086
      oprot.writeFieldBegin(PURCHASE_COMMENTS_FIELD_DESC);
2087
      oprot.writeString(this.purchaseComments);
2088
      oprot.writeFieldEnd();
2089
    }
23400 amit.gupta 2090
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
2091
    oprot.writeDouble(this.sgstRate);
2092
    oprot.writeFieldEnd();
2093
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
2094
    oprot.writeDouble(this.cgstRate);
2095
    oprot.writeFieldEnd();
2096
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
2097
    oprot.writeDouble(this.igstRate);
2098
    oprot.writeFieldEnd();
25269 tejbeer 2099
    oprot.writeFieldBegin(INVOICE_PRICE_FIELD_DESC);
2100
    oprot.writeDouble(this.invoicePrice);
2101
    oprot.writeFieldEnd();
5372 mandeep.dh 2102
    oprot.writeFieldStop();
2103
    oprot.writeStructEnd();
2104
  }
2105
 
2106
  @Override
2107
  public String toString() {
2108
    StringBuilder sb = new StringBuilder("DetailedPurchaseScan(");
2109
    boolean first = true;
2110
 
2111
    sb.append("purchaseOrderId:");
2112
    sb.append(this.purchaseOrderId);
2113
    first = false;
2114
    if (!first) sb.append(", ");
2115
    sb.append("poCreatedAt:");
2116
    sb.append(this.poCreatedAt);
2117
    first = false;
2118
    if (!first) sb.append(", ");
2119
    sb.append("supplierName:");
2120
    if (this.supplierName == null) {
2121
      sb.append("null");
2122
    } else {
2123
      sb.append(this.supplierName);
2124
    }
2125
    first = false;
2126
    if (!first) sb.append(", ");
2127
    sb.append("invoiceNumbers:");
2128
    if (this.invoiceNumbers == null) {
2129
      sb.append("null");
2130
    } else {
2131
      sb.append(this.invoiceNumbers);
2132
    }
2133
    first = false;
2134
    if (!first) sb.append(", ");
6494 amar.kumar 2135
    sb.append("receivedBy:");
2136
    if (this.receivedBy == null) {
2137
      sb.append("null");
2138
    } else {
2139
      sb.append(this.receivedBy);
2140
    }
2141
    first = false;
2142
    if (!first) sb.append(", ");
5372 mandeep.dh 2143
    sb.append("itemId:");
2144
    sb.append(this.itemId);
2145
    first = false;
2146
    if (!first) sb.append(", ");
5545 mandeep.dh 2147
    sb.append("brand:");
2148
    if (this.brand == null) {
5372 mandeep.dh 2149
      sb.append("null");
2150
    } else {
5545 mandeep.dh 2151
      sb.append(this.brand);
5372 mandeep.dh 2152
    }
2153
    first = false;
2154
    if (!first) sb.append(", ");
5545 mandeep.dh 2155
    sb.append("modelName:");
2156
    if (this.modelName == null) {
2157
      sb.append("null");
2158
    } else {
2159
      sb.append(this.modelName);
2160
    }
2161
    first = false;
2162
    if (!first) sb.append(", ");
2163
    sb.append("modelNumber:");
2164
    if (this.modelNumber == null) {
2165
      sb.append("null");
2166
    } else {
2167
      sb.append(this.modelNumber);
2168
    }
2169
    first = false;
2170
    if (!first) sb.append(", ");
2171
    sb.append("color:");
2172
    if (this.color == null) {
2173
      sb.append("null");
2174
    } else {
2175
      sb.append(this.color);
2176
    }
2177
    first = false;
2178
    if (!first) sb.append(", ");
5372 mandeep.dh 2179
    sb.append("unitPrice:");
2180
    sb.append(this.unitPrice);
2181
    first = false;
2182
    if (!first) sb.append(", ");
2183
    sb.append("quantity:");
2184
    sb.append(this.quantity);
2185
    first = false;
6361 rajveer 2186
    if (!first) sb.append(", ");
2187
    sb.append("purchaseId:");
2188
    sb.append(this.purchaseId);
2189
    first = false;
2190
    if (!first) sb.append(", ");
2191
    sb.append("purchasedAt:");
2192
    sb.append(this.purchasedAt);
2193
    first = false;
7672 rajveer 2194
    if (!first) sb.append(", ");
2195
    sb.append("nlc:");
2196
    sb.append(this.nlc);
2197
    first = false;
8580 amar.kumar 2198
    if (!first) sb.append(", ");
2199
    sb.append("warehouseId:");
2200
    sb.append(this.warehouseId);
2201
    first = false;
9433 amar.kumar 2202
    if (!first) sb.append(", ");
2203
    sb.append("taxType:");
2204
    sb.append(this.taxType);
2205
    first = false;
11219 manish.sha 2206
    if (!first) sb.append(", ");
2207
    sb.append("invoiceDate:");
2208
    sb.append(this.invoiceDate);
2209
    first = false;
12620 amit.gupta 2210
    if (!first) sb.append(", ");
2211
    sb.append("mrp:");
2212
    sb.append(this.mrp);
2213
    first = false;
12800 manish.sha 2214
    if (!first) sb.append(", ");
2215
    sb.append("purchaseComments:");
2216
    if (this.purchaseComments == null) {
2217
      sb.append("null");
2218
    } else {
2219
      sb.append(this.purchaseComments);
2220
    }
2221
    first = false;
23400 amit.gupta 2222
    if (!first) sb.append(", ");
2223
    sb.append("sgstRate:");
2224
    sb.append(this.sgstRate);
2225
    first = false;
2226
    if (!first) sb.append(", ");
2227
    sb.append("cgstRate:");
2228
    sb.append(this.cgstRate);
2229
    first = false;
2230
    if (!first) sb.append(", ");
2231
    sb.append("igstRate:");
2232
    sb.append(this.igstRate);
2233
    first = false;
25269 tejbeer 2234
    if (!first) sb.append(", ");
2235
    sb.append("invoicePrice:");
2236
    sb.append(this.invoicePrice);
2237
    first = false;
5372 mandeep.dh 2238
    sb.append(")");
2239
    return sb.toString();
2240
  }
2241
 
2242
  public void validate() throws org.apache.thrift.TException {
2243
    // check for required fields
2244
  }
2245
 
2246
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2247
    try {
2248
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2249
    } catch (org.apache.thrift.TException te) {
2250
      throw new java.io.IOException(te);
2251
    }
2252
  }
2253
 
2254
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2255
    try {
2256
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2257
      __isset_bit_vector = new BitSet(1);
2258
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2259
    } catch (org.apache.thrift.TException te) {
2260
      throw new java.io.IOException(te);
2261
    }
2262
  }
2263
 
2264
}
2265