Commit 9df7ed27c60eab1e0bc913721bac727a1fa371c6

Authored by Luigi
1 parent d1640d9de7
Exists in master

Arreglo de alerta al editar valores producto

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -828,6 +828,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
828 828 if (!articulo.cantidad || !articulo.precio || !tmpCantidad || !tmpPrecio) {
829 829 focaModalService.alert('Los valores deben ser al menos 1');
830 830 return;
  831 + } else if (tmpCantidad === "0" || tmpPrecio === "0") {
  832 + focaModalService.alert('Esta ingresando un producto con valor 0');
831 833 } else if (articulo.cantidad < 0 || articulo.precio < 0) {
832 834 focaModalService.alert('Los valores no pueden ser negativos');
833 835 return;