Subversion Repositories SmartDukaan

Rev

Rev 12357 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12357 Rev 21844
Line 49... Line 49...
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);
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);
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);
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);
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);
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);
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);
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);
-
 
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);
54
 
58
 
55
  private long orderId; // required
59
  private long orderId; // required
56
  private long itemId; // required
60
  private long itemId; // required
57
  private String productGroup; // required
61
  private String productGroup; // required
58
  private String brand; // required
62
  private String brand; // required
Line 78... Line 82...
78
  private long previouslyOrderedQty; // required
82
  private long previouslyOrderedQty; // required
79
  private double nlc; // required
83
  private double nlc; // required
80
  private double mrp; // required
84
  private double mrp; // required
81
  private double nlcP; // required
85
  private double nlcP; // required
82
  private double vatDiff; // required
86
  private double vatDiff; // required
-
 
87
  private double igstRate; // required
-
 
88
  private double cgstRate; // required
-
 
89
  private double sgstRate; // required
-
 
90
  private String hsnCode; // required
83
 
91
 
84
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
92
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
85
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
93
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
86
    ORDER_ID((short)1, "orderId"),
94
    ORDER_ID((short)1, "orderId"),
87
    ITEM_ID((short)2, "itemId"),
95
    ITEM_ID((short)2, "itemId"),
Line 108... Line 116...
108
    LAST_XDAYS_SALE((short)23, "lastXdaysSale"),
116
    LAST_XDAYS_SALE((short)23, "lastXdaysSale"),
109
    PREVIOUSLY_ORDERED_QTY((short)24, "previouslyOrderedQty"),
117
    PREVIOUSLY_ORDERED_QTY((short)24, "previouslyOrderedQty"),
110
    NLC((short)25, "nlc"),
118
    NLC((short)25, "nlc"),
111
    MRP((short)26, "mrp"),
119
    MRP((short)26, "mrp"),
112
    NLC_P((short)27, "nlcP"),
120
    NLC_P((short)27, "nlcP"),
113
    VAT_DIFF((short)28, "vatDiff");
121
    VAT_DIFF((short)28, "vatDiff"),
-
 
122
    IGST_RATE((short)29, "igstRate"),
-
 
123
    CGST_RATE((short)30, "cgstRate"),
-
 
124
    SGST_RATE((short)31, "sgstRate"),
-
 
125
    HSN_CODE((short)32, "hsnCode");
114
 
126
 
115
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
127
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
116
 
128
 
117
    static {
129
    static {
118
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
130
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 179... Line 191...
179
          return MRP;
191
          return MRP;
180
        case 27: // NLC_P
192
        case 27: // NLC_P
181
          return NLC_P;
193
          return NLC_P;
182
        case 28: // VAT_DIFF
194
        case 28: // VAT_DIFF
183
          return VAT_DIFF;
195
          return VAT_DIFF;
-
 
196
        case 29: // IGST_RATE
-
 
197
          return IGST_RATE;
-
 
198
        case 30: // CGST_RATE
-
 
199
          return CGST_RATE;
-
 
200
        case 31: // SGST_RATE
-
 
201
          return SGST_RATE;
-
 
202
        case 32: // HSN_CODE
-
 
203
          return HSN_CODE;
184
        default:
204
        default:
185
          return null;
205
          return null;
186
      }
206
      }
187
    }
207
    }
188
 
208
 
Line 240... Line 260...
240
  private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 16;
260
  private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 16;
241
  private static final int __NLC_ISSET_ID = 17;
261
  private static final int __NLC_ISSET_ID = 17;
242
  private static final int __MRP_ISSET_ID = 18;
262
  private static final int __MRP_ISSET_ID = 18;
243
  private static final int __NLCP_ISSET_ID = 19;
263
  private static final int __NLCP_ISSET_ID = 19;
244
  private static final int __VATDIFF_ISSET_ID = 20;
264
  private static final int __VATDIFF_ISSET_ID = 20;
-
 
265
  private static final int __IGSTRATE_ISSET_ID = 21;
-
 
266
  private static final int __CGSTRATE_ISSET_ID = 22;
-
 
267
  private static final int __SGSTRATE_ISSET_ID = 23;
245
  private BitSet __isset_bit_vector = new BitSet(21);
268
  private BitSet __isset_bit_vector = new BitSet(24);
246
 
269
 
247
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
270
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
248
  static {
271
  static {
249
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
272
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
250
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
273
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 301... Line 324...
301
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
324
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
302
    tmpMap.put(_Fields.NLC_P, new org.apache.thrift.meta_data.FieldMetaData("nlcP", org.apache.thrift.TFieldRequirementType.DEFAULT, 
325
    tmpMap.put(_Fields.NLC_P, new org.apache.thrift.meta_data.FieldMetaData("nlcP", org.apache.thrift.TFieldRequirementType.DEFAULT, 
303
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
326
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
304
    tmpMap.put(_Fields.VAT_DIFF, new org.apache.thrift.meta_data.FieldMetaData("vatDiff", org.apache.thrift.TFieldRequirementType.DEFAULT, 
327
    tmpMap.put(_Fields.VAT_DIFF, new org.apache.thrift.meta_data.FieldMetaData("vatDiff", org.apache.thrift.TFieldRequirementType.DEFAULT, 
305
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
328
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
329
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
330
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
331
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
332
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
333
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
334
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
335
    tmpMap.put(_Fields.HSN_CODE, new org.apache.thrift.meta_data.FieldMetaData("hsnCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
336
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
306
    metaDataMap = Collections.unmodifiableMap(tmpMap);
337
    metaDataMap = Collections.unmodifiableMap(tmpMap);
307
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
338
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
308
  }
339
  }
309
 
340
 
310
  public LineItem() {
341
  public LineItem() {
Line 336... Line 367...
336
    String lastXdaysSale,
367
    String lastXdaysSale,
337
    long previouslyOrderedQty,
368
    long previouslyOrderedQty,
338
    double nlc,
369
    double nlc,
339
    double mrp,
370
    double mrp,
340
    double nlcP,
371
    double nlcP,
341
    double vatDiff)
372
    double vatDiff,
-
 
373
    double igstRate,
-
 
374
    double cgstRate,
-
 
375
    double sgstRate,
-
 
376
    String hsnCode)
342
  {
377
  {
343
    this();
378
    this();
344
    this.orderId = orderId;
379
    this.orderId = orderId;
345
    setOrderIdIsSet(true);
380
    setOrderIdIsSet(true);
346
    this.itemId = itemId;
381
    this.itemId = itemId;
Line 388... Line 423...
388
    setMrpIsSet(true);
423
    setMrpIsSet(true);
389
    this.nlcP = nlcP;
424
    this.nlcP = nlcP;
390
    setNlcPIsSet(true);
425
    setNlcPIsSet(true);
391
    this.vatDiff = vatDiff;
426
    this.vatDiff = vatDiff;
392
    setVatDiffIsSet(true);
427
    setVatDiffIsSet(true);
-
 
428
    this.igstRate = igstRate;
-
 
429
    setIgstRateIsSet(true);
-
 
430
    this.cgstRate = cgstRate;
-
 
431
    setCgstRateIsSet(true);
-
 
432
    this.sgstRate = sgstRate;
-
 
433
    setSgstRateIsSet(true);
-
 
434
    this.hsnCode = hsnCode;
393
  }
435
  }
394
 
436
 
395
  /**
437
  /**
396
   * Performs a deep copy on <i>other</i>.
438
   * Performs a deep copy on <i>other</i>.
397
   */
439
   */
Line 438... Line 480...
438
    this.previouslyOrderedQty = other.previouslyOrderedQty;
480
    this.previouslyOrderedQty = other.previouslyOrderedQty;
439
    this.nlc = other.nlc;
481
    this.nlc = other.nlc;
440
    this.mrp = other.mrp;
482
    this.mrp = other.mrp;
441
    this.nlcP = other.nlcP;
483
    this.nlcP = other.nlcP;
442
    this.vatDiff = other.vatDiff;
484
    this.vatDiff = other.vatDiff;
-
 
485
    this.igstRate = other.igstRate;
-
 
486
    this.cgstRate = other.cgstRate;
-
 
487
    this.sgstRate = other.sgstRate;
-
 
488
    if (other.isSetHsnCode()) {
-
 
489
      this.hsnCode = other.hsnCode;
-
 
490
    }
443
  }
491
  }
444
 
492
 
445
  public LineItem deepCopy() {
493
  public LineItem deepCopy() {
446
    return new LineItem(this);
494
    return new LineItem(this);
447
  }
495
  }
Line 495... Line 543...
495
    this.mrp = 0.0;
543
    this.mrp = 0.0;
496
    setNlcPIsSet(false);
544
    setNlcPIsSet(false);
497
    this.nlcP = 0.0;
545
    this.nlcP = 0.0;
498
    setVatDiffIsSet(false);
546
    setVatDiffIsSet(false);
499
    this.vatDiff = 0.0;
547
    this.vatDiff = 0.0;
-
 
548
    setIgstRateIsSet(false);
-
 
549
    this.igstRate = 0.0;
-
 
550
    setCgstRateIsSet(false);
-
 
551
    this.cgstRate = 0.0;
-
 
552
    setSgstRateIsSet(false);
-
 
553
    this.sgstRate = 0.0;
-
 
554
    this.hsnCode = null;
500
  }
555
  }
501
 
556
 
502
  public long getOrderId() {
557
  public long getOrderId() {
503
    return this.orderId;
558
    return this.orderId;
504
  }
559
  }
Line 1120... Line 1175...
1120
 
1175
 
1121
  public void setVatDiffIsSet(boolean value) {
1176
  public void setVatDiffIsSet(boolean value) {
1122
    __isset_bit_vector.set(__VATDIFF_ISSET_ID, value);
1177
    __isset_bit_vector.set(__VATDIFF_ISSET_ID, value);
1123
  }
1178
  }
1124
 
1179
 
-
 
1180
  public double getIgstRate() {
-
 
1181
    return this.igstRate;
-
 
1182
  }
-
 
1183
 
-
 
1184
  public void setIgstRate(double igstRate) {
-
 
1185
    this.igstRate = igstRate;
-
 
1186
    setIgstRateIsSet(true);
-
 
1187
  }
-
 
1188
 
-
 
1189
  public void unsetIgstRate() {
-
 
1190
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
-
 
1191
  }
-
 
1192
 
-
 
1193
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
-
 
1194
  public boolean isSetIgstRate() {
-
 
1195
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
-
 
1196
  }
-
 
1197
 
-
 
1198
  public void setIgstRateIsSet(boolean value) {
-
 
1199
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
-
 
1200
  }
-
 
1201
 
-
 
1202
  public double getCgstRate() {
-
 
1203
    return this.cgstRate;
-
 
1204
  }
-
 
1205
 
-
 
1206
  public void setCgstRate(double cgstRate) {
-
 
1207
    this.cgstRate = cgstRate;
-
 
1208
    setCgstRateIsSet(true);
-
 
1209
  }
-
 
1210
 
-
 
1211
  public void unsetCgstRate() {
-
 
1212
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
-
 
1213
  }
-
 
1214
 
-
 
1215
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
-
 
1216
  public boolean isSetCgstRate() {
-
 
1217
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
-
 
1218
  }
-
 
1219
 
-
 
1220
  public void setCgstRateIsSet(boolean value) {
-
 
1221
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
-
 
1222
  }
-
 
1223
 
-
 
1224
  public double getSgstRate() {
-
 
1225
    return this.sgstRate;
-
 
1226
  }
-
 
1227
 
-
 
1228
  public void setSgstRate(double sgstRate) {
-
 
1229
    this.sgstRate = sgstRate;
-
 
1230
    setSgstRateIsSet(true);
-
 
1231
  }
-
 
1232
 
-
 
1233
  public void unsetSgstRate() {
-
 
1234
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
-
 
1235
  }
-
 
1236
 
-
 
1237
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
-
 
1238
  public boolean isSetSgstRate() {
-
 
1239
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
-
 
1240
  }
-
 
1241
 
-
 
1242
  public void setSgstRateIsSet(boolean value) {
-
 
1243
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
-
 
1244
  }
-
 
1245
 
-
 
1246
  public String getHsnCode() {
-
 
1247
    return this.hsnCode;
-
 
1248
  }
-
 
1249
 
-
 
1250
  public void setHsnCode(String hsnCode) {
-
 
1251
    this.hsnCode = hsnCode;
-
 
1252
  }
-
 
1253
 
-
 
1254
  public void unsetHsnCode() {
-
 
1255
    this.hsnCode = null;
-
 
1256
  }
-
 
1257
 
-
 
1258
  /** Returns true if field hsnCode is set (has been assigned a value) and false otherwise */
-
 
1259
  public boolean isSetHsnCode() {
-
 
1260
    return this.hsnCode != null;
-
 
1261
  }
-
 
1262
 
-
 
1263
  public void setHsnCodeIsSet(boolean value) {
-
 
1264
    if (!value) {
-
 
1265
      this.hsnCode = null;
-
 
1266
    }
-
 
1267
  }
-
 
1268
 
1125
  public void setFieldValue(_Fields field, Object value) {
1269
  public void setFieldValue(_Fields field, Object value) {
1126
    switch (field) {
1270
    switch (field) {
1127
    case ORDER_ID:
1271
    case ORDER_ID:
1128
      if (value == null) {
1272
      if (value == null) {
1129
        unsetOrderId();
1273
        unsetOrderId();
Line 1346... Line 1490...
1346
      } else {
1490
      } else {
1347
        setVatDiff((Double)value);
1491
        setVatDiff((Double)value);
1348
      }
1492
      }
1349
      break;
1493
      break;
1350
 
1494
 
-
 
1495
    case IGST_RATE:
-
 
1496
      if (value == null) {
-
 
1497
        unsetIgstRate();
-
 
1498
      } else {
-
 
1499
        setIgstRate((Double)value);
-
 
1500
      }
-
 
1501
      break;
-
 
1502
 
-
 
1503
    case CGST_RATE:
-
 
1504
      if (value == null) {
-
 
1505
        unsetCgstRate();
-
 
1506
      } else {
-
 
1507
        setCgstRate((Double)value);
-
 
1508
      }
-
 
1509
      break;
-
 
1510
 
-
 
1511
    case SGST_RATE:
-
 
1512
      if (value == null) {
-
 
1513
        unsetSgstRate();
-
 
1514
      } else {
-
 
1515
        setSgstRate((Double)value);
-
 
1516
      }
-
 
1517
      break;
-
 
1518
 
-
 
1519
    case HSN_CODE:
-
 
1520
      if (value == null) {
-
 
1521
        unsetHsnCode();
-
 
1522
      } else {
-
 
1523
        setHsnCode((String)value);
-
 
1524
      }
-
 
1525
      break;
-
 
1526
 
1351
    }
1527
    }
1352
  }
1528
  }
1353
 
1529
 
1354
  public Object getFieldValue(_Fields field) {
1530
  public Object getFieldValue(_Fields field) {
1355
    switch (field) {
1531
    switch (field) {
Line 1435... Line 1611...
1435
      return Double.valueOf(getNlcP());
1611
      return Double.valueOf(getNlcP());
1436
 
1612
 
1437
    case VAT_DIFF:
1613
    case VAT_DIFF:
1438
      return Double.valueOf(getVatDiff());
1614
      return Double.valueOf(getVatDiff());
1439
 
1615
 
-
 
1616
    case IGST_RATE:
-
 
1617
      return Double.valueOf(getIgstRate());
-
 
1618
 
-
 
1619
    case CGST_RATE:
-
 
1620
      return Double.valueOf(getCgstRate());
-
 
1621
 
-
 
1622
    case SGST_RATE:
-
 
1623
      return Double.valueOf(getSgstRate());
-
 
1624
 
-
 
1625
    case HSN_CODE:
-
 
1626
      return getHsnCode();
-
 
1627
 
1440
    }
1628
    }
1441
    throw new IllegalStateException();
1629
    throw new IllegalStateException();
1442
  }
1630
  }
1443
 
1631
 
1444
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1632
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1502... Line 1690...
1502
      return isSetMrp();
1690
      return isSetMrp();
1503
    case NLC_P:
1691
    case NLC_P:
1504
      return isSetNlcP();
1692
      return isSetNlcP();
1505
    case VAT_DIFF:
1693
    case VAT_DIFF:
1506
      return isSetVatDiff();
1694
      return isSetVatDiff();
-
 
1695
    case IGST_RATE:
-
 
1696
      return isSetIgstRate();
-
 
1697
    case CGST_RATE:
-
 
1698
      return isSetCgstRate();
-
 
1699
    case SGST_RATE:
-
 
1700
      return isSetSgstRate();
-
 
1701
    case HSN_CODE:
-
 
1702
      return isSetHsnCode();
1507
    }
1703
    }
1508
    throw new IllegalStateException();
1704
    throw new IllegalStateException();
1509
  }
1705
  }
1510
 
1706
 
1511
  @Override
1707
  @Override
Line 1771... Line 1967...
1771
        return false;
1967
        return false;
1772
      if (this.vatDiff != that.vatDiff)
1968
      if (this.vatDiff != that.vatDiff)
1773
        return false;
1969
        return false;
1774
    }
1970
    }
1775
 
1971
 
-
 
1972
    boolean this_present_igstRate = true;
-
 
1973
    boolean that_present_igstRate = true;
-
 
1974
    if (this_present_igstRate || that_present_igstRate) {
-
 
1975
      if (!(this_present_igstRate && that_present_igstRate))
-
 
1976
        return false;
-
 
1977
      if (this.igstRate != that.igstRate)
-
 
1978
        return false;
-
 
1979
    }
-
 
1980
 
-
 
1981
    boolean this_present_cgstRate = true;
-
 
1982
    boolean that_present_cgstRate = true;
-
 
1983
    if (this_present_cgstRate || that_present_cgstRate) {
-
 
1984
      if (!(this_present_cgstRate && that_present_cgstRate))
-
 
1985
        return false;
-
 
1986
      if (this.cgstRate != that.cgstRate)
-
 
1987
        return false;
-
 
1988
    }
-
 
1989
 
-
 
1990
    boolean this_present_sgstRate = true;
-
 
1991
    boolean that_present_sgstRate = true;
-
 
1992
    if (this_present_sgstRate || that_present_sgstRate) {
-
 
1993
      if (!(this_present_sgstRate && that_present_sgstRate))
-
 
1994
        return false;
-
 
1995
      if (this.sgstRate != that.sgstRate)
-
 
1996
        return false;
-
 
1997
    }
