fix - entry -> inventory_entry in InventoryEntryAllocation

This commit is contained in:
2025-11-19 08:56:17 +03:30
parent 4bf900a1e2
commit 92fb9c7946

View File

@@ -41,7 +41,7 @@ class WarehouseAllocationService:
InventoryEntryAllocation.objects.create( InventoryEntryAllocation.objects.create(
distribution=dist, distribution=dist,
entry=entry, inventory_entry=entry,
weight=allocate_weight weight=allocate_weight
) )
@@ -52,6 +52,6 @@ class WarehouseAllocationService:
if remaining > 0: if remaining > 0:
raise WareHouseException( raise WareHouseException(
"مقدار ورد شده از انبار بیشتر از مقدار کل سهمیه توزیع داده شده است", "مقدار وارد شده از انبار بیشتر از مقدار کل سهمیه توزیع داده شده است", # noqa
status.HTTP_400_BAD_REQUEST status.HTTP_400_BAD_REQUEST
) )