diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo index 381416e..d40cc52 100644 Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ diff --git a/Ventas/vender.cs b/Ventas/vender.cs index bfb2a62..5076718 100644 --- a/Ventas/vender.cs +++ b/Ventas/vender.cs @@ -625,7 +625,7 @@ namespace compabetov2 // Configuración de la fuente y del área de impresión - Font fuente = new Font("Arial", 8); // Ajustar el tamaño de fuente según sea necesario + Font fuente = new Font("Arial", 10); // Ajustar el tamaño de fuente según sea necesario PointF posicion = new PointF(0, e.MarginBounds.Top); // Imprimir el contenido @@ -670,8 +670,9 @@ namespace compabetov2 cadenas = textoLbTotal.Split('$'); string totalProducto = cadenas[1]; - resultado += $"{productoNombre} | ${precioProducto} | {cantidadProducto}\n"; - + resultado += $"{(productoNombre.Length > 10 ? $"{productoNombre}\n" : $"{productoNombre}")} | ${precioProducto} | {cantidadProducto}\n"; + + } return resultado; } @@ -886,11 +887,14 @@ namespace compabetov2 if(detallesEnvio.Count > 0){ if (service.crearEnvio(envio, detallesEnvio)) { + MessageBox.Show("Envio hecho"); + ImprimirTicketEnvio(); eliminarProductosTocket(); llenarLayout(); + total=0; - ImprimirTicketEnvio(); + } else { diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 3e90dbe..2dee17c 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 e0e8003..51313f7 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index 62f1481..a5fc486 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index 3e90dbe..2dee17c 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 e0e8003..51313f7 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