diff --git a/apps/warehouse/web/api/v1/serializers.py b/apps/warehouse/web/api/v1/serializers.py index b822468..9d3ec52 100644 --- a/apps/warehouse/web/api/v1/serializers.py +++ b/apps/warehouse/web/api/v1/serializers.py @@ -52,7 +52,7 @@ class InventoryEntrySerializer(serializers.ModelSerializer): raise InventoryEntryWeightException() # if instance is not exists for create, check entry weight with distribution - elif not self.instance: + else: if total_entered + attrs['weight'] > distribution.weight: raise InventoryEntryWeightException()