| 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, BulkItemPricing as TBulkItemPricing
|
21 |
HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo, BulkItemPricing as TBulkItemPricing, DtrPricing as TDtrPricing
|
| 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 755... |
Line 755... |
| 755 |
t_bulkpricing = TBulkItemPricing()
|
755 |
t_bulkpricing = TBulkItemPricing()
|
| 756 |
t_bulkpricing.id = bulkPricing.id
|
756 |
t_bulkpricing.id = bulkPricing.id
|
| 757 |
t_bulkpricing.item_id = bulkPricing.item_id
|
757 |
t_bulkpricing.item_id = bulkPricing.item_id
|
| 758 |
t_bulkpricing.quantity = bulkPricing.quantity
|
758 |
t_bulkpricing.quantity = bulkPricing.quantity
|
| 759 |
t_bulkpricing.price = bulkPricing.price
|
759 |
t_bulkpricing.price = bulkPricing.price
|
| 760 |
return t_bulkpricing
|
- |
|
| 761 |
|
760 |
return t_bulkpricing
|
| - |
|
761 |
|
| - |
|
762 |
def to_t_dtr_pricing(dtrPricing):
|
| - |
|
763 |
d_item, bulkPricingMap = dtrPricing
|
| - |
|
764 |
t_dtr_pricing = TDtrPricing()
|
| - |
|
765 |
if d_item is None:
|
| - |
|
766 |
return t_dtr_pricing
|
| - |
|
767 |
t_dtr_pricing.catalog_item_id = d_item.catalog_item_id
|
| - |
|
768 |
t_dtr_pricing.bulkPricing = bulkPricingMap
|
| - |
|
769 |
t_dtr_pricing.sellingPrice = d_item.sellingPrice
|
| - |
|
770 |
t_dtr_pricing.minimumBuyQuantity = d_item.minimumBuyQuantity
|
| - |
|
771 |
t_dtr_pricing.maximumBuyQuantity = d_item.maximumBuyQuantity
|
| - |
|
772 |
return t_dtr_pricing
|
| - |
|
773 |
|
| - |
|
774 |
|
| 762 |
|
775 |
|