CM productionCounting fixes
Merge branch 'dev' of https://github.com/qcadoo/mes into dev