# VF-1157

Source: https://xmlvalid.com/rules/VF-1157

> El valor de cupón solo puede ser S o N si está informado. El valor de cupón sólo puede ser S si el tipo de factura es R1 o R5.

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Context: `/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta`
- Test: `not(normalize-space(*:Cupon) = 'S') or $type = ('R1', 'R5')`

In English: Cupon may only be S when TipoFactura is R1 or R5.

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