Subversion Repositories SmartDukaan

Rev

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

Rev 9267 Rev 9268
Line 3035... Line 3035...
3035
        snapdeal_order.referenceCode = old_snapdeal_order.referenceCode
3035
        snapdeal_order.referenceCode = old_snapdeal_order.referenceCode
3036
        snapdeal_order.productName = old_snapdeal_order.productName
3036
        snapdeal_order.productName = old_snapdeal_order.productName
3037
        snapdeal_order.listingPrice = old_snapdeal_order.listingPrice
3037
        snapdeal_order.listingPrice = old_snapdeal_order.listingPrice
3038
        snapdeal_order.snapdealTxnDate = old_snapdeal_order.snapdealTxnDate
3038
        snapdeal_order.snapdealTxnDate = old_snapdeal_order.snapdealTxnDate
3039
        session.commit()
3039
        session.commit()
-
 
3040
    if order.source == 8:
-
 
3041
        old_flipkart_order = FlipkartOrder.get_by(orderId=order.id)
-
 
3042
        flipkart_order = FlipkartOrder()
-
 
3043
        flipkart_order.orderId = new_order.id
-
 
3044
        flipkart_order.subOrderId = old_flipkart_order.subOrderId
-
 
3045
        flipkart_order.referenceCode = old_flipkart_order.referenceCode
-
 
3046
        flipkart_order.productName = old_flipkart_order.productName
-
 
3047
        flipkart_order.listingPrice = old_flipkart_order.listingPrice
-
 
3048
        flipkart_order.snapdealTxnDate = old_flipkart_order.snapdealTxnDate
-
 
3049
        session.commit()
3040
    
3050
    
3041
    attributes = Attribute.query.filter(Attribute.orderId == order.id).all()
3051
    attributes = Attribute.query.filter(Attribute.orderId == order.id).all()
3042
    if attributes:
3052
    if attributes:
3043
        for attribute in attributes:
3053
        for attribute in attributes:
3044
            newattribute = Attribute()
3054
            newattribute = Attribute()