Subversion Repositories SmartDukaan

Rev

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

Rev 4789 Rev 4801
Line 144... Line 144...
144
            orders = get_orders_for_transaction(transactionId, customerId)
144
            orders = get_orders_for_transaction(transactionId, customerId)
145
            return [to_t_order(order) for order in orders]    
145
            return [to_t_order(order) for order in orders]    
146
        finally:
146
        finally:
147
            close_session()
147
            close_session()
148
            
148
            
149
    def getAllOrders(self, status, from_date, to_date, warehouse_id):
149
    def getAllOrders(self, statuses, from_date, to_date, warehouse_id):
150
        """
150
        """
151
        Parameters:
151
        Parameters:
152
         - status
152
         - status
153
         - from_date
153
         - from_date
154
         - to_date
154
         - to_date
155
         - warehouse_id
155
         - warehouse_id
156
        """
156
        """
157
        try:
157
        try:
158
            current_from_date, current_to_date = get_fdate_tdate(from_date, to_date)        
158
            current_from_date, current_to_date = get_fdate_tdate(from_date, to_date)        
159
            orders = get_all_orders(status, current_from_date, current_to_date, warehouse_id)
159
            orders = get_all_orders(statuses, current_from_date, current_to_date, warehouse_id)
160
            return [to_t_order(order) for order in orders]
160
            return [to_t_order(order) for order in orders]
161
        finally:
161
        finally:
162
            close_session()
162
            close_session()
163
 
163
 
164
    def getOrdersInBatch(self, statuses, offset, limit, warehouse_id):
164
    def getOrdersInBatch(self, statuses, offset, limit, warehouse_id):