diff --git a/src/js/controller.js b/src/js/controller.js index 4415b65..edecf71 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -828,6 +828,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', if (!articulo.cantidad || !articulo.precio || !tmpCantidad || !tmpPrecio) { focaModalService.alert('Los valores deben ser al menos 1'); return; + } else if (tmpCantidad === "0" || tmpPrecio === "0") { + focaModalService.alert('Esta ingresando un producto con valor 0'); } else if (articulo.cantidad < 0 || articulo.precio < 0) { focaModalService.alert('Los valores no pueden ser negativos'); return;