# F-LIB321

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

> PaymentMeansCode = 50 or PaymentChannelCode = DK:GIRO, PayeeFinancialAccount.ID must consist of 7 or 8 numerical characters.

- 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' or cbc:PaymentChannelCode = 'DK:GIRO') and (string-length(cac:PayeeFinancialAccount/cbc:ID) < 7 or string-length(cac:PayeeFinancialAccount/cbc:ID) > 8 or string(number(cac:PayeeFinancialAccount/cbc:ID)) = 'NaN')`

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