feat(item_index): add producer basic filter
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-02-03 10:32:59 +01:00
parent 2428e2fc6f
commit 902714ba7d
2 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,7 @@
ng-model="::item.isActive"> ng-model="::item.isActive">
</vn-check> </vn-check>
</td> </td>
<td>{{::item.producer}}</td> <td>{{::item.producer | dashIfEmpty}}</td>
<td shrink-date>{{::item.landed | date:'dd/MM/yyyy'}}</td> <td shrink-date>{{::item.landed | date:'dd/MM/yyyy'}}</td>
<td> <td>
<vn-horizontal class="buttons"> <vn-horizontal class="buttons">

View File

@ -81,6 +81,8 @@ class Controller extends Section {
return {'intr.description': value}; return {'intr.description': value};
case 'name': case 'name':
return {'i.name': {like: `%${value}%`}}; return {'i.name': {like: `%${value}%`}};
case 'producer':
return {'pr.name': {like: `%${value}%`}};
case 'id': case 'id':
case 'size': case 'size':
case 'subname': case 'subname':