-
 
1998
 
-
 
1999
    boolean this_present_hsnCode = true && this.isSetHsnCode();
-
 
2000
    boolean that_present_hsnCode = true && that.isSetHsnCode();
-
 
2001
    if (this_present_hsnCode || that_present_hsnCode) {
-
 
2002
      if (!(this_present_hsnCode && that_present_hsnCode))
-
 
2003
        return false;
-
 
2004
      if (!this.hsnCode.equals(that.hsnCode))
-
 
2005
        return false;
-
 
2006
    }
-
 
2007
 
1776
    return true;
2008
    return true;
1777
  }
2009
  }
1778
 
2010
 
1779
  @Override
2011
  @Override
1780
  public int hashCode() {
2012
  public int hashCode() {
Line 2067... Line 2299...
2067
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatDiff, typedOther.vatDiff);
2299
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatDiff, typedOther.vatDiff);
2068
      if (lastComparison != 0) {
2300
      if (lastComparison != 0) {
2069
        return lastComparison;
2301
        return lastComparison;
2070
      }
2302
      }
2071
    }
2303
    }
-
 
2304
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
-
 
2305
    if (lastComparison != 0) {
-
 
2306
      return lastComparison;
-
 
2307
    }
-
 
2308
    if (isSetIgstRate()) {
-
 
2309
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
-
 
2310
      if (lastComparison != 0) {
-
 
2311
        return lastComparison;
-
 
2312
      }
-
 
2313
    }
