Fix the problem in the stocktake module whereas it crashes on high traffic. The problem is that the query continue to request in the database. The solution is to get the whole data and filter it by date and make it in json format.