Display supplier part stock (#717)

* Display supplier part stock

* dart format

* Update release notes
This commit is contained in:
Oliver 2025-11-13 23:54:03 +11:00 committed by GitHub
parent ed7d73b9c0
commit 6707f89019
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 2 deletions

View file

@ -225,6 +225,10 @@ class InvenTreeSupplierPart extends InvenTreeModel {
int get partId => getInt("part");
double get inStock => getDouble("in_stock");
double get onOrder => getDouble("on_order");
String get partImage =>
(jsondata["part_detail"]?["thumbnail"] ?? InvenTreeAPI.staticThumb)
as String;