Subversion Repositories SmartDukaan

Rev

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

Rev 7019 Rev 7033
Line 157... Line 157...
157
    if t_order.created_timestamp:
157
    if t_order.created_timestamp:
158
        order.created_timestamp = to_py_date(t_order.created_timestamp)
158
        order.created_timestamp = to_py_date(t_order.created_timestamp)
159
    else:
159
    else:
160
        order.created_timestamp = datetime.datetime.now()
160
        order.created_timestamp = datetime.datetime.now()
161
    order.pickupStoreId = t_order.pickupStoreId
161
    order.pickupStoreId = t_order.pickupStoreId
-
 
162
    if t_order.insurer:
162
    order.insurer = t_order.insurer
163
        order.insurer = t_order.insurer
163
    order.insuranceAmount = t_order.insuranceAmount
164
        order.insuranceAmount = t_order.insuranceAmount
164
    if order.insurer > 0:
165
    if order.insurer > 0:
165
        insuranceDetail = InsuranceDetailForOrder()
166
        insuranceDetail = InsuranceDetailForOrder()
166
        insuranceDetail.dob = t_order.dob
167
        insuranceDetail.dob = t_order.dob
167
        insuranceDetail.guardianName = t_order.guardianName
168
        insuranceDetail.guardianName = t_order.guardianName
168
        insuranceDetail.order = order
169
        insuranceDetail.order = order