# F-LIB312

Source: https://xmlvalid.com/rules/F-LIB312

> When PaymentMeansCode = 50 and PaymentID = '04' or '15', InstructionID must not be blank.

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `(cbc:PaymentMeansCode = '50') and ((cbc:PaymentID = '04' or cbc:PaymentID = '15') and (cbc:InstructionID = ''))`

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