In this week, the final touch up of the accept command for stock take was done. First, the I added a query to get all the stock take that is still pending in accept so the user can easily look up the stock take that they want to accept. Next, A stress test of the accept command logic was done to ensure that the logic is capable to handle large amount of data and do the accept process rather quickly.
The stress test was done with 10000 items, 200 places, 200 places and 300 stock take line items. The entire process of the accept for the large quantity of item took roughly around 5 to 6 seconds. After that, I wrote another unit test which involve the stock take having different items from the existing item list. The test is to ensure the existing item on the following is replaced with the items in the stock take itself.
Lastly, I need to add a query for the accept command in which the user is able to look at the status of the ongoing accept command. Not only that, the user should also be able to cancel the ongoing accept process as well. Once all the touch ups are done, I will move to creating the UI for the stock take feature.
