mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Display subcategory part count
This commit is contained in:
parent
57ab6546ab
commit
f32c9f024e
@ -14,6 +14,8 @@ class InvenTreePartCategory extends InvenTreeModel {
|
||||
|
||||
String get pathstring => jsondata['pathstring'] ?? '';
|
||||
|
||||
int get partcount => jsondata['parts'] ?? 0;
|
||||
|
||||
InvenTreePartCategory() : super();
|
||||
|
||||
InvenTreePartCategory.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
|
@ -202,6 +202,7 @@ class SubcategoryList extends StatelessWidget {
|
||||
return ListTile(
|
||||
title: Text("${cat.name}"),
|
||||
subtitle: Text("${cat.description}"),
|
||||
trailing: Text("${cat.partcount}"),
|
||||
onTap: () {
|
||||
_openCategory(context, cat.pk);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user