2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-12-04 03:09:56 +00:00

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
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;