feat(contacts): auto-complete contacts.

feat(items): auto-complete items.
feat(resources): resource columns feat.
feat(contacts): retrieve specific contact details.
This commit is contained in:
a.bouhuolia
2021-03-03 11:35:42 +02:00
parent d51d9a5038
commit ce875ccf4e
37 changed files with 693 additions and 219 deletions

View File

@@ -91,6 +91,11 @@ export default class ItemCategory extends TenantModel {
}],
columnType: 'string',
},
count: {
label: 'Count',
column: 'count',
sortQuery: this.sortCountQuery
},
created_at: {
label: 'Created at',
column: 'created_at',
@@ -98,4 +103,8 @@ export default class ItemCategory extends TenantModel {
},
};
}
static sortCountQuery(query, role) {
query.orderBy('count', role.order);
}
}