Solucionado problema con el filter
This commit is contained in:
parent
e651619714
commit
b3b874c39d
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue