Subversion Repositories SmartDukaan

Rev

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

Rev 13329 Rev 13330
Line 456... Line 456...
456
    catalog_client = CatalogClient().get_client()
456
    catalog_client = CatalogClient().get_client()
457
    inventory_client = InventoryClient().get_client()
457
    inventory_client = InventoryClient().get_client()
458
    
458
    
459
    for val in itemInfo:
459
    for val in itemInfo:
460
        spm = val.sourcePercentage
460
        spm = val.sourcePercentage
461
        try:
-
 
462
            snapdealDetails = fetchDetails(val.supc)
461
        snapdealDetails = fetchDetails(val.supc)
463
        except Exception as e:
-
 
464
            print "Error while getting supc ",val.supc
-
 
465
            print e
-
 
466
            exceptionItems.append(val)
-
 
467
            continue
-
 
468
        print snapdealDetails
-
 
469
        sys.exit(1)
462
        sys.exit(1)
470
        mpItem = MarketplaceItems.get_by(itemId=val.item_id,source=OrderSource.SNAPDEAL)
463
        mpItem = MarketplaceItems.get_by(itemId=val.item_id,source=OrderSource.SNAPDEAL)
471
        warehouse = inventory_client.getWarehouse(val.warehouseId)
464
        warehouse = inventory_client.getWarehouse(val.warehouseId)
472
        
465
        
473
        itemSaleList = []
466
        itemSaleList = []