-
 
2314
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
-
 
2315
    if (lastComparison != 0) {
-
 
2316
      return lastComparison;
-
 
2317
    }
-
 
2318
    if (isSetCgstRate()) {
-
 
2319
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
-
 
2320
      if (lastComparison != 0) {
-
 
2321
        return lastComparison;
-
 
2322
      }
-
 
2323
    }
-
 
2324
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
-
 
2325
    if (lastComparison != 0) {
-
 
2326
      return lastComparison;
-
 
2327
    }
-
 
2328
    if (isSetSgstRate()) {
-
 
2329
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
-
 
2330
      if (lastComparison != 0) {
-
 
2331
        return lastComparison;
-
 
2332
      }
-
 
2333
    }
-
 
2334
    lastComparison = Boolean.valueOf(isSetHsnCode()).compareTo(typedOther.isSetHsnCode());
-
 
2335
    if (lastComparison != 0) {
-
 
2336
      return lastComparison;
-
 
2337
    }
-
 
2338
    if (isSetHsnCode()) {
-
 
2339
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsnCode, typedOther.hsnCode);
-
 
2340
      if (lastComparison != 0) {
-
 
2341
        return lastComparison;
-
 
2342
      }
-
 
2343
    }
2072
    return 0;
2344
    return 0;
2073
  }
2345
  }
2074
 
2346
 
2075
  public _Fields fieldForId(int fieldId) {
2347
  public _Fields fieldForId(int fieldId) {
2076
    return _Fields.findByThriftId(fieldId);
2348
    return _Fields.findByThriftId(fieldId);
Line 2301... Line 2573...
2301
            setVatDiffIsSet(true);
2573
            setVatDiffIsSet(true);
2302
          } else { 
2574
          } else { 
2303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2304
          }
2576
          }
2305
          break;
2577
          break;
-
 
