mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Display serial number for serialized stock
This commit is contained in:
@ -280,6 +280,14 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
bool isSerialized() => serialNumber != null && quantity.toInt() == 1;
|
||||
|
||||
String serialOrQuantityDisplay() {
|
||||
if (isSerialized()) {
|
||||
return 'SN ${serialNumber}';
|
||||
}
|
||||
|
||||
return '${quantity}';
|
||||
}
|
||||
|
||||
String get locationName {
|
||||
String loc = '';
|
||||
|
||||
|
Reference in New Issue
Block a user