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