elimar mensaje de la funcion de actualizarImporteTolal

This commit is contained in:
carlos
2024-06-09 17:04:58 -06:00
parent 7569ef0f5a
commit b0a8fd975e
-3
View File
@@ -876,14 +876,11 @@ namespace compabetov2
public void actualizarImporteTotal() public void actualizarImporteTotal()
{ {
string mensaje = "";
decimal totalImporte = 0; decimal totalImporte = 0;
foreach(DetalleImporte importe in importes) foreach(DetalleImporte importe in importes)
{ {
totalImporte += importe.precioImporte * importe.catidad; totalImporte += importe.precioImporte * importe.catidad;
mensaje += $"importe: {importe.fkImporte} - cantidad: {importe.catidad}\n";
} }
MessageBox.Show(mensaje);
total += totalImporte; total += totalImporte;
label1.Text = $"Total: ${total}"; label1.Text = $"Total: ${total}";
} }