Skip to content

Commit 31cda08

Browse files
Label fix (#533)
* Bug fix for stock item label printing - Simple typo - Closes #531 * Update version
1 parent 51ae10a commit 31cda08

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

assets/release_notes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 0.16.4 - September 2024
2+
---
3+
4+
- Fixes bug related to printing stock item labels
5+
16
### 0.16.3 - August 2024
27
---
38

lib/widget/stock/stock_detail.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
259259
// Request information on labels available for this stock item
260260
if (allowLabelPrinting) {
261261

262-
String model_type = api.supportsModernLabelPrinting ? InvenTreeStockLocation().MODEL_TYPE : "stock";
262+
String model_type = api.supportsModernLabelPrinting ? InvenTreeStockItem().MODEL_TYPE : "stock";
263263
String item_key = api.supportsModernLabelPrinting ? "items" : "item";
264264

265265
// Clear the existing labels list

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: inventree
22
description: InvenTree stock management
33

4-
version: 0.16.3+89
4+
version: 0.16.4+90
55

66
environment:
77
sdk: ">=2.19.5 <3.13.0"

0 commit comments

Comments
 (0)