Commit 0d3a25224f4d7e27e61e7da0f58a57a47b6380e2

Authored by Eric Fernandez
1 parent 44ab0493f0
Exists in master and in 1 other branch develop

numero comprobante correcto

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
src/js/controller.js
... ... @@ -56,8 +56,8 @@ angular.module('focaCrearRemito') .controller('remitoController',
56 56 $scope.showCabecera = true;
57 57  
58 58 $scope.now = new Date();
59   - $scope.puntoVenta = Math.round(Math.random() * 10000);
60   - $scope.comprobante = Math.round(Math.random() * 1000000);
  59 + $scope.puntoVenta = rellenar(0, 4);
  60 + $scope.comprobante = rellenar(0, 8);
61 61  
62 62 $scope.articulosTabla = [];
63 63 $scope.idLista = undefined;
... ... @@ -73,7 +73,7 @@ angular.module('focaCrearRemito') .controller('remitoController',
73 73 crearRemitoService.getNumeroRemito().then(
74 74 function(res) {
75 75 $scope.puntoVenta = rellenar(res.data.sucursal, 4);
76   - $scope.comprobante = rellenar(res.data.numeroNotaPedido, 8);
  76 + $scope.comprobante = rellenar(res.data.numeroRemito, 8);
77 77 },
78 78 function(err) {
79 79 focaModalService.alert('La terminal no esta configurada correctamente');
... ... @@ -54,7 +54,7 @@ angular.module('focaCrearRemito')
54 54 return $http.post(route + '/estado', {estado: estado});
55 55 },
56 56 getNumeroRemito: function() {
57   - return $http.get(route + '/nota-pedido/numero-siguiente');
  57 + return $http.get(route + '/remito/numero-siguiente');
58 58 }
59 59 };
60 60 }]);