2578
        case 29: // IGST_RATE
-
 
2579
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2580
            this.igstRate = iprot.readDouble();
-
 
2581
            setIgstRateIsSet(true);
-
 
2582
          } else { 
-
 
2583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2584
          }
-
 
2585
          break;
-
 
2586
        case 30: // CGST_RATE
-
 
2587
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2588
            this.cgstRate = iprot.readDouble();
-
 
2589
            setCgstRateIsSet(true);
-
 
2590
          } else { 
-
 
2591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2592
          }
-
 
2593
          break;
-
 
2594
        case 31: // SGST_RATE
-
 
2595
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2596
            this.sgstRate = iprot.readDouble();
-
 
2597
            setSgstRateIsSet(true);
-
 
2598
          } else { 
-
 
2599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2600
          }
-
 
2601
          break;
-
 
2602
        case 32: // HSN_CODE
-
 
2603
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
2604
            this.hsnCode = iprot.readString();
-
 
2605
          } else { 
-
 
2606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2607
          }
-
 
2608
          break;
2306
        default:
2609
        default:
2307
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2610
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2308
      }
2611
      }
2309
      iprot.readFieldEnd();
2612
      iprot.readFieldEnd();
2310
    }
2613
    }
Line 2412... Line 2715...
2412
    oprot.writeDouble(this.nlcP);
2715
    oprot.writeDouble(this.nlcP);
2413
    oprot.writeFieldEnd();
2716
    oprot.writeFieldEnd();
2414
    oprot.writeFieldBegin(VAT_DIFF_FIELD_DESC);
2717
    oprot.writeFieldBegin(VAT_DIFF_FIELD_DESC);
2415
    oprot.writeDouble(this.vatDiff);
2718
    oprot.writeDouble(this.vatDiff);
2416
    oprot.writeFieldEnd();
2719
    oprot.writeFieldEnd();
-
 
2720
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
-
 
2721
    oprot.writeDouble(this.igstRate);
-
 
2722
    oprot.writeFieldEnd();
-
 
2723
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
-
 
2724
    oprot.writeDouble(this.cgstRate);
-
 
2725
    oprot.writeFieldEnd();
-
 
2726
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
-
 
2727
    oprot.writeDouble(this.sgstRate);
-
 
2728
    oprot.writeFieldEnd();
-
 
2729
    if (this.hsnCode != null) {
-
 
2730
      oprot.writeFieldBegin(HSN_CODE_FIELD_DESC);
-
 
2731
      oprot.writeString(this.hsnCode);
-
 
2732
      oprot.writeFieldEnd();
-
 
2733
    }
2417
    oprot.writeFieldStop();
2734
    oprot.writeFieldStop();
2418
    oprot.writeStructEnd();
2735
    oprot.writeStructEnd();
2419
  }
2736
  }
2420
 
2737
 
2421
  @Override
2738
  @Override
Line 2560... Line 2877...
2560
    first = false;
2877
    first = false;
2561
    if (!first) sb.append(", ");
2878
    if (!first) sb.append(", ");
2562
    sb.append("vatDiff:");
2879
    sb.append("vatDiff:");
2563
    sb.append(this.vatDiff);
2880
    sb.append(this.vatDiff);
2564
    first = false;
2881
    first = false;
-
 
2882
    if (!first) sb.append(", ");
-
 
2883
    sb.append("igstRate:");
-
 
2884
    sb.append(this.igstRate);
-
 
2885
    first = false;
-
 
2886
    if (!first) sb.append(", ");
-
 
2887
    sb.append("cgstRate:");
-
 
2888
    sb.append(this.cgstRate);
-
 
2889
    first = false;
-
 
2890
    if (!first) sb.append(", ");
-
 
2891
    sb.append("sgstRate:");
-
 
2892
    sb.append(this.sgstRate);
-
 
2893
    first = false;
-
 
2894
    if (!first) sb.append(", ");
-
 
2895
    sb.append("hsnCode:");
-
 
2896
    if (this.hsnCode == null) {
-
 
2897
      sb.append("null");
-
 
2898
    } else {
-
 
2899
      sb.append(this.hsnCode);
-
 
2900
    }
-
 
2901
    first = false;
2565
    sb.append(")");
2902
    sb.append(")");
2566
    return sb.toString();
2903
    return sb.toString();
2567
  }
2904
  }
2568
 
2905
 
2569
  public void validate() throws org.apache.thrift.TException {
2906
  public void validate() throws org.apache.thrift.TException {