version de produccion, solucion de envios y cuentas. Agregado precio de compra en variantes y signos de pesos en registroVenta

This commit is contained in:
Michael Robles
2024-07-02 15:05:34 -07:00
parent de494fc86d
commit 621c80a3b2
10 changed files with 22 additions and 13 deletions
+7 -2
View File
@@ -63,7 +63,7 @@ namespace compabetov2
lbResponzable.Width = 700;
Label lbTotal = new Label();
lbTotal.Text = $"Total: {venta.total}";
lbTotal.Text = $"Total: ${venta.total}";
lbTotal.Font = new Font(lbTotal.Font.FontFamily, 16);
lbTotal.Width = 700;
@@ -91,7 +91,12 @@ namespace compabetov2
{
mensaje += $"{detalle.producto.nombre} - {detalle.cantidad}\n";
}
mensaje += $"Total: {venta.total}";
decimal totalImporte = 0;
foreach (DetalleImporte importe in ventaYDetalles["importes"]) {
totalImporte += importe.cantidad * importe.precioImporte;
}
mensaje += $"Importe: ${totalImporte}\n";
mensaje += $"Total: ${venta.total}";
MessageBox.Show(mensaje);
});