Commit 241cae264bb969fe45b2c57a9256061423c1b1f1
1 parent
95869a524d
Exists in
master
order by fecha
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -289,7 +289,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
289 | 289 | { label: 'Cliente' })[0].checked = true; |
290 | 290 | |
291 | 291 | $scope.$broadcast('addCabecera', { |
292 | - label: 'Tipo de pago: ', | |
292 | + label: 'Forma de pago: ', | |
293 | 293 | valor: data.tipo |
294 | 294 | }); |
295 | 295 | }) |
src/js/controllerCombustibles.js
... | ... | @@ -39,9 +39,13 @@ angular.module('focaCrearFactura') |
39 | 39 | |
40 | 40 | $scope.mangueras = productosByMangera; |
41 | 41 | |
42 | - $scope.mangera.despachos.sort(function (a, b) { | |
43 | - return a.FEC - b.FEC; | |
42 | + $scope.mangueras.forEach(function (producto) { | |
43 | + | |
44 | + producto.despachos.sort(function (a, b) { | |
45 | + return a.FEC - b.FEC; | |
46 | + }); | |
44 | 47 | }); |
48 | + | |
45 | 49 | |
46 | 50 | $scope.aceptar = function (despacho) { |
47 | 51 | $uibModalInstance.close(despacho); |