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