Subversion Repositories SmartDukaan

Rev

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

Rev 7672 Rev 7715
Line 206... Line 206...
206
     - lostItems
206
     - lostItems
207
     - vendorId
207
     - vendorId
208
    """
208
    """
209
    pass
209
    pass
210
 
210
 
211
  def getCurrentSerializedInventoryByScans(self, ):
211
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
212
    """
212
    """
213
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
213
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
214
 
-
 
215
    Parameters:
-
 
216
     - physicalWarehouseId
214
    """
217
    """
215
    pass
218
    pass
216
 
219
 
217
  def getCurrentNonSerializedInventoryByScans(self, ):
220
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
218
    """
221
    """
219
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
222
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
223
 
-
 
224
    Parameters:
-
 
225
     - physicalWarehouseId
220
    """
226
    """
221
    pass
227
    pass
222
 
228
 
223
  def getHistoricSerializedInventoryByScans(self, date):
229
  def getHistoricSerializedInventoryByScans(self, date):
224
    """
230
    """
Line 1089... Line 1095...
1089
    self._iprot.readMessageEnd()
1095
    self._iprot.readMessageEnd()
1090
    if result.ex is not None:
1096
    if result.ex is not None:
1091
      raise result.ex
1097
      raise result.ex
1092
    return
1098
    return
1093
 
1099
 
1094
  def getCurrentSerializedInventoryByScans(self, ):
1100
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
1095
    """
1101
    """
1096
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
1102
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
1103
 
-
 
1104
    Parameters:
-
 
1105
     - physicalWarehouseId
1097
    """
1106
    """
1098
    self.send_getCurrentSerializedInventoryByScans()
1107
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
1099
    return self.recv_getCurrentSerializedInventoryByScans()
1108
    return self.recv_getCurrentSerializedInventoryByScans()
1100
 
1109
 
1101
  def send_getCurrentSerializedInventoryByScans(self, ):
1110
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
1102
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1111
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1103
    args = getCurrentSerializedInventoryByScans_args()
1112
    args = getCurrentSerializedInventoryByScans_args()
-
 
1113
    args.physicalWarehouseId = physicalWarehouseId
1104
    args.write(self._oprot)
1114
    args.write(self._oprot)
1105
    self._oprot.writeMessageEnd()
1115
    self._oprot.writeMessageEnd()
1106
    self._oprot.trans.flush()
1116
    self._oprot.trans.flush()
1107
 
1117
 
1108
  def recv_getCurrentSerializedInventoryByScans(self, ):
1118
  def recv_getCurrentSerializedInventoryByScans(self, ):
Line 1117... Line 1127...
1117
    self._iprot.readMessageEnd()
1127
    self._iprot.readMessageEnd()
1118
    if result.success is not None:
1128
    if result.success is not None:
1119
      return result.success
1129
      return result.success
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1121
 
1131
 
1122
  def getCurrentNonSerializedInventoryByScans(self, ):
1132
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
1123
    """
1133
    """
1124
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
1134
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
1135
 
-
 
1136
    Parameters:
-
 
1137
     - physicalWarehouseId
1125
    """
1138
    """
1126
    self.send_getCurrentNonSerializedInventoryByScans()
1139
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
1127
    return self.recv_getCurrentNonSerializedInventoryByScans()
1140
    return self.recv_getCurrentNonSerializedInventoryByScans()
1128
 
1141
 
1129
  def send_getCurrentNonSerializedInventoryByScans(self, ):
1142
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
1130
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1143
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1131
    args = getCurrentNonSerializedInventoryByScans_args()
1144
    args = getCurrentNonSerializedInventoryByScans_args()
-
 
1145
    args.physicalWarehouseId = physicalWarehouseId
1132
    args.write(self._oprot)
1146
    args.write(self._oprot)
1133
    self._oprot.writeMessageEnd()
1147
    self._oprot.writeMessageEnd()
1134
    self._oprot.trans.flush()
1148
    self._oprot.trans.flush()
1135
 
1149
 
1136
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1150
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
Line 2252... Line 2266...
2252
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
2266
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
2253
    args = getCurrentSerializedInventoryByScans_args()
2267
    args = getCurrentSerializedInventoryByScans_args()
2254
    args.read(iprot)
2268
    args.read(iprot)
2255
    iprot.readMessageEnd()
2269
    iprot.readMessageEnd()
2256
    result = getCurrentSerializedInventoryByScans_result()
2270
    result = getCurrentSerializedInventoryByScans_result()
2257
    result.success = self._handler.getCurrentSerializedInventoryByScans()
2271
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
2258
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
2272
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
2259
    result.write(oprot)
2273
    result.write(oprot)
2260
    oprot.writeMessageEnd()
2274
    oprot.writeMessageEnd()
2261
    oprot.trans.flush()
2275
    oprot.trans.flush()
2262
 
2276
 
2263
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
2277
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
2264
    args = getCurrentNonSerializedInventoryByScans_args()
2278
    args = getCurrentNonSerializedInventoryByScans_args()
2265
    args.read(iprot)
2279
    args.read(iprot)
2266
    iprot.readMessageEnd()
2280
    iprot.readMessageEnd()
2267
    result = getCurrentNonSerializedInventoryByScans_result()
2281
    result = getCurrentNonSerializedInventoryByScans_result()
2268
    result.success = self._handler.getCurrentNonSerializedInventoryByScans()
