Subversion Repositories SmartDukaan

Rev

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

Rev 6736 Rev 6739
Line 404... Line 404...
404
                line = Line.query.filter_by(cart = cart).filter_by(item_id = t_line.itemId).one()
404
                line = Line.query.filter_by(cart = cart).filter_by(item_id = t_line.itemId).one()
405
            #Update its discounted price.
405
            #Update its discounted price.
406
                line.discounted_price = t_line.discountedPrice
406
                line.discounted_price = t_line.discountedPrice
407
            cart.discounted_price = updated_cart.discountedPrice
407
            cart.discounted_price = updated_cart.discountedPrice
408
            session.commit()
408
            session.commit()
-
 
409
            if updated_cart.message is None:
409
            emival = updated_cart.message
410
                emival = updated_cart.message
410
        except PromotionException as ex:
411
        except PromotionException as ex:
411
            remove_coupon(cart.id)
412
            remove_coupon(cart.id)
412
            retval = ex.message
413
            retval = ex.message
413
    return [retval, emival]
414
    return [retval, emival]
414
 
415