Unit code of price base quantity MUST be same as invoiced quantity.
cac:Price/cbc:BaseQuantity[@unitCode]
not($hasQuantity) or @unitCode = $quantity/@unitCode