Subversion Repositories SmartDukaan

Rev

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

Rev 13327 Rev 13328
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 = vendor['vendorDisplayName']
385
            lowestSellerName = str(vendor['vendorDisplayName'])
386
            lowestSellerCode = vendor['vendorCode']
386
            lowestSellerCode = str(vendor['vendorCode'])
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
            secondLowestSellerName = vendor['vendorDisplayName']
394
            secondLowestSellerName = str(vendor['vendorDisplayName'])
395
            secondLowestSellerCode =vendor['vendorCode']
395
            secondLowestSellerCode =str(vendor['vendorCode'])
396
            try:
396
            try:
397
                secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
397
                secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
398
            except:
398
            except:
399
                secondLowestSellerSp = vendor['sellingPrice'] 
399
                secondLowestSellerSp = vendor['sellingPrice'] 
400
            secondLowestSellerOfferPrice = vendor['sellingPrice'] 
400
            secondLowestSellerOfferPrice = vendor['sellingPrice']