Get your taxes done using TurboTax

The ending inventory for 2016 that is transferred forward should correctly be the beginning 2017 inventory which is the correct thing to happen.  Then you will add inventory added and the 2017 year end inventory amount to calculate the COGS for 2017.