Skip to content

Commit 7b07f2e

Browse files
committed
Allow SDI of 6 characters
1 parent 88d1243 commit 7b07f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/billing/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def validate_sdi_code(sdi_code: str) -> bool:
2121
sdi_code = sdi_code.upper()
2222

23-
if len(sdi_code) != 7:
23+
if len(sdi_code) not in [6, 7]:
2424
raise SdiCodeIncorrectLengthError()
2525

2626
if not sdi_code.isalnum():

0 commit comments

Comments
 (0)