adds parameter for query generation to only generate neworders