Skip to content

Commit

Permalink
Label fix (#533)
Browse files Browse the repository at this point in the history
* Bug fix for stock item label printing

- Simple typo
- Closes #531

* Update version
  • Loading branch information
SchrodingersGat committed Sep 13, 2024
1 parent 51ae10a commit 31cda08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.16.4 - September 2024
---

- Fixes bug related to printing stock item labels

### 0.16.3 - August 2024
---

Expand Down
2 changes: 1 addition & 1 deletion lib/widget/stock/stock_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
// Request information on labels available for this stock item
if (allowLabelPrinting) {

String model_type = api.supportsModernLabelPrinting ? InvenTreeStockLocation().MODEL_TYPE : "stock";
String model_type = api.supportsModernLabelPrinting ? InvenTreeStockItem().MODEL_TYPE : "stock";
String item_key = api.supportsModernLabelPrinting ? "items" : "item";

// Clear the existing labels list
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: inventree
description: InvenTree stock management

version: 0.16.3+89
version: 0.16.4+90

environment:
sdk: ">=2.19.5 <3.13.0"
Expand Down

0 comments on commit 31cda08

Please sign in to comment.