diff --git a/InvenTree/part/stocktake.py b/InvenTree/part/stocktake.py index aae3b94f17..f803248c88 100644 --- a/InvenTree/part/stocktake.py +++ b/InvenTree/part/stocktake.py @@ -249,10 +249,6 @@ def generate_stocktake_report(**kwargs): location=location, ) - if stocktake.quantity == 0: - # Skip rows with zero total quantity - continue - total_parts += 1 stocktake_instances.append(stocktake) diff --git a/InvenTree/part/test_api.py b/InvenTree/part/test_api.py index 8d44ab0e93..57af3632cb 100644 --- a/InvenTree/part/test_api.py +++ b/InvenTree/part/test_api.py @@ -3015,7 +3015,7 @@ class PartStocktakeTest(InvenTreeAPITestCase): data = response.data[0] - self.assertEqual(data['part_count'], 8) + self.assertEqual(data['part_count'], 14) self.assertEqual(data['user'], None) self.assertTrue(data['report'].endswith('.csv'))