SC#QCADOOCLS-1520 Some fixes in production counting and procution counting with costs.