# XV-SA-13

Source: https://xmlvalid.com/rules/XV-SA-13

> The invoice hash in the QR code (tag 6, …) is not the hash of the invoice (…).

- Level: error
- Rule sets: ZATCA cryptographic stamp and QR code checks Security Features Implementation Standards 1.1, SDK 3.4.6
- Context: `/*/cac:AdditionalDocumentReference[cbc:ID = 'QR']`
- Test: `not($readable) or $fields[7] = '' or $fields[7] = sa:hash($invoice)`

Validate a document against these rules: https://xmlvalid.com/validate
