Here is another example that warehouse accounting has glitches that are very critical for warehouse accounting.
product
https://vmk.crm-onebox.com/admin/shop/products/35489/storage/income 20, sold 12, balance 18. Interesting math, isn't it?
that's where the error appeared, when the product that was sold first returned, it knocked down all the availability of the warehouse and started counting incorrectly
first sale -1/20
at the time of the return there were 11 in stock, but it makes a return +1/20