# UBL-SR-43

Source: https://xmlvalid.com/rules/UBL-SR-43

> Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)

- Level: error
- Rule sets: EN 16931 rules (UBL) 1.3.17, EN 16931 rules 1.3.16 (UBL), EXTENDED-CTC-FR rules (UBL) 1.4.0.04
- Context: `cac:AdditionalDocumentReference`
- Test: `((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))`

> Scheme identifier shall only be used for invoiced object (document type code with value 130)

- Level: error
- Rule sets: Romanian RO e-Factura rules (UBL) 1.0.9
- Context: `cac:AdditionalDocumentReference`
- Test: `((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@scheme) and not(cbc:DocumentTypeCode)))`

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