Subversion Repositories SmartDukaan

Rev

Rev 11900 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11900 Rev 13521
Line 142... Line 142...
142
            return get_emi_discount(cartId)
142
            return get_emi_discount(cartId)
143
        finally:
143
        finally:
144
            PromotionDataAccessors.close_session()
144
            PromotionDataAccessors.close_session()
145
            
145
            
146
 
146
 
147
    def trackCouponUsage(self, couponCode, transactionId, userId):
147
    def trackCouponUsage(self, couponCode, transactionId, userId,amount, isDigital):
148
        '''
148
        '''
149
        Parameters:
149
        Parameters:
150
        - couponCode
150
        - couponCode
151
        - transactionId
151
        - transactionId
152
        - userId
152
        - userId
153
        '''
153
        '''
154
        try:
154
        try:
155
            track_coupon_usage(couponCode, transactionId, userId)
155
            track_coupon_usage(couponCode, transactionId, userId, amount, isDigital)
156
        finally:
156
        finally:
157
            PromotionDataAccessors.close_session()
157
            PromotionDataAccessors.close_session()
158
    
158
    
159
    def getCouponUsageCountByUser(self, couponCode, userId):
159
    def getCouponUsageCountByUser(self, couponCode, userId):
160
        '''
160
        '''