From 92fb9c7946a0996598346406b1c875f64cce310e Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 19 Nov 2025 08:56:17 +0330 Subject: [PATCH] fix - entry -> inventory_entry in InventoryEntryAllocation --- apps/warehouse/services/warehouse_allocation_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/warehouse/services/warehouse_allocation_service.py b/apps/warehouse/services/warehouse_allocation_service.py index 53c0f03..44b5c9e 100644 --- a/apps/warehouse/services/warehouse_allocation_service.py +++ b/apps/warehouse/services/warehouse_allocation_service.py @@ -41,7 +41,7 @@ class WarehouseAllocationService: InventoryEntryAllocation.objects.create( distribution=dist, - entry=entry, + inventory_entry=entry, weight=allocate_weight ) @@ -52,6 +52,6 @@ class WarehouseAllocationService: if remaining > 0: raise WareHouseException( - "مقدار ورد شده از انبار بیشتر از مقدار کل سهمیه توزیع داده شده است", + "مقدار وارد شده از انبار بیشتر از مقدار کل سهمیه توزیع داده شده است", # noqa status.HTTP_400_BAD_REQUEST )