However, in practice, the general shopping card is not invoiced when it is consumed, because the supermarket has already invoiced when you buy the shopping card by default, so you can't invoice when you go to consume, and the tax bureau will generally support this way.
Of course, if you can prove that you didn't invoice when you bought the gift card, then the tax bureau should support you and let the other party invoice you when you spend.