paybox: accept two digits value for rang parameter (#65828)
gitea/eopayment/pipeline/head Build started... Details

This commit is contained in:
Serghei Mihai 2022-05-31 17:29:38 +02:00
parent 2f7c4374f3
commit 3abc468775
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class Payment(PaymentCommon):
'name': 'rang',
'caption': 'Numéro de rang',
'required': True,
'validation': lambda x: isinstance(x, str) and x.isdigit() and len(x) == 3,
'validation': lambda x: isinstance(x, str) and x.isdigit() and (len(x) in (2, 3)),
},
{
'name': 'identifiant',