A dummy invoice is generally useful for demonstration or testing purposes and is legal. However, it is good to consult a legal expert.