Commit f9e2a018ecb9b1df844a57844881211f9546c9c4
1 parent
4e40dffdce
Exists in
master
and in
1 other branch
Fix errores.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -134,7 +134,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 134 | 134 | focaModalService.alert('Ingrese Flete'); |
| 135 | 135 | return; |
| 136 | 136 | } else if(!$scope.notaPedido.domicilio.id) { |
| 137 | - focaModalService.aler('Ingrese Domicilio'); | |
| 137 | + focaModalService.alert('Ingrese Domicilio'); | |
| 138 | 138 | return; |
| 139 | 139 | } else if($scope.articulosTabla.length === 0) { |
| 140 | 140 | focaModalService.alert('Debe cargar al menos un articulo'); |
| ... | ... | @@ -311,7 +311,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 311 | 311 | ); |
| 312 | 312 | modalInstanceDomicilio.result.then( |
| 313 | 313 | function(domicilio) { |
| 314 | - $scope.notaPedido.domicilio.id = domicilio.id; | |
| 314 | + $scope.notaPedido.domicilio.id = domicilio.nivel2; | |
| 315 | 315 | $scope.notaPedido.cliente = cliente; |
| 316 | 316 | |
| 317 | 317 | addCabecera('Cliente:', cliente.nom); |