| Line 16... |
Line 16... |
| 16 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
16 |
MarketplaceItems as TMarketplaceItems, MarketplacePercentage as TMarketplacePercentage, \
|
| 17 |
MarketPlaceItemPrice as TMarketPlaceItemPrice, FlipkartItem as TFlipkartItem,\
|
17 |
MarketPlaceItemPrice as TMarketPlaceItemPrice, FlipkartItem as TFlipkartItem,\
|
| 18 |
FlipkartItemDetails as TFlipkartItemDetails,MarketplaceHistory as TMarketplaceHistory,\
|
18 |
FlipkartItemDetails as TFlipkartItemDetails,MarketplaceHistory as TMarketplaceHistory,\
|
| 19 |
PrivateDeal as TPrivateDeal, AmazonOutOfSync as TAmazonOutOfSync, PdPriceComp as TPdPriceComp, CompetitorPricing as TCompetitorPricing, \
|
19 |
PrivateDeal as TPrivateDeal, AmazonOutOfSync as TAmazonOutOfSync, PdPriceComp as TPdPriceComp, CompetitorPricing as TCompetitorPricing, \
|
| 20 |
AmazonPromotion as TAmazonPromotion, ExclusiveAffiliateItemInfo as TExclusiveAffiliateItemInfo, \
|
20 |
AmazonPromotion as TAmazonPromotion, ExclusiveAffiliateItemInfo as TExclusiveAffiliateItemInfo, \
|
| 21 |
HsItem as THsItem
|
21 |
HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo
|
| 22 |
|
22 |
|
| 23 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
23 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
| 24 |
import datetime
|
24 |
import datetime
|
| 25 |
|
25 |
|
| 26 |
def to_t_item(item):
|
26 |
def to_t_item(item):
|
| Line 305... |
Line 305... |
| 305 |
t_snapdeal_item.minimumPossibleTpVoi = snapdealitem[0].minimumPossibleTpVoi
|
305 |
t_snapdeal_item.minimumPossibleTpVoi = snapdealitem[0].minimumPossibleTpVoi
|
| 306 |
t_snapdeal_item.courierCostVoi = snapdealitem[0].courierCostVoi
|
306 |
t_snapdeal_item.courierCostVoi = snapdealitem[0].courierCostVoi
|
| 307 |
t_snapdeal_item.serviceTaxVoi = snapdealitem[0].serviceTaxVoi
|
307 |
t_snapdeal_item.serviceTaxVoi = snapdealitem[0].serviceTaxVoi
|
| 308 |
t_snapdeal_item.transferPriceVoi = snapdealitem[0].transferPriceVoi
|
308 |
t_snapdeal_item.transferPriceVoi = snapdealitem[0].transferPriceVoi
|
| 309 |
t_snapdeal_item.commissionVoi = snapdealitem[0].commissionVoi
|
309 |
t_snapdeal_item.commissionVoi = snapdealitem[0].commissionVoi
|
| - |
|
310 |
t_snapdeal_item.courierCostMarketplaceVoi = snapdealitem[0].courierCostMarketplaceVoi
|
| - |
|
311 |
t_snapdeal_item.commissionPercentageVoi = snapdealitem[0].commissionPercentageVoi
|
| 310 |
return t_snapdeal_item
|
312 |
return t_snapdeal_item
|
| 311 |
|
313 |
|
| 312 |
def to_t_snapdeal_item_details(snapdealitem,snapdealItemInventory):
|
314 |
def to_t_snapdeal_item_details(snapdealitem,snapdealItemInventory):
|
| 313 |
if snapdealitem is None:
|
315 |
if snapdealitem is None:
|
| 314 |
t_snapdeal_item_details = TSnapdealItemDetails()
|
316 |
t_snapdeal_item_details = TSnapdealItemDetails()
|
| Line 717... |
Line 719... |
| 717 |
t_hsItem.defaultWarehouseId = hsItem.defaultWarehouseId
|
719 |
t_hsItem.defaultWarehouseId = hsItem.defaultWarehouseId
|
| 718 |
t_hsItem.hsItemId = hsItem.hsItemId
|
720 |
t_hsItem.hsItemId = hsItem.hsItemId
|
| 719 |
t_hsItem.hsProductId = hsItem.hsProductId
|
721 |
t_hsItem.hsProductId = hsItem.hsProductId
|
| 720 |
t_hsItem.itemId = hsItem.itemId
|
722 |
t_hsItem.itemId = hsItem.itemId
|
| 721 |
t_hsItem.listingPrice = hsItem.listingPrice
|
723 |
t_hsItem.listingPrice = hsItem.listingPrice
|
| 722 |
return t_hsItem
|
- |
|
| 723 |
|
724 |
return t_hsItem
|
| - |
|
725 |
|
| - |
|
726 |
def to_t_voiSnapdealItemInfo(voiSnapdealItemInfo):
|
| - |
|
727 |
t_voiSnapdealItemInfo = TVoiSnapdealItemInfo()
|
| - |
|
728 |
t_voiSnapdealItemInfo.item_id = voiSnapdealItemInfo.item_id
|
| - |
|
729 |
t_voiSnapdealItemInfo.voiSkuAtSnapdeal = voiSnapdealItemInfo.voiSkuAtSnapdeal
|
| - |
|
730 |
t_voiSnapdealItemInfo.sellingPriceSnapdeal = voiSnapdealItemInfo.sellingPriceSnapdeal
|
| - |
|
731 |
t_voiSnapdealItemInfo.transferPriceSnapdeal = voiSnapdealItemInfo.transferPriceSnapdeal
|
| - |
|
732 |
t_voiSnapdealItemInfo.fixedMargin = voiSnapdealItemInfo.fixedMargin
|
| - |
|
733 |
t_voiSnapdealItemInfo.fixedMarginPercentage = voiSnapdealItemInfo.fixedMarginPercentage
|
| - |
|
734 |
t_voiSnapdealItemInfo.logisticCostSnapdeal = voiSnapdealItemInfo.logisticCostSnapdeal
|
| - |
|
735 |
t_voiSnapdealItemInfo.woodenPackagingCost = voiSnapdealItemInfo.woodenPackagingCost
|
| - |
|
736 |
t_voiSnapdealItemInfo.weightSnapdeal = voiSnapdealItemInfo.weightSnapdeal
|
| - |
|
737 |
return t_voiSnapdealItemInfo
|
| - |
|
738 |
|
| 724 |
|
739 |
|