Commit 64c7b4219bedcbe745cd84f271235e3bf04d4fea
1 parent
63a10250d3
Exists in
master
and in
2 other branches
Eliminar alerta en precio - setear id de nota a remito (precio)
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -414,6 +414,9 @@ angular.module('focaCrearRemito').controller('remitoController', |
414 | 414 | }; |
415 | 415 | |
416 | 416 | $scope.seleccionarProductos = function () { |
417 | + if ($scope.notaPedido.id !== 0) { | |
418 | + $scope.idLista = parseInt($scope.notaPedido.idListaPrecio) | |
419 | + } | |
417 | 420 | if ($scope.idLista === undefined) { |
418 | 421 | focaModalService.alert( |
419 | 422 | 'Primero seleccione una lista de precio y condicion'); |
... | ... | @@ -698,18 +701,14 @@ angular.module('focaCrearRemito').controller('remitoController', |
698 | 701 | focaModalService.alert('Primero seleccione un cliente'); |
699 | 702 | return; |
700 | 703 | } |
701 | - | |
702 | 704 | if ($scope.remito.articulosRemito.length !== 0) { |
703 | - focaModalService.confirm('Se perderan los productos ingresados') | |
704 | - .then(function (data) { | |
705 | - if (data && varlidarRemitoFacturado()) { | |
706 | - abrirModal(); | |
707 | - } | |
708 | - }); | |
705 | + if (varlidarRemitoFacturado()) { | |
706 | + abrirModal(); | |
707 | + } | |
709 | 708 | } else { |
710 | 709 | abrirModal(); |
711 | 710 | } |
712 | - | |
711 | + | |
713 | 712 | function abrirModal() { |
714 | 713 | var modalInstance = $uibModal.open( |
715 | 714 | { |