Subo cambios en plena produccion11

This commit is contained in:
Michael Robles
2024-02-02 20:55:21 -07:00
parent 6f6be01916
commit 76bc57c080
7 changed files with 8 additions and 4 deletions
Binary file not shown.
+7 -3
View File
@@ -625,7 +625,7 @@ namespace compabetov2
// Configuración de la fuente y del área de impresión // 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); PointF posicion = new PointF(0, e.MarginBounds.Top);
// Imprimir el contenido // Imprimir el contenido
@@ -670,7 +670,8 @@ namespace compabetov2
cadenas = textoLbTotal.Split('$'); cadenas = textoLbTotal.Split('$');
string totalProducto = cadenas[1]; string totalProducto = cadenas[1];
resultado += $"{productoNombre} | ${precioProducto} | {cantidadProducto}\n"; resultado += $"{(productoNombre.Length > 10 ? $"{productoNombre}\n" : $"{productoNombre}")} | ${precioProducto} | {cantidadProducto}\n";
} }
return resultado; return resultado;
@@ -886,11 +887,14 @@ namespace compabetov2
if(detallesEnvio.Count > 0){ if(detallesEnvio.Count > 0){
if (service.crearEnvio(envio, detallesEnvio)) if (service.crearEnvio(envio, detallesEnvio))
{ {
MessageBox.Show("Envio hecho"); MessageBox.Show("Envio hecho");
ImprimirTicketEnvio();
eliminarProductosTocket(); eliminarProductosTocket();
llenarLayout(); llenarLayout();
total=0;
ImprimirTicketEnvio();
} }
else else
{ {
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.