2282
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
2269
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
2283
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
2270
    result.write(oprot)
2284
    result.write(oprot)
2271
    oprot.writeMessageEnd()
2285
    oprot.writeMessageEnd()
2272
    oprot.trans.flush()
2286
    oprot.trans.flush()
2273
 
2287
 
Line 5283... Line 5297...
5283
 
5297
 
5284
  def __ne__(self, other):
5298
  def __ne__(self, other):
5285
    return not (self == other)
5299
    return not (self == other)
5286
 
5300
 
5287
class getCurrentSerializedInventoryByScans_args:
5301
class getCurrentSerializedInventoryByScans_args:
-
 
5302
  """
-
 
5303
  Attributes:
-
 
5304
   - physicalWarehouseId
-
 
5305
  """
5288
 
5306
 
5289
  thrift_spec = (
5307
  thrift_spec = (
-
 
5308
    None, # 0
-
 
5309
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
5290
  )
5310
  )
5291
 
5311
 
-
 
5312
  def __init__(self, physicalWarehouseId=None,):
-
 
5313
    self.physicalWarehouseId = physicalWarehouseId
-
 
5314
 
5292
  def read(self, iprot):
5315
  def read(self, iprot):
5293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5295
      return
5318
      return
5296
    iprot.readStructBegin()
5319
    iprot.readStructBegin()
5297
    while True:
5320
    while True:
5298
      (fname, ftype, fid) = iprot.readFieldBegin()
5321
      (fname, ftype, fid) = iprot.readFieldBegin()
5299
      if ftype == TType.STOP:
5322
      if ftype == TType.STOP:
5300
        break
5323
        break
-
 
5324
      if fid == 1:
-
 
5325
        if ftype == TType.I64:
-
 
5326
          self.physicalWarehouseId = iprot.readI64();
-
 
5327
        else:
-
 
5328
          iprot.skip(ftype)
5301
      else:
5329
      else:
5302
        iprot.skip(ftype)
5330
        iprot.skip(ftype)
5303
      iprot.readFieldEnd()
5331
      iprot.readFieldEnd()
5304
    iprot.readStructEnd()
5332
    iprot.readStructEnd()
5305
 
5333
 
5306
  def write(self, oprot):
5334
  def write(self, oprot):
5307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5309
      return
5337
      return
5310
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
5338
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
-
 
5339
    if self.physicalWarehouseId is not None:
-
 
5340
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
-
 
5341
      oprot.writeI64(self.physicalWarehouseId)
-
 
5342
      oprot.writeFieldEnd()
5311
    oprot.writeFieldStop()
5343
    oprot.writeFieldStop()
5312
    oprot.writeStructEnd()
5344
    oprot.writeStructEnd()
5313
 
5345
 
5314
  def validate(self):
5346
  def validate(self):
5315
    return
5347
    return
Line 5393... Line 5425...
5393
 
5425
 
5394
  def __ne__(self, other):
5426
  def __ne__(self, other):
5395
    return not (self == other)
5427
    return not (self == other)
5396
 
5428
 
5397
class getCurrentNonSerializedInventoryByScans_args:
5429
class getCurrentNonSerializedInventoryByScans_args:
-
 
5430
  """
-
 
5431
  Attributes:
-
 
5432
   - physicalWarehouseId
-
 
5433
  """
5398
 
5434
 
5399
  thrift_spec = (
5435
  thrift_spec = (
-
 
5436
    None, # 0
-
 
5437
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
5400
  )
5438
  )
5401
 
5439
 
-
 
5440
  def __init__(self, physicalWarehouseId=None,):
-
 
5441
    self.physicalWarehouseId = physicalWarehouseId
-
 
5442
 
5402
  def read(self, iprot):
5443
  def read(self, iprot):
5403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5405
      return
5446
      return
5406
    iprot.readStructBegin()
5447
    iprot.readStructBegin()
5407
    while True:
5448
    while True:
5408
      (fname, ftype, fid) = iprot.readFieldBegin()
5449
      (fname, ftype, fid) = iprot.readFieldBegin()
5409
      if ftype == TType.STOP:
5450
      if ftype == TType.STOP:
5410
        break
5451
        break
-
 
5452
      if fid == 1:
-
 
5453
        if ftype == TType.I64:
-
 
5454
          self.physicalWarehouseId = iprot.readI64();
-
 
5455
        else:
-
 
5456
          iprot.skip(ftype)
5411
      else:
5457
      else:
5412
        iprot.skip(ftype)
5458
        iprot.skip(ftype)
5413
      iprot.readFieldEnd()
5459
      iprot.readFieldEnd()
5414
    iprot.readStructEnd()
5460
    iprot.readStructEnd()
5415
 
5461
 
5416
  def write(self, oprot):
5462
  def write(self, oprot):
5417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5419
      return
5465
      return
5420
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
5466
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
-
 
5467
    if self.physicalWarehouseId is not None:
-
 
5468
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
-
 
5469
      oprot.writeI64(self.physicalWarehouseId)
-
 
5470
      oprot.writeFieldEnd()
5421
    oprot.writeFieldStop()
5471
    oprot.writeFieldStop()
5422
    oprot.writeStructEnd()
5472
    oprot.writeStructEnd()
5423
 
5473
 
5424
  def validate(self):
5474
  def validate(self):
5425
    return
5475
    return