mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Add snackbar with icon
- stock adjust - part edit - location edit
This commit is contained in:
@ -323,6 +323,15 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
double get quantity => double.tryParse(jsondata['quantity'].toString() ?? '0');
|
||||
|
||||
String get quantityString {
|
||||
|
||||
if (quantity.toInt() == quantity) {
|
||||
return quantity.toInt().toString();
|
||||
} else {
|
||||
return quantity.toString();
|
||||
}
|
||||
}
|
||||
|
||||
int get locationId => jsondata['location'] as int ?? -1;
|
||||
|
||||
bool isSerialized() => serialNumber != null && quantity.toInt() == 1;
|
||||
|
Reference in New Issue
Block a user