mensaje de total en ventas corregido

This commit is contained in:
carlos
2024-06-09 17:16:59 -06:00
parent b60b721599
commit e371b0bf08
+3 -3
View File
@@ -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();