Stock calculation was wrong in certain cases, should be ok now
Improved error message
Merge pull request #1239 from csalvador/replenishment-fix

Replenishment fix