Skip to content

Commit efa70c6

Browse files
authored
Allow SDI of 6 characters (#4406)
1 parent 88d1243 commit efa70c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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():

pretix/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN pip install boto3==1.35.14 \
66
django-storages==1.14.4 \
77
pretix-plugin-extended-api==0.1.14 \
88
pretix-plugin-attendance-certificate==0.1.11 \
9-
pretix-fattura-elettronica==0.2.15 \
9+
pretix-fattura-elettronica==0.2.16 \
1010
pretix-plugin-advanced-stats==1.0.0
1111

1212
RUN cd /pretix/src && DATABASE_HOST=demo make staticfiles

0 commit comments

Comments
 (0)