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 )