Subversion Repositories SmartDukaan

Rev

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

Rev 12226 Rev 12231
Line 203... Line 203...
203
        attribute.name = "OrderSource"
203
        attribute.name = "OrderSource"
204
        if OrderSource.MOBILESITE == t_order.source:
204
        if OrderSource.MOBILESITE == t_order.source:
205
            attribute.value = "Mobile"
205
            attribute.value = "Mobile"
206
        else:
206
        else:
207
            attribute.value = "Desktop"
207
            attribute.value = "Desktop"
-
 
208
        session.merge(attribute)
208
    else:
209
    else:
209
        order.source = t_order.source
210
        order.source = t_order.source
210
    #Change this temporary
211
    #Change this temporary
211
    if t_order.orderType is None or t_order.orderType ==OrderType.B2C:
212
    if t_order.orderType is None or t_order.orderType ==OrderType.B2C:
212
        order.orderType = 0
213
        order.orderType = 0