Subo cambios en plena produccion11
This commit is contained in:
Binary file not shown.
+7
-3
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user