fatalEN 16931syntax binding ruleCIIBT-81
All Payment means type codes (BT-81) shall have the same value across all SpecifiedTradeSettlementPaymentMeans.
Different payment means type codes appear across the payment means groups.
EN 16931 carries a single payment method per invoice: make every SpecifiedTradeSettlementPaymentMeans use the same BT-81.
CII — context /rsm:CrossIndustryInvoice
count(//ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode[normalize-space(.) != normalize-space((//ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode)[1])]) = 0
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.