Subversion Repositories SmartDukaan

Rev

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

Rev 9361 Rev 9362
Line 74... Line 74...
74
    secondLowestSellerOfferPrice = 0
74
    secondLowestSellerOfferPrice = 0
75
    ourOfferPrice = 0
75
    ourOfferPrice = 0
76
    for vendor in vendorInfo:
76
    for vendor in vendorInfo:
77
        if iterator == 0:
77
        if iterator == 0:
78
            lowestSellerName = vendor['vendorDisplayName']
78
            lowestSellerName = vendor['vendorDisplayName']
-
 
79
            try:
79
            lowestSp = vendor['sellingPriceBefIntCashBack']
80
                lowestSp = vendor['sellingPriceBefIntCashBack']
-
 
81
            except:
-
 
82
                lowestSp = vendor['sellingPrice']
80
            lowestOfferPrice = vendor['sellingPrice']
83
            lowestOfferPrice = vendor['sellingPrice']
81
            
84
            
82
        if iterator ==1:
85
        if iterator ==1:
83
            secondLowestSellerName = vendor['vendorDisplayName']
86
            secondLowestSellerName = vendor['vendorDisplayName']
-
 
87
            try:
84
            secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
88
                secondLowestSellerSp = vendor['sellingPriceBefIntCashBack']
-
 
89
            except:
-
 
90
                secondLowestSellerSp = vendor['sellingPrice'] 
85
            secondLowestSellerOfferPrice = vendor['sellingPrice'] 
91
            secondLowestSellerOfferPrice = vendor['sellingPrice'] 
86
            secondLowestSellerInventory = vendor['buyableInventory']
92
            secondLowestSellerInventory = vendor['buyableInventory']
87
            
93
            
88
        if vendor['vendorDisplayName'] == 'MobilesnMore':
94
        if vendor['vendorDisplayName'] == 'MobilesnMore':
89
            ourInventory = vendor['buyableInventory']
95
            ourInventory = vendor['buyableInventory']
-
 
96
            try:
90
            ourSp = vendor['sellingPriceBefIntCashBack']
97
                ourSp = vendor['sellingPriceBefIntCashBack']
-
 
98
            except:
-
 
99
                ourSp = vendor['sellingPrice']
91
            ourOfferPrice = vendor['sellingPrice']
100
            ourOfferPrice = vendor['sellingPrice']
92
            rank = iterator +1
101
            rank = iterator +1
93
        else:
102
        else:
94
            if rank==0:
103
            if rank==0:
95
                otherInventory = otherInventory +vendor['buyableInventory']
104
                otherInventory = otherInventory +vendor['buyableInventory']