Subversion Repositories SmartDukaan

Rev

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

Rev 5208 Rev 5256
Line 1058... Line 1058...
1058
                                          'order_weight' : str(order.total_weight),
1058
                                          'order_weight' : str(order.total_weight),
1059
                                          'customer_address' : __get_order_address(order),
1059
                                          'customer_address' : __get_order_address(order),
1060
                                          'warehouse_executive' : executive,
1060
                                          'warehouse_executive' : executive,
1061
                                          'warehouse_address' : warehouse.location,
1061
                                          'warehouse_address' : warehouse.location,
1062
                                          'warehouse_pin' : warehouse.pincode}
1062
                                          'warehouse_pin' : warehouse.pincode}
1063
        #FIXME Email is hardcoded for bluedart
-
 
1064
        if providerId == 1:
-
 
1065
            to_addresses = [to_addr, 'sonikap@bluedart.com']
1063
        to_addresses = [to_addr, 'zaffar.kar@shop2020.in', 'suraj.sharma@shop2020.in']
1066
        else:
-
 
1067
            to_addresses = [to_addr]
-
 
1068
        
1064
        
1069
        mail(from_user, from_pwd, to_addresses, subject, message)
1065
        mail(from_user, from_pwd, to_addresses, subject, message)
1070
        if order.status == OrderStatus.RET_REQUEST_AUTHORIZED:
1066
        if order.status == OrderStatus.RET_REQUEST_AUTHORIZED:
1071
            order.status = OrderStatus.RET_PICKUP_REQUEST_RAISED
1067
            order.status = OrderStatus.RET_PICKUP_REQUEST_RAISED
1072
            order.statusDescription = "Pick up requested for RETURN"
1068
            order.statusDescription = "Pick up requested for RETURN"