# HAP1650-4b

Source: https://xmlvalid.com/rules/HAP1650-4b

> A corrective invoice (InvoiceClass …) needs Corrective with the correction method….

- Level: error
- Rule sets: Facturae validation rules of the Spanish public sector Orden HAP/1650/2015, Facturae 3.2.x description of 6 June 2017
- Context: `/*:Facturae/*:Invoices/*:Invoice`
- Test: `not($class = ('OR', 'CR')) or (*:InvoiceHeader/*:Corrective and (not($method = ('01', '02')) or normalize-space(*:InvoiceHeader/*:Corrective/*:InvoiceNumber) != ''))`

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