fatalPeppol BIS Billing 3.0profileCIIUBLBT-6
Only one tax total without tax subtotals MUST be provided when tax currency code is provided.
A tax currency code is present but the invoice does not carry exactly one TaxTotal without subtotals for it.
When BT-6 is used, add a second cac:TaxTotal that holds ONLY the total VAT amount in that currency and no TaxSubtotal groups. The first TaxTotal keeps the breakdown.
CII — context —
count(ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID != $documentCurrencyCode]) = (if (ram:TaxCurrencyCode) then 1 else 0)
UBL — context —
count(cac:TaxTotal[not(cac:TaxSubtotal)]) = (if (cbc:TaxCurrencyCode) then 1 else 0)