Subversion Repositories SmartDukaan

Rev

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

Rev 9945 Rev 10136
Line 1019... Line 1019...
1019
            orders_not_picked_up = get_return_orders_not_picked_up(providerId)
1019
            orders_not_picked_up = get_return_orders_not_picked_up(providerId)
1020
            return [to_t_order(order) for order in orders_not_picked_up]
1020
            return [to_t_order(order) for order in orders_not_picked_up]
1021
        finally:
1021
        finally:
1022
            close_session()
1022
            close_session()
1023
 
1023
 
1024
    def receiveReturn(self, orderId, receiveCondition):
1024
    def receiveReturn(self, orderId, receiveCondition, receiveFreebie):
1025
        """
1025
        """
1026
        If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
1026
        If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
1027
        If the order is in any other state, it returns false.
1027
        If the order is in any other state, it returns false.
1028
        Throws an exception if the order with the given id couldn't be found.
1028
        Throws an exception if the order with the given id couldn't be found.
1029
        
1029
        
1030
        Parameters:
1030
        Parameters:
1031
         - orderId
1031
         - orderId
1032
        """
1032
        """
1033
        try:
1033
        try:
1034
            return receive_return(orderId, receiveCondition)
1034
            return receive_return(orderId, receiveCondition, receiveFreebie)
1035
        finally:
1035
        finally:
1036
            close_session()
1036
            close_session()
1037
 
1037
 
1038
    def validateDoa(self, orderId, isValid):
1038
    def validateDoa(self, orderId, isValid):
1039
        """
1039
        """