I still don’t understand what an invoice should look like.
The theme that I have created should be able to display invoices like in the example you show from the link.
My previous code only worked for one condition, where the item on the invoice had a Tax Amount. If the item in the invoice does not have a tax amount, such as for an item with 0% Vat, the item is exempt, the theme cannot work properly.
This example should be similar to the invoice you sent previously.