Commit af9a503a064c4c44fae72ed2e56604e9d0a75ac3
1 parent
c95a79e985
Exists in
develop
valido crear producto, decimales, negativos y nulos
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -967,6 +967,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 967 | 967 | return; |
| 968 | 968 | } else if (!Number.isInteger($scope.articuloACargar.cantidad)) { |
| 969 | 969 | focaModalService.alert('Debes introducir un número entero'); |
| 970 | + console.log(tmpCantidad); | |
| 970 | 971 | return; |
| 971 | 972 | } |
| 972 | 973 | delete $scope.articuloACargar.sectorCodigo; |
| ... | ... | @@ -1007,6 +1008,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 1007 | 1008 | return; |
| 1008 | 1009 | } else if (!Number.isInteger(tmpCantidad)) { |
| 1009 | 1010 | focaModalService.alert('Debes introducir un número entero'); |
| 1011 | + console.log(tmpCantidad); | |
| 1010 | 1012 | return; |
| 1011 | 1013 | } else { |
| 1012 | 1014 | articulo.cantidad = tmpCantidad; |