From 116fa8f4245f9363a0b8b4ad1b332936c381da48 Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 24 Jun 2019 17:43:38 -0300 Subject: [PATCH] Delete editarArticulo --- src/js/controller.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 54327d8..3c80715 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -975,17 +975,7 @@ angular.module('focaCrearRemito').controller('remitoController', $scope.editarArticulo = function (key, articulo, tmpCantidad, tmpPrecio) { if (key === 13) { -<<<<<<< HEAD - var valorAEditar = bandera === 'precio' ? articulo.precio : articulo.cantidad; - var tempValor = bandera === 'precio' ? articulo.tmpPrecio - : articulo.tmpCantidad; - if (tempValor === undefined) { - return; - } - if (tempValor === '') { -======= if (!articulo.cantidad || !articulo.precio || !tmpCantidad || !tmpPrecio) { ->>>>>>> parent of 60be8ea... Arreglo alerta al editar campos del producto focaModalService.alert('Los valores deben ser al menos 1'); return; } else if (tmpCantidad === "0" || tmpPrecio === "0") { -- 1.9.1