Solucionado problema con el filter

This commit is contained in:
Gerard 2018-03-26 14:55:10 +02:00
parent e651619714
commit b3b874c39d
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<mg-ajax path="/ticket/api/sales/filter" options="vnIndex"></mg-ajax> <mg-ajax path="/ticket/api/sales/filter" options="vnIndexNonAuto"></mg-ajax>
<vn-vertical> <vn-vertical>
<vn-card pad-large> <vn-card pad-large>
<vn-vertical> <vn-vertical>

View File

@ -1,7 +1,17 @@
import ngModule from '../module'; import ngModule from '../module';
import FilterTicketList from '../filter-ticket-list'; import FilterTicketList from '../filter-ticket-list';
class Controller extends FilterTicketList {
constructor($scope, $timeout, $state) {
super($scope, $timeout, $state);
this.onOrder('quantity', 'ASC');
}
}
Controller.$inject = ['$scope', '$timeout', '$state'];
ngModule.component('vnTicketSale', { ngModule.component('vnTicketSale', {
template: require('./sale.html'), template: require('./sale.html'),
controller: FilterTicketList controller: Controller
}); });