The problem is where you start from for each product and how each of the rows work.
You need to decide what the definition of the starting position is, is it:
1. Last stock take + (acqs - invoice) since stock take until start date, or
2. Opening position + (acqs -invoice) until start date...