fix - entry -> inventory_entry in InventoryEntryAllocation
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user