Bajo cambios

This commit is contained in:
Michael Robles
2024-06-30 09:39:07 -07:00
parent 384126d4e6
commit 56c2230938
6 changed files with 12 additions and 0 deletions
+12
View File
@@ -613,6 +613,15 @@ namespace compabetov2
private void ImprimirContenido(PrintPageEventArgs e)
{
decimal totalimporte = 0;
foreach (DetalleImporte importe in importes)
{
if (importe.cantidad!=0) {
totalimporte += importe.cantidad * importe.precioImporte;
}
}
string responsable = responsablecb.SelectedItem.ToString();
// Contenido que deseas imprimir
string contenido = " Mini Súper\n" +
@@ -632,6 +641,8 @@ namespace compabetov2
contenido += $"------------------------------------\n" +
$" Total: ${total}\n" +
"------------------------------------\n" +
$" Importe: {totalimporte}\n " +
" Mini Súper\n" +
" Compa BETO\n" +
" ¡Gracias por su compra!";
@@ -681,6 +692,7 @@ namespace compabetov2
Label lbPrecio = panelInfo.Controls[1] as Label;
Label Lbcantidad = panelInfo.Controls[2] as Label;
Label Lbtotal = panelInfo.Controls[3] as Label;
//nombre producto
string textoLbnombre = lbnombre.Text;
string[] cadenas = textoLbnombre.Split(':');