Subversion Repositories SmartDukaan

Rev

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

Rev 6903 Rev 6922
Line 340... Line 340...
340
        try:
340
        try:
341
            return add_address_to_cart(cartId, addressId)
341
            return add_address_to_cart(cartId, addressId)
342
        finally:
342
        finally:
343
            self.closeSession()
343
            self.closeSession()
344
    
344
    
345
    def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
345
    def applyCouponToCart(self, t_cart, couponCode):
346
        '''
346
        '''
347
        Parameters:
347
        Parameters:
348
        - cartId
348
        - cartId
349
        - couponCode
349
        - couponCode
350
        - totalPrice
350
        - totalPrice
351
        - discountedPrice
351
        - discountedPrice
352
        '''
352
        '''
353
        try:
353
        try:
354
            apply_coupon_to_cart(cartId, couponCode, totalPrice, discountedPrice)
354
            apply_coupon_to_cart(t_cart, couponCode)
355
        finally:
355
        finally:
356
            self.closeSession()
356
            self.closeSession()
357
    
357
    
358
    def removeCoupon(self, cartId):
358
    def removeCoupon(self, cartId):
359
        '''
359
        '''