| 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, VoiSnapdealItemInfo as TVoiSnapdealItemInfo
|
21 |
HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo, BulkItemPricing as TBulkItemPricing
|
| 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 81... |
Line 81... |
| 81 |
t_item.preferredInsurer = item.preferredInsurer
|
81 |
t_item.preferredInsurer = item.preferredInsurer
|
| 82 |
t_item.holdInventory = item.holdInventory
|
82 |
t_item.holdInventory = item.holdInventory
|
| 83 |
t_item.defaultInventory = item.defaultInventory
|
83 |
t_item.defaultInventory = item.defaultInventory
|
| 84 |
t_item.holdOverride = item.holdOverride
|
84 |
t_item.holdOverride = item.holdOverride
|
| 85 |
t_item.packQuantity = item.packQuantity
|
85 |
t_item.packQuantity = item.packQuantity
|
| - |
|
86 |
t_item.quantityStep = item.quantityStep
|
| - |
|
87 |
t_item.minimumBuyQuantity = item.minimumBuyQuantity
|
| 86 |
return t_item
|
88 |
return t_item
|
| 87 |
|
89 |
|
| 88 |
def to_t_insurer(insurer):
|
90 |
def to_t_insurer(insurer):
|
| 89 |
t_insurer = TInsurer()
|
91 |
t_insurer = TInsurer()
|
| 90 |
t_insurer.id = insurer.id
|
92 |
t_insurer.id = insurer.id
|
| Line 744... |
Line 746... |
| 744 |
t_voiSnapdealItemInfo.fixedMargin = voiSnapdealItemInfo.fixedMargin
|
746 |
t_voiSnapdealItemInfo.fixedMargin = voiSnapdealItemInfo.fixedMargin
|
| 745 |
t_voiSnapdealItemInfo.fixedMarginPercentage = voiSnapdealItemInfo.fixedMarginPercentage
|
747 |
t_voiSnapdealItemInfo.fixedMarginPercentage = voiSnapdealItemInfo.fixedMarginPercentage
|
| 746 |
t_voiSnapdealItemInfo.logisticCostSnapdeal = voiSnapdealItemInfo.logisticCostSnapdeal
|
748 |
t_voiSnapdealItemInfo.logisticCostSnapdeal = voiSnapdealItemInfo.logisticCostSnapdeal
|
| 747 |
t_voiSnapdealItemInfo.woodenPackagingCost = voiSnapdealItemInfo.woodenPackagingCost
|
749 |
t_voiSnapdealItemInfo.woodenPackagingCost = voiSnapdealItemInfo.woodenPackagingCost
|
| 748 |
t_voiSnapdealItemInfo.weightSnapdeal = voiSnapdealItemInfo.weightSnapdeal
|
750 |
t_voiSnapdealItemInfo.weightSnapdeal = voiSnapdealItemInfo.weightSnapdeal
|
| 749 |
return t_voiSnapdealItemInfo
|
- |
|
| 750 |
|
751 |
return t_voiSnapdealItemInfo
|
| - |
|
752 |
|
| - |
|
753 |
def to_t_bulk_pricing(bulkPricing):
|
| - |
|
754 |
t_bulkpricing = TBulkItemPricing()
|
| - |
|
755 |
t_bulkpricing.id = bulkPricing.id
|
| - |
|
756 |
t_bulkpricing.item_id = bulkPricing.item_id
|
| - |
|
757 |
t_bulkpricing.quantity = bulkPricing.quantity
|
| - |
|
758 |
t_bulkpricing.price = bulkPricing.price
|
| - |
|
759 |
return t_bulkpricing
|
| - |
|
760 |
|
| 751 |
|
761 |
|