| Line 2322... |
Line 2322... |
| 2322 |
item.maxNlc = snapdealitem.maxNlc
|
2322 |
item.maxNlc = snapdealitem.maxNlc
|
| 2323 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
2323 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
| 2324 |
item.updatedOn = datetime.datetime.now()
|
2324 |
item.updatedOn = datetime.datetime.now()
|
| 2325 |
item.supc = snapdealitem.supc
|
2325 |
item.supc = snapdealitem.supc
|
| 2326 |
item.courierCostMarketplace = snapdealitem.courierCostMarketplace
|
2326 |
item.courierCostMarketplace = snapdealitem.courierCostMarketplace
|
| - |
|
2327 |
if snapdealitem.isVoiListed is not None:
|
| - |
|
2328 |
item.isVoiListed = snapdealitem.isVoiListed
|
| - |
|
2329 |
if snapdealitem.voiSellingPrice is not None:
|
| - |
|
2330 |
item.voiSellingPrice = snapdealitem.voiSellingPrice
|
| - |
|
2331 |
if snapdealitem.voiSellingPrice is not None:
|
| - |
|
2332 |
item.voiPriceLastUpdatedOn = datetime.datetime.now()
|
| - |
|
2333 |
if snapdealitem.voiSkuAtSnapdeal is not None:
|
| - |
|
2334 |
item.voiSkuAtSnapdeal = snapdealitem.voiSkuAtSnapdeal
|
| - |
|
2335 |
if snapdealitem.minimumPossibleSpVoi is not None:
|
| - |
|
2336 |
item.minimumPossibleSpVoi = snapdealitem.minimumPossibleSpVoi
|
| - |
|
2337 |
if snapdealitem.minimumPossibleTpVoi is not None:
|
| - |
|
2338 |
item.minimumPossibleTpVoi = snapdealitem.minimumPossibleTpVoi
|
| - |
|
2339 |
if snapdealitem.courierCostVoi is not None:
|
| - |
|
2340 |
item.courierCostVoi = snapdealitem.courierCostVoi
|
| - |
|
2341 |
if snapdealitem.serviceTaxVoi is not None:
|
| - |
|
2342 |
item.serviceTaxVoi = snapdealitem.serviceTaxVoi
|
| - |
|
2343 |
if snapdealitem.transferPriceVoi is not None:
|
| - |
|
2344 |
item.transferPriceVoi = snapdealitem.transferPriceVoi
|
| - |
|
2345 |
if snapdealitem.commissionVoi is not None:
|
| - |
|
2346 |
item.commissionVoi = snapdealitem.commissionVoi
|
| 2327 |
__markStatusForMarketplaceItems(snapdealitem,item)
|
2347 |
__markStatusForMarketplaceItems(snapdealitem,item)
|
| 2328 |
return update_marketplace_attributes_for_item(snapdealitem.marketplaceItems)
|
2348 |
return update_marketplace_attributes_for_item(snapdealitem.marketplaceItems)
|
| 2329 |
else:
|
2349 |
else:
|
| 2330 |
item = SnapdealItem()
|
2350 |
item = SnapdealItem()
|
| 2331 |
if snapdealitem.item_id is not None:
|
2351 |
if snapdealitem.item_id is not None:
|
| Line 2352... |
Line 2372... |
| 2352 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
2372 |
item.skuAtSnapdeal = snapdealitem.skuAtSnapdeal
|
| 2353 |
item.supc = snapdealitem.supc
|
2373 |
item.supc = snapdealitem.supc
|
| 2354 |
item.updatedOn = datetime.datetime.now()
|
2374 |
item.updatedOn = datetime.datetime.now()
|
| 2355 |
item.priceUpdatedBy = snapdealitem.updatedBy
|
2375 |
item.priceUpdatedBy = snapdealitem.updatedBy
|
| 2356 |
item.courierCostMarketplace = snapdealitem.courierCostMarketplace
|
2376 |
item.courierCostMarketplace = snapdealitem.courierCostMarketplace
|
| - |
|
2377 |
if snapdealitem.isVoiListed is not None:
|
| - |
|
2378 |
item.isVoiListed = snapdealitem.isVoiListed
|
| - |
|
2379 |
if snapdealitem.voiSellingPrice is not None:
|
| - |
|
2380 |
item.voiSellingPrice = snapdealitem.voiSellingPrice
|
| - |
|
2381 |
if snapdealitem.voiSellingPrice is not None:
|
| - |
|
2382 |
item.voiPriceLastUpdatedOn = datetime.datetime.now()
|
| - |
|
2383 |
if snapdealitem.voiSkuAtSnapdeal is not None:
|
| - |
|
2384 |
item.voiSkuAtSnapdeal = snapdealitem.voiSkuAtSnapdeal
|
| - |
|
2385 |
if snapdealitem.minimumPossibleSpVoi is not None:
|
| - |
|
2386 |
item.minimumPossibleSpVoi = snapdealitem.minimumPossibleSpVoi
|
| - |
|
2387 |
if snapdealitem.minimumPossibleTpVoi is not None:
|
| - |
|
2388 |
item.minimumPossibleTpVoi = snapdealitem.minimumPossibleTpVoi
|
| - |
|
2389 |
if snapdealitem.courierCostVoi is not None:
|
| - |
|
2390 |
item.courierCostVoi = snapdealitem.courierCostVoi
|
| - |
|
2391 |
if snapdealitem.serviceTaxVoi is not None:
|
| - |
|
2392 |
item.serviceTaxVoi = snapdealitem.serviceTaxVoi
|
| - |
|
2393 |
if snapdealitem.transferPriceVoi is not None:
|
| - |
|
2394 |
item.transferPriceVoi = snapdealitem.transferPriceVoi
|
| - |
|
2395 |
if snapdealitem.commissionVoi is not None:
|
| - |
|
2396 |
item.commissionVoi = snapdealitem.commissionVoi
|
| 2357 |
__markStatusForMarketplaceItems(snapdealitem,item)
|
2397 |
__markStatusForMarketplaceItems(snapdealitem,item)
|
| 2358 |
return update_marketplace_attributes_for_item(snapdealitem.marketplaceItems)
|
2398 |
return update_marketplace_attributes_for_item(snapdealitem.marketplaceItems)
|
| 2359 |
except Exception as ex:
|
2399 |
except Exception as ex:
|
| 2360 |
print "Unable to addOrupdate snapdealItem"
|
2400 |
print "Unable to addOrupdate snapdealItem"
|
| 2361 |
print ex
|
2401 |
print ex
|
| Line 2703... |
Line 2743... |
| 2703 |
itemHistory.priceUpdatedBy = item.updatedBy
|
2743 |
itemHistory.priceUpdatedBy = item.updatedBy
|
| 2704 |
if (mpItem.currentSp!=t_mpItem.currentSp):
|
2744 |
if (mpItem.currentSp!=t_mpItem.currentSp):
|
| 2705 |
item.updatedBy = flipkartitem.updatedBy
|
2745 |
item.updatedBy = flipkartitem.updatedBy
|
| 2706 |
item.exceptionPrice = flipkartitem.exceptionPrice
|
2746 |
item.exceptionPrice = flipkartitem.exceptionPrice
|
| 2707 |
item.warehouseId = flipkartitem.warehouseId
|
2747 |
item.warehouseId = flipkartitem.warehouseId
|
| - |
|
2748 |
if flipkartitem.isListedOnFlipkart:
|
| 2708 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
2749 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| - |
|
2750 |
item.isFaListed = False
|
| - |
|
2751 |
else:
|
| - |
|
2752 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2753 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| 2709 |
item.commissionValue = flipkartitem.commissionValue
|
2754 |
item.commissionValue = flipkartitem.commissionValue
|
| 2710 |
item.serviceTaxValue = flipkartitem.serviceTaxValue
|
2755 |
item.serviceTaxValue = flipkartitem.serviceTaxValue
|
| 2711 |
item.suppressPriceFeed =flipkartitem.suppressPriceFeed
|
2756 |
item.suppressPriceFeed =flipkartitem.suppressPriceFeed
|
| 2712 |
item.suppressInventoryFeed =flipkartitem.suppressInventoryFeed
|
2757 |
item.suppressInventoryFeed =flipkartitem.suppressInventoryFeed
|
| 2713 |
item.maxNlc = flipkartitem.maxNlc
|
2758 |
item.maxNlc = flipkartitem.maxNlc
|
| 2714 |
item.skuAtFlipkart = flipkartitem.skuAtFlipkart
|
2759 |
item.skuAtFlipkart = flipkartitem.skuAtFlipkart
|
| 2715 |
item.flipkartSerialNumber = flipkartitem.flipkartSerialNumber
|
2760 |
item.flipkartSerialNumber = flipkartitem.flipkartSerialNumber
|
| 2716 |
item.updatedOn = datetime.datetime.now()
|
2761 |
item.updatedOn = datetime.datetime.now()
|
| - |
|
2762 |
if flipkartitem.isFaListed:
|
| - |
|
2763 |
item.isListedOnFlipkart = False
|
| - |
|
2764 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2765 |
else:
|
| - |
|
2766 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2767 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| 2717 |
__markStatusForFlipkartItems(flipkartitem,item)
|
2768 |
__markStatusForFlipkartItems(flipkartitem,item)
|
| 2718 |
return update_marketplace_attributes_for_item(flipkartitem.marketplaceItems)
|
2769 |
return update_marketplace_attributes_for_item(flipkartitem.marketplaceItems)
|
| 2719 |
else:
|
2770 |
else:
|
| 2720 |
item = FlipkartItem()
|
2771 |
item = FlipkartItem()
|
| 2721 |
if flipkartitem.item_id is not None:
|
2772 |
if flipkartitem.item_id is not None:
|
| 2722 |
item.item_id = flipkartitem.item_id
|
2773 |
item.item_id = flipkartitem.item_id
|
| 2723 |
item.exceptionPrice = flipkartitem.exceptionPrice
|
2774 |
item.exceptionPrice = flipkartitem.exceptionPrice
|
| 2724 |
item.warehouseId = flipkartitem.warehouseId
|
2775 |
item.warehouseId = flipkartitem.warehouseId
|
| - |
|
2776 |
if flipkartitem.isListedOnFlipkart:
|
| 2725 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
2777 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| - |
|
2778 |
item.isFaListed = False
|
| - |
|
2779 |
else:
|
| - |
|
2780 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2781 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| 2726 |
item.commissionValue = flipkartitem.commissionValue
|
2782 |
item.commissionValue = flipkartitem.commissionValue
|
| 2727 |
item.serviceTaxValue = flipkartitem.serviceTaxValue
|
2783 |
item.serviceTaxValue = flipkartitem.serviceTaxValue
|
| 2728 |
item.suppressPriceFeed =flipkartitem.suppressPriceFeed
|
2784 |
item.suppressPriceFeed =flipkartitem.suppressPriceFeed
|
| 2729 |
item.suppressInventoryFeed =flipkartitem.suppressInventoryFeed
|
2785 |
item.suppressInventoryFeed =flipkartitem.suppressInventoryFeed
|
| 2730 |
item.maxNlc = flipkartitem.maxNlc
|
2786 |
item.maxNlc = flipkartitem.maxNlc
|
| 2731 |
item.skuAtFlipkart = flipkartitem.skuAtFlipkart
|
2787 |
item.skuAtFlipkart = flipkartitem.skuAtFlipkart
|
| 2732 |
item.flipkartSerialNumber = flipkartitem.flipkartSerialNumber
|
2788 |
item.flipkartSerialNumber = flipkartitem.flipkartSerialNumber
|
| 2733 |
item.updatedOn = datetime.datetime.now()
|
2789 |
item.updatedOn = datetime.datetime.now()
|
| 2734 |
item.updatedBy = flipkartitem.updatedBy
|
2790 |
item.updatedBy = flipkartitem.updatedBy
|
| - |
|
2791 |
if flipkartitem.isFaListed:
|
| - |
|
2792 |
item.isListedOnFlipkart = False
|
| - |
|
2793 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2794 |
else:
|
| - |
|
2795 |
item.isFaListed = flipkartitem.isFaListed
|
| - |
|
2796 |
item.isListedOnFlipkart = flipkartitem.isListedOnFlipkart
|
| 2735 |
__markStatusForFlipkartItems(flipkartitem,item)
|
2797 |
__markStatusForFlipkartItems(flipkartitem,item)
|
| 2736 |
return update_marketplace_attributes_for_item(flipkartitem.marketplaceItems)
|
2798 |
return update_marketplace_attributes_for_item(flipkartitem.marketplaceItems)
|
| 2737 |
except Exception as ex:
|
2799 |
except Exception as ex:
|
| 2738 |
print "Unable to addOrupdate flipkart"
|
2800 |
print "Unable to addOrupdate flipkart"
|
| 2739 |
print ex
|
2801 |
print ex
|