diff --git a/Ventas/vender.cs b/Ventas/vender.cs index 1368c4d..c7e3485 100644 --- a/Ventas/vender.cs +++ b/Ventas/vender.cs @@ -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(':'); diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index f7d6ded..5e88b24 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index d3a1de6..641bfd3 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index dd2dfbe..cac9163 100644 Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index f7d6ded..5e88b24 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index d3a1de6..641bfd3 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