It happens sometimes, not all the times. Although it does not fail the stock counting, it fails the stock valuation a lot because the COGS transactions are not created in table gl_trans
.
table stock_moves
has data like this.
table debtor_tran_details
has data like this