diff --git a/modules/supplier/back/methods/supplier/specs/consumption.spec.js b/modules/supplier/back/methods/supplier/specs/consumption.spec.js index 2436f485e..0e8f3afcc 100644 --- a/modules/supplier/back/methods/supplier/specs/consumption.spec.js +++ b/modules/supplier/back/methods/supplier/specs/consumption.spec.js @@ -11,7 +11,7 @@ describe('supplier consumption() filter', () => { }; const result = await app.models.Supplier.consumption(ctx, filter); - expect(result.length).toEqual(8); + expect(result.length).toEqual(6); }); it('should return a list of entries from the item id 1 and supplier 1', async() => { diff --git a/modules/supplier/front/consumption-search-panel/index.js b/modules/supplier/front/consumption-search-panel/index.js index 8e636661a..f6c63c55c 100644 --- a/modules/supplier/front/consumption-search-panel/index.js +++ b/modules/supplier/front/consumption-search-panel/index.js @@ -1,15 +1,7 @@ import ngModule from '../module'; import SearchPanel from 'core/components/searchbar/search-panel'; -class Controller extends SearchPanel { - constructor($, $element) { - super($, $element); - - this.filter = this.$.filter; - } -} - ngModule.vnComponent('vnSupplierConsumptionSearchPanel', { template: require('./index.html'), - controller: Controller + controller: SearchPanel }); diff --git a/modules/supplier/front/routes.json b/modules/supplier/front/routes.json index 684895c66..54d203c8c 100644 --- a/modules/supplier/front/routes.json +++ b/modules/supplier/front/routes.json @@ -83,7 +83,6 @@ "state": "supplier.card.consumption", "component": "vn-supplier-consumption", "description": "Consumption", - "acl": ["administrative"], "params": { "supplier": "$ctrl.supplier" }