Subversion Repositories SmartDukaan

Rev

Rev 4925 | Rev 4999 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4925 Rev 4948
Line 54... Line 54...
54
    BLUEDART_URL = config_client.get_property("bluedart_update_url")
54
    BLUEDART_URL = config_client.get_property("bluedart_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 642... Line 643...
642
                print "creating ticket for orderId:"+str(order.id)
643
                print "creating ticket for orderId:"+str(order.id)
643
                ticket = Ticket()
644
                ticket = Ticket()
644
                activity = Activity()
645
                activity = Activity()
645
                description = order.statusDescription + "\n\nOrder not delivered by courier due to problems at customer end."
646
                description = order.statusDescription + "\n\nOrder not delivered by courier due to problems at customer end."
646
                ticket.creatorId = 1
647
                ticket.creatorId = 1
-
 
648
                ticket.assigneeId = defaultUndeliveredAsssigneeId
647
                ticket.category = TicketCategory.DELIVERY_PROBLEM
649
                ticket.category = TicketCategory.UNDELIVERED
648
                ticket.priority = TicketPriority.HIGH
650
                ticket.priority = TicketPriority.HIGH
649
                ticket.status = TicketStatus.OPEN
651
                ticket.status = TicketStatus.OPEN
650
                ticket.description = description
652
                ticket.description = description
651
                ticket.orderId = order.id
653
                ticket.orderId = order.id
652
                ticket.airwayBillNo = order.airwaybill_no
654
                ticket.airwayBillNo = order.airwaybill_no
653
                
655
                
654
                activity.creatorId = 1
656
                activity.creatorId = 1
-
 
657
                activity.ticketAssigneeId = ticket.assigneeId
655
                activity.type = ActivityType.OTHER
658
                activity.type = ActivityType.OTHER
656
                activity.description = description
659
                activity.description = description
657
                activity.ticketCategory = ticket.category
660
                activity.ticketCategory = ticket.category
658
                activity.ticketDescription = ticket.description
661
                activity.ticketDescription = ticket.description
659
                activity.ticketPriority = ticket.priority
662
                activity.ticketPriority = ticket.priority