Subversion Repositories SmartDukaan

Rev

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

Rev 20379 Rev 20380
Line 169... Line 169...
169
        print "Unable to load json for %d"%(data['_id'])
169
        print "Unable to load json for %d"%(data['_id'])
170
        return
170
        return
171
    
171
    
172
    instock = 0
172
    instock = 0
173
    buyBoxPrice = 0.0
173
    buyBoxPrice = 0.0
-
 
174
    isBuyBox = 1
174
    
175
    
175
    buyBoxStock = int(vendor_data['vendorDtlSRO']['vendorDetailInventoryPricingSRO']['buyableInventory'])
176
    buyBoxStock = int(vendor_data['vendorDtlSRO']['vendorDetailInventoryPricingSRO']['buyableInventory'])
176
    soldOut = vendor_data['vendorDtlSRO']['vendorDetailInventoryPricingSRO']['soldOut']
177
    soldOut = vendor_data['vendorDtlSRO']['vendorDetailInventoryPricingSRO']['soldOut']
177
    instock = 1 if not soldOut else 0
178
    instock = 1 if not soldOut else 0
178
    if buyBoxStock >0:
179
    if buyBoxStock >0: