Add whatsapp feature

This commit is contained in:
Urtzi Alfaro
2025-11-13 16:01:08 +01:00
parent d7df2b0853
commit 9bc048d360
74 changed files with 9765 additions and 533 deletions

View File

@@ -23,7 +23,8 @@ from ..schemas.tenant_settings import (
ReplenishmentSettings,
SafetyStockSettings,
MOQSettings,
SupplierSelectionSettings
SupplierSelectionSettings,
NotificationSettings
)
logger = structlog.get_logger()
@@ -46,7 +47,8 @@ class TenantSettingsService:
"replenishment": ReplenishmentSettings,
"safety_stock": SafetyStockSettings,
"moq": MOQSettings,
"supplier_selection": SupplierSelectionSettings
"supplier_selection": SupplierSelectionSettings,
"notification": NotificationSettings
}
# Map category names to database column names
@@ -60,7 +62,8 @@ class TenantSettingsService:
"replenishment": "replenishment_settings",
"safety_stock": "safety_stock_settings",
"moq": "moq_settings",
"supplier_selection": "supplier_selection_settings"
"supplier_selection": "supplier_selection_settings",
"notification": "notification_settings"
}
def __init__(self, db: AsyncSession):