Subversion Repositories SmartDukaan

Rev

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

Rev 12471 Rev 12473
Line 404... Line 404...
404
        ourPricing = ourPricingForSku.get(item.sku)
404
        ourPricing = ourPricingForSku.get(item.sku)
405
        if ourPricing is None or len(ourPricing.keys())==0:
405
        if ourPricing is None or len(ourPricing.keys())==0:
406
            item.ourSp = 0
406
            item.ourSp = 0
407
            item.promoPrice = 0
407
            item.promoPrice = 0
408
            item.isPromotion = False
408
            item.isPromotion = False
-
 
409
            item.asin = ''
409
        else:
410
        else:
410
            item.ourSp = ourPricing.get('sellingPrice')
411
            item.ourSp = ourPricing.get('sellingPrice')
411
            item.promoPrice = ourPricing.get('promoPrice')
412
            item.promoPrice = ourPricing.get('promoPrice')
412
            item.isPromotion = ourPricing.get('promotion')
413
            item.isPromotion = ourPricing.get('promotion')
-
 
414
            item.asin = ourPricing.get('asin')
413
            
415
            
414
        
416
        
415
 
417
 
416
def decideCategory(itemInfo):
418
def decideCategory(itemInfo):
417
    exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete = [],[],[],[],[],[],[] 
419
    exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete = [],[],[],[],[],[],[] 
Line 435... Line 437...
435
            else:
437
            else:
436
                print "Unable to fetch competive pricing"
438
                print "Unable to fetch competive pricing"
437
                temp.append("Unable to fetch competitive pricing")
439
                temp.append("Unable to fetch competitive pricing")
438
            exceptionList.append(temp)
440
            exceptionList.append(temp)
439
            continue
441
            continue
440
        val.asin = ourPricingForSku.get(val.sku).get('asin')
-
 
441
        val.ourSp = ourPricingForSku.get(val.sku).get('sellingPrice')
442
        val.ourSp = ourPricingForSku.get(val.sku).get('sellingPrice')
442
        val.promoPrice = ourPricingForSku.get(val.sku).get('promoPrice')
443
        val.promoPrice = ourPricingForSku.get(val.sku).get('promoPrice')
443
        val.isPromo = ourPricingForSku.get(val.sku).get('promotion')
444
        val.isPromo = ourPricingForSku.get(val.sku).get('promotion')
444
        iterator = 0
445
        iterator = 0
445
        sku, lowestSellerName,secondLowestSellerName, thirdLowestSellerName = ('',)*4
446
        sku, lowestSellerName,secondLowestSellerName, thirdLowestSellerName = ('',)*4