From b629be7cb6fedfbddbd7abbca6b2d1671330425e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 17:03:56 +1000 Subject: [PATCH] Fix for stocktake exporter (#12324) (#12327) (cherry picked from commit b63d8298914337ccc0990b5a939d028b18ee03a1) Co-authored-by: Oliver --- .../InvenTree/plugin/builtin/exporter/stocktake_exporter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/builtin/exporter/stocktake_exporter.py b/src/backend/InvenTree/plugin/builtin/exporter/stocktake_exporter.py index 6503d8f571..b03642e554 100644 --- a/src/backend/InvenTree/plugin/builtin/exporter/stocktake_exporter.py +++ b/src/backend/InvenTree/plugin/builtin/exporter/stocktake_exporter.py @@ -49,7 +49,7 @@ class PartStocktakeExporter(DataExportMixin, InvenTreePlugin): SLUG = 'inventree-stocktake-exporter' TITLE = _('Part Stocktake Exporter') DESCRIPTION = _('Exporter for part stocktake data') - VERSION = '1.1.0' + VERSION = '1.1.1' AUTHOR = _('InvenTree contributors') ExportOptionsSerializer = PartStocktakeExportOptionsSerializer @@ -156,6 +156,9 @@ class PartStocktakeExporter(DataExportMixin, InvenTreePlugin): if exclude_zero_stock: continue + # Update the 'total in stock' count for this row + row['total_in_stock'] = float(quantity) + if export_pricing_data: pricing_min = row.get('pricing_min', None) or row.get( 'pricing_max', None