From 2da3971a1aeff514db42896fea223f39e08dc9f4 Mon Sep 17 00:00:00 2001 From: Dan Jacob Date: Mon, 7 Aug 2023 14:01:55 +0300 Subject: [PATCH] Settings: add RESPA_SAP_INTERFACE_ID setting This value is required for XML SAP sales order generation. Refs: TTVA-146 --- respa/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/respa/settings.py b/respa/settings.py index 1a1d16a99..e280b8283 100644 --- a/respa/settings.py +++ b/respa/settings.py @@ -2,11 +2,10 @@ Django settings for respa project. """ -import os -import subprocess - import environ +import os import sentry_sdk +import subprocess from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_lazy as _ from django_jinja.builtins import DEFAULT_EXTENSIONS # noqa @@ -398,6 +397,8 @@ def get_git_revision_hash(): # amount of minutes before orders in state "waiting" will be set to state "expired" RESPA_PAYMENTS_PAYMENT_WAITING_TIME = env("RESPA_PAYMENTS_PAYMENT_WAITING_TIME") +RESPA_SAP_INTERFACE_ID = env("RESPA_SAP_INTERFACE_ID", default="NOTSET") + # local_settings.py can be used to override environment-specific settings # like database and email that differ between development and production. local_settings_path = os.path.join(BASE_DIR, "local_settings.py")