fix bug of inventory entry
This commit is contained in:
@@ -52,7 +52,7 @@ class InventoryEntrySerializer(serializers.ModelSerializer):
|
|||||||
raise InventoryEntryWeightException()
|
raise InventoryEntryWeightException()
|
||||||
|
|
||||||
# if instance is not exists for create, check entry weight with distribution
|
# if instance is not exists for create, check entry weight with distribution
|
||||||
elif not self.instance:
|
else:
|
||||||
if total_entered + attrs['weight'] > distribution.weight:
|
if total_entered + attrs['weight'] > distribution.weight:
|
||||||
raise InventoryEntryWeightException()
|
raise InventoryEntryWeightException()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user