mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Display number of items on order
This commit is contained in:
parent
71ef6b3c5a
commit
48d5c2e560
2 changed files with 10 additions and 1 deletions
|
|
@ -215,6 +215,15 @@ class InvenTreePart extends InvenTreeModel {
|
|||
// Get the number of stock on order for this Part
|
||||
double get onOrder => double.tryParse(jsondata['ordering'].toString()) ?? 0;
|
||||
|
||||
String get onOrderString {
|
||||
|
||||
if (onOrder == onOrder.toInt()) {
|
||||
return onOrder.toInt().toString();
|
||||
} else {
|
||||
return onOrder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
// Get the stock count for this Part
|
||||
double get inStock => double.tryParse(jsondata['in_stock'].toString()) ?? 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue