From b3b874c39deb168a664bc34e5ae3ea03bb75280b Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 26 Mar 2018 14:55:10 +0200 Subject: [PATCH] Solucionado problema con el filter --- client/ticket/src/sale/sale.html | 2 +- client/ticket/src/sale/sale.js | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/client/ticket/src/sale/sale.html b/client/ticket/src/sale/sale.html index 5fcee01e4..531819ccf 100644 --- a/client/ticket/src/sale/sale.html +++ b/client/ticket/src/sale/sale.html @@ -1,4 +1,4 @@ - + diff --git a/client/ticket/src/sale/sale.js b/client/ticket/src/sale/sale.js index feaafefbe..ddf0ee7ed 100644 --- a/client/ticket/src/sale/sale.js +++ b/client/ticket/src/sale/sale.js @@ -1,7 +1,17 @@ import ngModule from '../module'; 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', { template: require('./sale.html'), - controller: FilterTicketList + controller: Controller });