Example #1
0
        private float ConvertirAlTotal(TestVentaContext db, string codigoOperac)
        {
            ventaLogica = new VentaRepository(db);
            IEnumerable <DetalleVenta> montosubtotal = ventaLogica.ObtenerSubTotal(Convert.ToInt32(codigoOperac));
            float totalDetVen = 0f;

            foreach (var item in montosubtotal)
            {
                totalDetVen += (float)item.SubTotal;
            }
            return(totalDetVen);
        }