Subversion Repositories SmartDukaan

Rev

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

Rev 13058 Rev 13065
Line 295... Line 295...
295
            litem.order = order
295
            litem.order = order
296
    session.commit()
296
    session.commit()
297
    
297
    
298
    for order1 in Transaction.get_by(id=transaction.id).orders:
298
    for order1 in Transaction.get_by(id=transaction.id).orders:
299
        if OrderSource.MOBILESITE == order.source or OrderSource.WEBSITE == order.source:
299
        if OrderSource.MOBILESITE == order.source or OrderSource.WEBSITE == order.source:
300
            order1.source =  OrderSource.WEBSITE
-
 
301
            attribute = Attribute()
300
            attribute = Attribute()
302
            attribute.orderId = order1.id
301
            attribute.orderId = order1.id
303
            attribute.name = "OrderSource"
302
            attribute.name = "OrderSource"
304
            if OrderSource.MOBILESITE == order1.source:
303
            if OrderSource.MOBILESITE == order1.source:
305
                attribute.value = "Mobile"
304
                attribute.value = "Mobile"
-
 
305
                order1.source =  OrderSource.WEBSITE
306
            else:
306
            else:
307
                attribute.value = "Desktop"
307
                attribute.value = "Desktop"
308
            session.commit()
308
            session.commit()
309
    # EMI charges can not be charged by merchant as per RBI guidelines. 
309
    # EMI charges can not be charged by merchant as per RBI guidelines. 
310
    #Now we do not have any other charges, So commenting it out.
310
    #Now we do not have any other charges, So commenting it out.