Fix for stocktake exporter (#12324) (#12327)

(cherry picked from commit b63d829891)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2026-07-08 17:03:56 +10:00 committed by GitHub
parent 648125ed84
commit b629be7cb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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