mensaje de total en ventas corregido
This commit is contained in:
+3
-3
@@ -174,7 +174,7 @@ namespace compabetov2
|
|||||||
{
|
{
|
||||||
contador.Text = (numeroContador - 1).ToString();
|
contador.Text = (numeroContador - 1).ToString();
|
||||||
total -= producto.precio;
|
total -= producto.precio;
|
||||||
label1.Text = $"Total: ${total} - Importe: $";
|
label1.Text = $"Total: ${total}$";
|
||||||
|
|
||||||
// Obtener información del Label id y precio
|
// Obtener información del Label id y precio
|
||||||
decimal precioProducto = producto.precio;
|
decimal precioProducto = producto.precio;
|
||||||
@@ -215,7 +215,7 @@ namespace compabetov2
|
|||||||
int numeroContador = int.Parse(contador.Text.ToString());
|
int numeroContador = int.Parse(contador.Text.ToString());
|
||||||
contador.Text = (numeroContador + 1).ToString();
|
contador.Text = (numeroContador + 1).ToString();
|
||||||
total += producto.precio;
|
total += producto.precio;
|
||||||
label1.Text = $"Total: ${total} - Importe:";
|
label1.Text = $"Total: ${total}:";
|
||||||
|
|
||||||
// Obtener información del Label id y precio
|
// Obtener información del Label id y precio
|
||||||
int idProducto = int.Parse(id.Text);
|
int idProducto = int.Parse(id.Text);
|
||||||
@@ -854,7 +854,7 @@ namespace compabetov2
|
|||||||
c.Dispose();
|
c.Dispose();
|
||||||
flowLayoutPanel1.Controls.Remove(c);
|
flowLayoutPanel1.Controls.Remove(c);
|
||||||
}
|
}
|
||||||
label1.Text = "Total: 0 - Importe: 0";
|
label1.Text = "Total: 0";
|
||||||
|
|
||||||
txtbusqueda.Text = "";
|
txtbusqueda.Text = "";
|
||||||
carrito.Clear();
|
carrito.Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user