mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-17 12:13:49 +00:00
(cherry picked from commit b63d829891)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
co-authored by
Oliver
parent
648125ed84
commit
b629be7cb6
@@ -49,7 +49,7 @@ class PartStocktakeExporter(DataExportMixin, InvenTreePlugin):
|
|||||||
SLUG = 'inventree-stocktake-exporter'
|
SLUG = 'inventree-stocktake-exporter'
|
||||||
TITLE = _('Part Stocktake Exporter')
|
TITLE = _('Part Stocktake Exporter')
|
||||||
DESCRIPTION = _('Exporter for part stocktake data')
|
DESCRIPTION = _('Exporter for part stocktake data')
|
||||||
VERSION = '1.1.0'
|
VERSION = '1.1.1'
|
||||||
AUTHOR = _('InvenTree contributors')
|
AUTHOR = _('InvenTree contributors')
|
||||||
|
|
||||||
ExportOptionsSerializer = PartStocktakeExportOptionsSerializer
|
ExportOptionsSerializer = PartStocktakeExportOptionsSerializer
|
||||||
@@ -156,6 +156,9 @@ class PartStocktakeExporter(DataExportMixin, InvenTreePlugin):
|
|||||||
if exclude_zero_stock:
|
if exclude_zero_stock:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Update the 'total in stock' count for this row
|
||||||
|
row['total_in_stock'] = float(quantity)
|
||||||
|
|
||||||
if export_pricing_data:
|
if export_pricing_data:
|
||||||
pricing_min = row.get('pricing_min', None) or row.get(
|
pricing_min = row.get('pricing_min', None) or row.get(
|
||||||
'pricing_max', None
|
'pricing_max', None
|
||||||
|
|||||||
Reference in New Issue
Block a user