Managing production by work orders