added materials number in stock and work cost calculating