Article 167, Article 178(a), Article 179 and Article 226(3) of Council Directive 2006/112/EC must be interpreted as precluding national legislation, such as that at issue in the main proceedings, under which the correction of an invoice in relation to a detail which must be mentioned, namely the value added tax identification number, does not have retroactive effect, so that the right to deduct value added tax exercised on the basis of the corrected invoice relates not to the year in which the invoice was originally drawn up but to the year in which it was corrected.