mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 12:45:26 +00:00
Display either serial number or quantity depending on stock properties
This commit is contained in:
@ -121,6 +121,8 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
int get locationId => jsondata['location'] as int ?? -1;
|
||||
|
||||
bool isSerialized() => serialNumber != null && quantity.toInt() == 1;
|
||||
|
||||
String get locationName {
|
||||
String loc = '';
|
||||
|
||||
|
Reference in New Issue
Block a user