| 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, DtrPricing as TDtrPricing
|
21 |
HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo, BulkItemPricing as TBulkItemPricing, DtrPricing as TDtrPricing, \
|
| - |
|
22 |
CategoryHsnCode as TCategoryHsnCode
|
| 22 |
|
23 |
|
| 23 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
24 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
| 24 |
import datetime
|
25 |
import datetime
|
| 25 |
|
26 |
|
| 26 |
def to_t_item(item, dealPrice=None):
|
27 |
def to_t_item(item, dealPrice=None):
|
| Line 759... |
Line 760... |
| 759 |
t_bulkpricing.item_id = bulkPricing.item_id
|
760 |
t_bulkpricing.item_id = bulkPricing.item_id
|
| 760 |
t_bulkpricing.quantity = bulkPricing.quantity
|
761 |
t_bulkpricing.quantity = bulkPricing.quantity
|
| 761 |
t_bulkpricing.price = bulkPricing.price
|
762 |
t_bulkpricing.price = bulkPricing.price
|
| 762 |
return t_bulkpricing
|
763 |
return t_bulkpricing
|
| 763 |
|
764 |
|
| - |
|
765 |
def to_t_categoryHsnCode(categoryHsnCode):
|
| - |
|
766 |
t_categoryHsnCode = TCategoryHsnCode()
|
| - |
|
767 |
t_categoryHsnCode.categoryId = categoryHsnCode.categoryId
|
| - |
|
768 |
t_categoryHsnCode.hsnCode = categoryHsnCode.hsnCode
|
| - |
|
769 |
t_categoryHsnCode.description = categoryHsnCode.description
|
| - |
|
770 |
|
| 764 |
def to_t_dtr_pricing(dtrPricing):
|
771 |
def to_t_dtr_pricing(dtrPricing):
|
| 765 |
d_item, bulkPricingMap = dtrPricing
|
772 |
d_item, bulkPricingMap = dtrPricing
|
| 766 |
t_dtr_pricing = TDtrPricing()
|
773 |
t_dtr_pricing = TDtrPricing()
|
| 767 |
if d_item is None:
|
774 |
if d_item is None:
|
| 768 |
return t_dtr_pricing
|
775 |
return t_dtr_pricing
|