2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-08 08:01:38 +00:00

Fix for stocktake exporter (#12324)

This commit is contained in:
Oliver
2026-07-08 09:06:03 +10:00
committed by GitHub
parent 69ae28d0df
commit b63d829891
@@ -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