Message

Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

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