Message

If [name] is used, all order lines MUST have a Line total amount. Order line [value-of /ubl:Order/cac:OrderLine/cac:LineItem/cbc:ID[not(../cbc:LineExtensionAmount)]] has no line amount

Context
//cac:AnticipatedMonetaryTotal
Test
count(../cac:OrderLine/cac:LineItem/cbc:ID[not(../cbc:LineExtensionAmount)]) = 0