Commit df6fe070eaa4fe230dab3d70a5e2bdcfc945cb32
1 parent
287af29b09
Exists in
master
and in
1 other branch
obtener sucursal y numero de pedido
Showing
1 changed file
with
8 additions
and
0 deletions
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -73,6 +73,10 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', | 
| 73 | 73 | function(res) { | 
| 74 | 74 | $scope.puntoVenta = rellenar(res.data.sucursal, 4); | 
| 75 | 75 | $scope.comprobante = rellenar(res.data.numeroNotaPedido, 8); | 
| 76 | + }, | |
| 77 | + function(err) { | |
| 78 | + focaModalService.alert('La terminal no esta configurada correctamente'); | |
| 79 | + console.info(err); | |
| 76 | 80 | } | 
| 77 | 81 | ); | 
| 78 | 82 | //La pantalla solo se usa para cargar pedidos | 
| ... | ... | @@ -200,6 +204,10 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', | 
| 200 | 204 | $scope.notaPedido.bomba = null; | 
| 201 | 205 | $scope.notaPedido.kilometros = null; | 
| 202 | 206 | $scope.articulosTabla = []; | 
| 207 | + }, | |
| 208 | + function(error) { | |
| 209 | + focaModalService.alert('Hubo un error al crear la nota de pedido'); | |
| 210 | + console.info(error); | |
| 203 | 211 | } | 
| 204 | 212 | ); | 
| 205 | 213 | }; |