| Line 17... |
Line 17... |
| 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 |
CategoryHsnCode as TCategoryHsnCode, StateGstRate
|
| 23 |
|
23 |
|
| 24 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
24 |
from shop2020.utils.Utils import to_java_date, to_py_date
|
| 25 |
import datetime
|
25 |
import datetime
|
| 26 |
|
26 |
|
| 27 |
def to_t_item(item, dealPrice=None):
|
27 |
def to_t_item(item, dealPrice=None):
|
| Line 98... |
Line 98... |
| 98 |
t_insurer.address = insurer.address
|
98 |
t_insurer.address = insurer.address
|
| 99 |
t_insurer.declaredAmount = insurer.declaredAmount
|
99 |
t_insurer.declaredAmount = insurer.declaredAmount
|
| 100 |
t_insurer.creditedAmount = insurer.creditedAmount
|
100 |
t_insurer.creditedAmount = insurer.creditedAmount
|
| 101 |
return t_insurer
|
101 |
return t_insurer
|
| 102 |
|
102 |
|
| - |
|
103 |
def to_t_state_gst_rate(stateGstRate):
|
| - |
|
104 |
t_state_gst_rate = StateGstRate()
|
| - |
|
105 |
t_state_gst_rate.itemId = stateGstRate.itemId
|
| - |
|
106 |
t_state_gst_rate.stateId = stateGstRate.stateId
|
| - |
|
107 |
t_state_gst_rate.taxRate = stateGstRate.taxRate
|
| - |
|
108 |
return t_state_gst_rate
|
| - |
|
109 |
|
| 103 |
def to_t_voucher_item_mapping(voucher):
|
110 |
def to_t_voucher_item_mapping(voucher):
|
| 104 |
t_voucher = VoucherItemMapping()
|
111 |
t_voucher = VoucherItemMapping()
|
| 105 |
t_voucher.voucherType = voucher.voucherType
|
112 |
t_voucher.voucherType = voucher.voucherType
|
| 106 |
t_voucher.itemId = voucher.item.id
|
113 |
t_voucher.itemId = voucher.item.id
|
| 107 |
t_voucher.amount = voucher.amount
|
114 |
t_voucher.amount = voucher.amount
|