| Line 44... |
Line 44... |
| 44 |
if item.bestDealText:
|
44 |
if item.bestDealText:
|
| 45 |
t_item.bestDealText = item.bestDealText
|
45 |
t_item.bestDealText = item.bestDealText
|
| 46 |
if item.bestDealValue:
|
46 |
if item.bestDealValue:
|
| 47 |
t_item.bestDealValue = item.bestDealValue
|
47 |
t_item.bestDealValue = item.bestDealValue
|
| 48 |
|
48 |
|
| 49 |
t_item.hotspotCategory = item.hotspotCategory
|
- |
|
| 50 |
t_item.defaultForEntity = item.defaultForEntity
|
49 |
t_item.defaultForEntity = item.defaultForEntity
|
| 51 |
t_item.otherInfo = to_t_other_info(item)
|
50 |
t_item.otherInfo = to_t_other_info(item)
|
| 52 |
t_item.bestSellingRank = item.bestSellingRank
|
51 |
t_item.bestSellingRank = item.bestSellingRank
|
| 53 |
t_item.risky = item.risky
|
52 |
t_item.risky = item.risky
|
| 54 |
t_item.expectedDelay = item.expectedDelay
|
53 |
t_item.expectedDelay = item.expectedDelay
|
| - |
|
54 |
if item.preferredWarehouse:
|
| 55 |
t_item.preferredWarehouse = item.preferredWarehouse
|
55 |
t_item.preferredWarehouse = int(item.preferredWarehouse)
|
| - |
|
56 |
if item.defaultWarehouse:
|
| 56 |
t_item.defaultWarehouse = item.defaultWarehouse
|
57 |
t_item.defaultWarehouse = int(item.defaultWarehouse)
|
| 57 |
t_item.isWarehousePreferenceSticky = item.isWarehousePreferenceSticky
|
58 |
t_item.isWarehousePreferenceSticky = item.isWarehousePreferenceSticky
|
| 58 |
t_item.warrantyPeriod = item.warranty_period
|
59 |
t_item.warrantyPeriod = item.warranty_period
|
| 59 |
t_item.preferredVendor = item.preferredVendor
|
60 |
t_item.preferredVendor = item.preferredVendor
|
| 60 |
|
61 |
|
| 61 |
return t_item
|
62 |
return t_item
|
| Line 113... |
Line 114... |
| 113 |
def to_t_vendor_item_mapping(vendor_item_mapping):
|
114 |
def to_t_vendor_item_mapping(vendor_item_mapping):
|
| 114 |
t_vendor_item_mapping = VendorItemMapping()
|
115 |
t_vendor_item_mapping = VendorItemMapping()
|
| 115 |
t_vendor_item_mapping.vendorId = vendor_item_mapping.vendor.id
|
116 |
t_vendor_item_mapping.vendorId = vendor_item_mapping.vendor.id
|
| 116 |
t_vendor_item_mapping.itemId = vendor_item_mapping.item.id
|
117 |
t_vendor_item_mapping.itemId = vendor_item_mapping.item.id
|
| 117 |
t_vendor_item_mapping.itemKey = vendor_item_mapping.item_key
|
118 |
t_vendor_item_mapping.itemKey = vendor_item_mapping.item_key
|
| 118 |
t_vendor_item_mapping.vendorCategory = vendor_item_mapping.vendor_category
|
- |
|
| 119 |
return t_vendor_item_mapping
|
119 |
return t_vendor_item_mapping
|
| 120 |
|
120 |
|
| 121 |
|
121 |
|
| 122 |
def to_t_category(category):
|
122 |
def to_t_category(category):
|
| 123 |
t_category = Category()
|
123 |
t_category = Category()
|
| 124 |
t_category.id = category.id
|
124 |
t_category.id = category.id
|
| 125 |
t_category.label = category.label
|
125 |
t_category.label = category.label
|
| 126 |
t_category.description = category.description
|
126 |
t_category.description = category.description
|
| 127 |
t_category.parent_category_id = category.parent_category_id
|
127 |
t_category.parent_category_id = category.parent_category_id
|
| - |
|
128 |
t_category.display_name = category.display_name
|
| 128 |
return t_category
|
129 |
return t_category
|
| 129 |
|
130 |
|
| 130 |
def to_t_source_item_pricing(source_item_pricing):
|
131 |
def to_t_source_item_pricing(source_item_pricing):
|
| 131 |
t_source_item_pricing = SourceItemPricing()
|
132 |
t_source_item_pricing = SourceItemPricing()
|
| 132 |
t_source_item_pricing.sourceId = source_item_pricing.source.id
|
133 |
t_source_item_pricing.sourceId = source_item_pricing.source.id
|