Update invoice.php

There is no reason in setting this variable before when it is not used in the first SQL statement.