Commit 94a9b3dc925b41d3a153e375667b758322a6e960
1 parent
5b52da0751
Exists in
master
Arreglo en validacion de agregar nuevo plazo.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -98,7 +98,7 @@ angular.module('focaModalPrecioCondicion') |
98 | 98 | $scope.addPlazo = function () { |
99 | 99 | if ($scope.plazos.length === 100) return; |
100 | 100 | for (var i = 1; i < $scope.plazos.length; i++) { |
101 | - if ($scope.plazos[0].dias == $scope.plazos[i].dias) { | |
101 | + if ($scope.plazos[0].dias == $scope.plazos[i].dias && $scope.plazos[i].activo == true) { | |
102 | 102 | focaModalService.alert("Ya existe un plazo con este valor"); |
103 | 103 | return; |
104 | 104 | } |