mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Display either serial number or quantity depending on stock properties
This commit is contained in:
parent
5382ded50c
commit
04b09b5591
2 changed files with 21 additions and 7 deletions
|
|
@ -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 = '';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue