importe funcional sin haber hecho pruebas exaustivas

This commit is contained in:
carlos
2024-06-11 20:46:33 -06:00
25 changed files with 462 additions and 125 deletions
+3 -3
View File
@@ -777,7 +777,7 @@ namespace compabetov2
{
Cuenta ventaModel = new Cuenta(total);
datosCuenta datoCuenta = new datosCuenta(ventaModel, detallesCuenta, this);
datosCuenta datoCuenta = new datosCuenta(ventaModel, detallesCuenta,importes, this);
datoCuenta.Show();
}
@@ -837,7 +837,7 @@ namespace compabetov2
Envio envio = new Envio(-1, DateTime.Now.ToString(), "", "", responsable, "", "", total);
if (detallesEnvio.Count > 0)
{
datosEnvio datosEnvio = new datosEnvio(envio, detallesEnvio, this);
datosEnvio datosEnvio = new datosEnvio(envio, detallesEnvio,importes ,this);
datosEnvio.Show();
}
else
@@ -879,7 +879,7 @@ namespace compabetov2
decimal totalImporte = 0;
foreach(DetalleImporte importe in importes)
{
totalImporte += importe.precioImporte * importe.catidad;
totalImporte += importe.precioImporte * importe.cantidad;
}
total += totalImporte;
label1.Text = $"Total: ${total}";