Subversion Repositories SmartDukaan

Rev

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

Rev 12232 Rev 12233
Line 270... Line 270...
270
            else:
270
            else:
271
                litem.added_on = datetime.datetime.now()
271
                litem.added_on = datetime.datetime.now()
272
            """
272
            """
273
            litem.order = order
273
            litem.order = order
274
    session.commit()
274
    session.commit()
-
 
275
    
275
    for order in transaction.orders:
276
    for order1 in Transaction.get_by(id=transaction.id).orders:
276
        if OrderSource.MOBILESITE == order.source or OrderSource.WEBSITE == order.source:
277
        if OrderSource.MOBILESITE == order.source or OrderSource.WEBSITE == order.source:
277
            order.source =  OrderSource.WEBSITE
278
            order1.source =  OrderSource.WEBSITE
278
            attribute = Attribute()
279
            attribute = Attribute()
279
            attribute.orderId = order.id
280
            attribute.orderId = order1.id
280
            attribute.name = "OrderSource"
281
            attribute.name = "OrderSource"
281
            if OrderSource.MOBILESITE == order.source:
282
            if OrderSource.MOBILESITE == order1.source:
282
                attribute.value = "Mobile"
283
                attribute.value = "Mobile"
283
            else:
284
            else:
284
                attribute.value = "Desktop"
285
                attribute.value = "Desktop"
285
            session.commit()
286
            session.commit()
286
    # EMI charges can not be charged by merchant as per RBI guidelines. 
287
    # EMI charges can not be charged by merchant as per RBI guidelines.