Message

Expected total sum of line amounts MUST equal the sum of the order line amounts at order line level, if expected total sum of line amounts is provided

Context
//cac:AnticipatedMonetaryTotal
Test
(xs:decimal(cbc:LineExtensionAmount)) = (round(xs:decimal(sum(/ubl:Order/cac:OrderLine/cac:LineItem/cbc:LineExtensionAmount)) * 10 * 10) div 100)
Usage
/ ubl:Order / cac:AnticipatedMonetaryTotal / cbc:LineExtensionAmount