I did some investigations on this phenomena. I have a customer who made two orders. He provided his VAT number so his intra-EU tariff is zero.
In his first order everything looks correct.
However, for his second order the ps_order_detail table looks correct but the ps_order_detail_tax looks strange. The id_tax and unit_amount fields look as if tax must be paid. However, the total_amount field is zero.