| Line 54... |
Line 54... |
| 54 |
ARAMEX_URL = config_client.get_property("aramex_update_url")
|
54 |
ARAMEX_URL = config_client.get_property("aramex_update_url")
|
| 55 |
except ConfigException as cex:
|
55 |
except ConfigException as cex:
|
| 56 |
print cex.message
|
56 |
print cex.message
|
| 57 |
traceback.print_exc()
|
57 |
traceback.print_exc()
|
| 58 |
|
58 |
|
| - |
|
59 |
defaultUndeliveredAsssigneeId = 19
|
| 59 |
from_user = 'cnc.center@shop2020.in'
|
60 |
from_user = 'cnc.center@shop2020.in'
|
| 60 |
from_pwd = '5h0p2o2o'
|
61 |
from_pwd = '5h0p2o2o'
|
| 61 |
to = ['cnc.center@shop2020.in', "suraj.sharma@shop2020.in", "sandeep.sachdeva@shop2020.in", "manoj.kumar@shop2020.in"]
|
62 |
to = ['cnc.center@shop2020.in', "suraj.sharma@shop2020.in", "sandeep.sachdeva@shop2020.in", "manoj.kumar@shop2020.in"]
|
| 62 |
|
63 |
|
| 63 |
def process_dao_pickup_orders(provider):
|
64 |
def process_dao_pickup_orders(provider):
|
| Line 568... |
Line 569... |
| 568 |
print "creating ticket for orderId:"+str(order.id)
|
569 |
print "creating ticket for orderId:"+str(order.id)
|
| 569 |
ticket = Ticket()
|
570 |
ticket = Ticket()
|
| 570 |
activity = Activity()
|
571 |
activity = Activity()
|
| 571 |
description = order.statusDescription + "\n\nOrder not delivered by courier due to problems at customer end."
|
572 |
description = order.statusDescription + "\n\nOrder not delivered by courier due to problems at customer end."
|
| 572 |
ticket.creatorId = 1
|
573 |
ticket.creatorId = 1
|
| - |
|
574 |
ticket.assigneeId = defaultUndeliveredAsssigneeId
|
| 573 |
ticket.category = TicketCategory.DELIVERY_PROBLEM
|
575 |
ticket.category = TicketCategory.UNDELIVERED
|
| 574 |
ticket.priority = TicketPriority.HIGH
|
576 |
ticket.priority = TicketPriority.HIGH
|
| 575 |
ticket.status = TicketStatus.OPEN
|
577 |
ticket.status = TicketStatus.OPEN
|
| 576 |
ticket.description = description
|
578 |
ticket.description = description
|
| 577 |
ticket.orderId = order.id
|
579 |
ticket.orderId = order.id
|
| 578 |
ticket.airwayBillNo = order.airwaybill_no
|
580 |
ticket.airwayBillNo = order.airwaybill_no
|
| 579 |
|
581 |
|
| 580 |
activity.creatorId = 1
|
582 |
activity.creatorId = 1
|
| - |
|
583 |
activity.ticketAssigneeId = ticket.assigneeId
|
| 581 |
activity.type = ActivityType.OTHER
|
584 |
activity.type = ActivityType.OTHER
|
| 582 |
activity.description = description
|
585 |
activity.description = description
|
| 583 |
activity.ticketCategory = ticket.category
|
586 |
activity.ticketCategory = ticket.category
|
| 584 |
activity.ticketDescription = ticket.description
|
587 |
activity.ticketDescription = ticket.description
|
| 585 |
activity.ticketPriority = ticket.priority
|
588 |
activity.ticketPriority = ticket.priority
|