Commit 9e1dec3ae514f975ef32ab320de0ce487e389323
1 parent
85936cdd7e
Exists in
master
error en enviar variable idLista
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -20,13 +20,14 @@ angular.module('focaCrearNotaPedido') |
20 | 20 | $scope.notaPedido = notaPedidoTemp; |
21 | 21 | $scope.notaPedido.flete = ($scope.notaPedido.flete).toString(); |
22 | 22 | $scope.notaPedido.bomba = ($scope.notaPedido.bomba).toString(); |
23 | - $scope.notaPedido.precioCondicion = 2; | |
23 | + idLista= $scope.notaPedido.precioCondicion; | |
24 | 24 | |
25 | 25 | } else { |
26 | 26 | $scope.notaPedido.fechaCarga = new Date(); |
27 | 27 | $scope.notaPedido.domicilio = [{ id: 0 }] |
28 | 28 | $scope.notaPedido.bomba = '1'; |
29 | 29 | $scope.notaPedido.flete = '1'; |
30 | + idLista = undefined; | |
30 | 31 | } |
31 | 32 | $scope.addNewDom = function () { |
32 | 33 | $scope.notaPedido.domicilio.push({ 'id': 0 }); |