When using VAT codes 3, 4, or 5 in combination with 2 or more sales specifications, VAT was not calculated for all specifications

When using VAT codes 3, 4, or 5 in combination with 2 or more sales specifications linked to the line, VAT was only calculated on the order line and the last sales specification. No VAT was calculated on the other specifications of that order.