2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Remove the button counter

This commit is contained in:
Oliver Walters
2020-04-03 12:24:46 +11:00
parent 3a686b8b7f
commit 2ec662fdef
2 changed files with 14 additions and 44 deletions

View File

@ -11,6 +11,12 @@ class InvenTreeStockItem extends InvenTreeModel {
// TODO
}
String get partName => jsondata['part_name'] as String ?? '';
double get quantity => jsondata['quantity'] as double ?? 0.0;
int get locationId => jsondata['location'] as int ?? -1;
@override
InvenTreeModel createFromJson(Map<String, dynamic> json) {
var item = InvenTreeStockItem.fromJson(json);