mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Don't ignore parts without stock in stocktake (#5627)
* don't ignore parts without stock in stocktake #5621 * after including 0 stock parts, expect 14 parts to be in stocktake --------- Co-authored-by: Oliver Lippert <oliver@lipperts-web.de>
This commit is contained in:
parent
e767516c80
commit
6a48eaeec8
@ -249,10 +249,6 @@ def generate_stocktake_report(**kwargs):
|
|||||||
location=location,
|
location=location,
|
||||||
)
|
)
|
||||||
|
|
||||||
if stocktake.quantity == 0:
|
|
||||||
# Skip rows with zero total quantity
|
|
||||||
continue
|
|
||||||
|
|
||||||
total_parts += 1
|
total_parts += 1
|
||||||
|
|
||||||
stocktake_instances.append(stocktake)
|
stocktake_instances.append(stocktake)
|
||||||
|
@ -3015,7 +3015,7 @@ class PartStocktakeTest(InvenTreeAPITestCase):
|
|||||||
|
|
||||||
data = response.data[0]
|
data = response.data[0]
|
||||||
|
|
||||||
self.assertEqual(data['part_count'], 8)
|
self.assertEqual(data['part_count'], 14)
|
||||||
self.assertEqual(data['user'], None)
|
self.assertEqual(data['user'], None)
|
||||||
self.assertTrue(data['report'].endswith('.csv'))
|
self.assertTrue(data['report'].endswith('.csv'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user