cr changes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2115ff7fa6
commit
1a641d1d4b
|
@ -11,7 +11,7 @@ describe('supplier consumption() filter', () => {
|
||||||
};
|
};
|
||||||
const result = await app.models.Supplier.consumption(ctx, 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() => {
|
it('should return a list of entries from the item id 1 and supplier 1', async() => {
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
import ngModule from '../module';
|
import ngModule from '../module';
|
||||||
import SearchPanel from 'core/components/searchbar/search-panel';
|
import SearchPanel from 'core/components/searchbar/search-panel';
|
||||||
|
|
||||||
class Controller extends SearchPanel {
|
|
||||||
constructor($, $element) {
|
|
||||||
super($, $element);
|
|
||||||
|
|
||||||
this.filter = this.$.filter;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ngModule.vnComponent('vnSupplierConsumptionSearchPanel', {
|
ngModule.vnComponent('vnSupplierConsumptionSearchPanel', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
controller: Controller
|
controller: SearchPanel
|
||||||
});
|
});
|
||||||
|
|
|
@ -83,7 +83,6 @@
|
||||||
"state": "supplier.card.consumption",
|
"state": "supplier.card.consumption",
|
||||||
"component": "vn-supplier-consumption",
|
"component": "vn-supplier-consumption",
|
||||||
"description": "Consumption",
|
"description": "Consumption",
|
||||||
"acl": ["administrative"],
|
|
||||||
"params": {
|
"params": {
|
||||||
"supplier": "$ctrl.supplier"
|
"supplier": "$ctrl.supplier"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue