Subversion Repositories SmartDukaan

Rev

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

Rev 12103 Rev 12226
Line 194... Line 194...
194
        insuranceDetail.dob = t_order.dob
194
        insuranceDetail.dob = t_order.dob
195
        insuranceDetail.guardianName = t_order.guardianName
195
        insuranceDetail.guardianName = t_order.guardianName
196
        insuranceDetail.order = order
196
        insuranceDetail.order = order
197
    if t_order.freebieItemId:
197
    if t_order.freebieItemId:
198
        order.freebieItemId = t_order.freebieItemId
198
        order.freebieItemId = t_order.freebieItemId
-
 
199
    if OrderSource.MOBILESITE == t_order.source or OrderSource.WEBSITE == t_order.source:
-
 
200
        order.source =  OrderSource.WEBSITE
-
 
201
        attribute = Attribute()
-
 
202
        attribute.orderId = t_order.id
-
 
203
        attribute.name = "OrderSource"
-
 
204
        if OrderSource.MOBILESITE == t_order.source:
-
 
205
            attribute.value = "Mobile"
-
 
206
        else:
-
 
207
            attribute.value = "Desktop"
-
 
208
    else:
199
    order.source = t_order.source
209
        order.source = t_order.source
200
    #Change this temporary
210
    #Change this temporary
201
    if t_order.orderType is None or t_order.orderType ==OrderType.B2C:
211
    if t_order.orderType is None or t_order.orderType ==OrderType.B2C:
202
        order.orderType = 0
212
        order.orderType = 0
203
    order.advanceAmount = t_order.advanceAmount
213
    order.advanceAmount = t_order.advanceAmount
204
    order.storeId = t_order.storeId
214
    order.storeId = t_order.storeId