Subversion Repositories SmartDukaan

Rev

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

Rev 1673 Rev 1743
Line 249... Line 249...
249
def create_user_communication(user_id, email, communication_type, order_id, awb, product, subject, message):
249
def create_user_communication(user_id, email, communication_type, order_id, awb, product, subject, message):
250
 
250
 
251
    user_communication = UserCommunication()
251
    user_communication = UserCommunication()
252
    user_communication.user_id = user_id
252
    user_communication.user_id = user_id
253
    user_communication.communication_type = communication_type
253
    user_communication.communication_type = communication_type
-
 
254
    
-
 
255
    if order_id > 0:
254
    user_communication.order_id = order_id
256
        user_communication.order_id = order_id
255
    user_communication.airwaybill_no = awb
257
    user_communication.airwaybill_no = awb
256
    user_communication.reply_to = email
258
    user_communication.reply_to = email
257
    user_communication.product_name = product
259
    user_communication.product_name = product
258
    user_communication.subject = subject
260
    user_communication.subject = subject
259
    user_communication.message = message
261
    user_communication.message = message