From e371b0bf0814b845d4ed71fb89ed8f9dc465a831 Mon Sep 17 00:00:00 2001 From: carlos Date: Sun, 9 Jun 2024 17:16:59 -0600 Subject: [PATCH] mensaje de total en ventas corregido --- Ventas/vender.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ventas/vender.cs b/Ventas/vender.cs index 6ad7f10..490cab5 100644 --- a/Ventas/vender.cs +++ b/Ventas/vender.cs @@ -174,7 +174,7 @@ namespace compabetov2 { contador.Text = (numeroContador - 1).ToString(); total -= producto.precio; - label1.Text = $"Total: ${total} - Importe: $"; + label1.Text = $"Total: ${total}$"; // Obtener información del Label id y precio decimal precioProducto = producto.precio; @@ -215,7 +215,7 @@ namespace compabetov2 int numeroContador = int.Parse(contador.Text.ToString()); contador.Text = (numeroContador + 1).ToString(); total += producto.precio; - label1.Text = $"Total: ${total} - Importe:"; + label1.Text = $"Total: ${total}:"; // Obtener información del Label id y precio int idProducto = int.Parse(id.Text); @@ -854,7 +854,7 @@ namespace compabetov2 c.Dispose(); flowLayoutPanel1.Controls.Remove(c); } - label1.Text = "Total: 0 - Importe: 0"; + label1.Text = "Total: 0"; txtbusqueda.Text = ""; carrito.Clear();