| Line 380... |
Line 380... |
| 380 |
rank ,otherInventory ,ourInventory, ourOfferPrice, ourSp, iterator, secondLowestSellerSp, secondLowestSellerInventory, \
|
380 |
rank ,otherInventory ,ourInventory, ourOfferPrice, ourSp, iterator, secondLowestSellerSp, secondLowestSellerInventory, \
|
| 381 |
lowestOfferPrice, secondLowestSellerOfferPrice = (0,)*10
|
381 |
lowestOfferPrice, secondLowestSellerOfferPrice = (0,)*10
|
| 382 |
lowestSellerName , lowestSellerCode, secondLowestSellerName, secondLowestSellerCode=('',)*4
|
382 |
lowestSellerName , lowestSellerCode, secondLowestSellerName, secondLowestSellerCode=('',)*4
|
| 383 |
for vendor in vendorInfo:
|
383 |
for vendor in vendorInfo:
|
| 384 |
if iterator == 0:
|
384 |
if iterator == 0:
|
| 385 |
lowestSellerName = str(vendor['vendorDisplayName'])
|
385 |
lowestSellerName = vendor['vendorDisplayName'].encode('utf-8')
|
| 386 |
lowestSellerCode = str(vendor['vendorCode'])
|
386 |
lowestSellerCode = vendor['vendorCode'].encode('utf-8')
|
| 387 |
try:
|
387 |
try:
|
| 388 |
lowestSp = vendor['sellingPriceBefIntCashBack']
|
388 |
lowestSp = vendor['sellingPriceBefIntCashBack']
|
| 389 |
except:
|
389 |
except:
|
| 390 |
lowestSp = vendor['sellingPrice']
|
390 |
lowestSp = vendor['sellingPrice']
|
| 391 |
lowestOfferPrice = vendor['sellingPrice']
|
391 |
lowestOfferPrice = vendor['sellingPrice']
|
| 392 |
|
392 |
|
| 393 |
if iterator ==1:
|
393 |
if iterator ==1:
|
| 394 |
print type(vendor['vendorDisplayName'])
|
- |
|
| 395 |
print type(vendor['vendorDisplayName'].encode('utf-8'))
|
- |
|
| 396 |
secondLowestSellerName = str(vendor['vendorDisplayName'])
|
394 |
secondLowestSellerName = vendor['vendorDisplayName'].encode('utf-8')
|
| 397 |
secondLowestSellerCode =str(vendor['vendorCode'])
|
395 |
secondLowestSellerCode =vendor['vendorCode'].encode('utf-8')
|
| 398 |
try:
|
396 |
try:
|
| 399 |
secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
|
397 |
secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
|
| 400 |
except:
|
398 |
except:
|
| 401 |
secondLowestSellerSp = vendor['sellingPrice']
|
399 |
secondLowestSellerSp = vendor['sellingPrice']
|
| 402 |
secondLowestSellerOfferPrice = vendor['sellingPrice']
|
400 |
secondLowestSellerOfferPrice = vendor['sellingPrice']
|