fatalPeppol BIS Billing 3.0profileCIIUBL
Only one tax total with tax subtotals MUST be provided.
More than one TaxTotal carrying tax subtotals is present.
Keep a single cac:TaxTotal that holds all the TaxSubtotal groups. A second TaxTotal is only allowed for the VAT amount in the accounting currency, and it must carry no subtotals.
CII — context —
count(ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID = $documentCurrencyCode]) <=1
UBL — context —
count(cac:TaxTotal[cac:TaxSubtotal]) = 1
Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.