Commit c90c7b52942d51c91ebb8718bc58f5994b97ffcc

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master

See merge request !104
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 {