| Line 172... |
Line 172... |
| 172 |
if item.modelNumber:
|
172 |
if item.modelNumber:
|
| 173 |
ds_item.model_number = item.modelNumber
|
173 |
ds_item.model_number = item.modelNumber
|
| 174 |
ds_item.color = item.color
|
174 |
ds_item.color = item.color
|
| 175 |
ds_item.model_name = item.modelName
|
175 |
ds_item.model_name = item.modelName
|
| 176 |
ds_item.category = item.category
|
176 |
ds_item.category = item.category
|
| 177 |
if item.category in [10001, 10002, 10003, 10004, 10005]:
|
177 |
if item.category == 10006:
|
| 178 |
ds_item.preferredInsurer = 1
|
178 |
ds_item.preferredInsurer = 1
|
| 179 |
|
179 |
|
| 180 |
ds_item.comments = item.comments
|
180 |
ds_item.comments = item.comments
|
| 181 |
|
181 |
|
| 182 |
ds_item.catalog_item_id = item.catalogItemId
|
182 |
ds_item.catalog_item_id = item.catalogItemId
|
| Line 525... |
Line 525... |
| 525 |
if item.status == status.PAUSED_BY_RISK:
|
525 |
if item.status == status.PAUSED_BY_RISK:
|
| 526 |
change_item_status(item.id, status.ACTIVE)
|
526 |
change_item_status(item.id, status.ACTIVE)
|
| 527 |
__send_mail_for_active_item(item.id, "Item '{0}' is Active. Item id is {1}".format(__get_product_name(item), item_id), "")
|
527 |
__send_mail_for_active_item(item.id, "Item '{0}' is Active. Item id is {1}".format(__get_product_name(item), item_id), "")
|
| 528 |
session.commit()
|
528 |
session.commit()
|
| 529 |
|
529 |
|
| 530 |
def mark_item_as_content_complete(entity_id, category, brand, modelName, modelNumber):
|
530 |
def mark_item_as_content_complete(entity_id, category, brand, modelName, modelNumber, isAndroid):
|
| 531 |
'''
|
531 |
'''
|
| 532 |
Get all the items for this entityID and update category, brand, modelName and modelNumber for all.
|
532 |
Get all the items for this entityID and update category, brand, modelName and modelNumber for all.
|
| 533 |
Update Status for only IN_PROCESS items to CONTENT_COMPLETE
|
533 |
Update Status for only IN_PROCESS items to CONTENT_COMPLETE
|
| 534 |
'''
|
534 |
'''
|
| 535 |
content_complete_status = status.CONTENT_COMPLETE
|
535 |
content_complete_status = status.CONTENT_COMPLETE
|