Message

Sum of line amounts MUST equal the credit note line net amounts

Context
//cac:LegalMonetaryTotal
Test
(xs:decimal(cbc:LineExtensionAmount)) = (round(sum((//cac:CreditNoteLine/xs:decimal(cbc:LineExtensionAmount))) * 10 * 10) div 100)
Usage
/ ubl:CreditNote / cac:LegalMonetaryTotal / cbc:LineExtensionAmount