fatalPeppol BIS Billing 3.0profileUBL
Credit note type code MUST be set according to the profile.
The credit note type code is not one the Peppol profile permits.
Use 381 (credit note) or 396 (factored credit note) on a CreditNote document.
UBL — context cbc:CreditNoteTypeCode
$profile != '01' or (some $code in tokenize('381 396 81 83 532', '\s') satisfies normalize-space(text()) = $code)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.