Example #1
0
        private bool revcant(string idprod, decimal cant)
        {
            int total = DgvProd.Rows.Count;
            int cont, canti = Int32.Parse(cant.ToString());

            for (cont = 0; cont < total; cont++)
            {
                if (DgvProd.Rows[cont].Cells[0].Value.ToString() == idprod)
                {
                    canti += Int32.Parse(DgvProd.Rows[cont].Cells[6].Value.ToString());
                }
            }
            return(prod.exitencias(idprod, canti));
        }