From f4dc4ea62943587887f52cc334e0cdf59deac49e Mon Sep 17 00:00:00 2001 From: 7nimor Date: Thu, 31 Jul 2025 12:29:37 +0330 Subject: [PATCH] update excel warehouse --- apps/product/services/excel/excel_processing.py | 2 +- apps/product/services/excel/urls.py | 4 ++-- apps/warehouse/services/excel/excel_processing.py | 2 +- apps/warehouse/services/excel/urls.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/product/services/excel/excel_processing.py b/apps/product/services/excel/excel_processing.py index 58de9f6..42b18be 100644 --- a/apps/product/services/excel/excel_processing.py +++ b/apps/product/services/excel/excel_processing.py @@ -15,7 +15,7 @@ from common.helper_excel import create_header, excel_description, create_header_ from common.helpers import get_organization_by_user -class QuotaDistributionExcelViewSet(viewsets.ModelViewSet): +class ProductExcelViewSet(viewsets.ModelViewSet): queryset = product_models.QuotaDistribution.objects.all() serializer_class = distribution_serializers.QuotaDistributionSerializer diff --git a/apps/product/services/excel/urls.py b/apps/product/services/excel/urls.py index bcf55d2..0119ddf 100644 --- a/apps/product/services/excel/urls.py +++ b/apps/product/services/excel/urls.py @@ -1,10 +1,10 @@ from django.urls import path, include from rest_framework.routers import DefaultRouter -from apps.product.services.excel.excel_processing import QuotaDistributionExcelViewSet +from apps.product.services.excel.excel_processing import ProductExcelViewSet router = DefaultRouter() -router.register(r'', QuotaDistributionExcelViewSet, basename='quota_distribution_excel') +router.register(r'', ProductExcelViewSet, basename='product_excel') urlpatterns = [ diff --git a/apps/warehouse/services/excel/excel_processing.py b/apps/warehouse/services/excel/excel_processing.py index c4b665a..3d95732 100644 --- a/apps/warehouse/services/excel/excel_processing.py +++ b/apps/warehouse/services/excel/excel_processing.py @@ -13,7 +13,7 @@ from common.helper_excel import create_header, excel_description, create_header_ from common.helpers import get_organization_by_user -class InventoryEntryExcelViewSet(viewsets.ModelViewSet): +class WareHouseExcelViewSet(viewsets.ModelViewSet): queryset = warehouse_models.InventoryEntry.objects.all() serializer_class = warehouse_serializers.InventoryEntrySerializer diff --git a/apps/warehouse/services/excel/urls.py b/apps/warehouse/services/excel/urls.py index f66f227..b7ab119 100644 --- a/apps/warehouse/services/excel/urls.py +++ b/apps/warehouse/services/excel/urls.py @@ -1,10 +1,10 @@ from django.urls import path, include from rest_framework.routers import DefaultRouter from apps.warehouse.services.excel import excel_processing as excel -from apps.warehouse.services.excel.excel_processing import InventoryEntryExcelViewSet +from apps.warehouse.services.excel.excel_processing import WareHouseExcelViewSet router = DefaultRouter() -router.register(r'', InventoryEntryExcelViewSet, basename='inventory_entry_excel') +router.register(r'', WareHouseExcelViewSet, basename='warehouse_excel') urlpatterns = [ path('', include(router.urls)),