Bladeren bron

Merge branch 'OGdev' into tablet

OscarGil03 6 maanden geleden
bovenliggende
commit
b29635c629

+ 2 - 2
lib/views/pedido/pedido_form.dart

@@ -101,8 +101,8 @@ class _PedidoFormState extends State<PedidoForm> {
     } else {
       // Realiza la búsqueda y desactiva la categoría seleccionada para mostrar productos de todas las categorías.
       setState(() {
-        _estadoBusqueda = true; // Indicamos que hay una búsqueda activa
-        categoriaSeleccionada = null; // Ignoramos la categoría seleccionada
+        _estadoBusqueda = true;
+        categoriaSeleccionada = null;
       });
       Provider.of<ProductoViewModel>(context, listen: false)
           .fetchLocalByName(nombre: value);

+ 8 - 4
lib/views/venta/venta_screen.dart

@@ -208,7 +208,7 @@ class _VentaScreenState extends State<VentaScreen> {
                           Padding(
                             padding: const EdgeInsets.all(16.0),
                             child: Text(
-                              "Total en Tarjeta: \$${formatCurrency(totalTarjetaDelDia)}",
+                              "Tarjeta: \$${formatCurrency(totalTarjetaDelDia)}",
                               style: TextStyle(
                                   fontSize: 20, fontWeight: FontWeight.bold),
                             ),
@@ -217,16 +217,20 @@ class _VentaScreenState extends State<VentaScreen> {
                           Padding(
                             padding: const EdgeInsets.all(16.0),
                             child: Text(
-                              "Total en Transferencia: \$${formatCurrency(totalTransferenciaDelDia)}",
+                              "Transferencia: \$${formatCurrency(totalTransferenciaDelDia)}",
                               style: TextStyle(
                                   fontSize: 20, fontWeight: FontWeight.bold),
                             ),
                           ),
+                      ],
+                    ),
+                    Row(
+                      children: [
                         if (totalEfectivoDelDia > 0)
                           Padding(
                             padding: const EdgeInsets.all(16.0),
                             child: Text(
-                              "Total en Efectivo: \$${formatCurrency(totalEfectivoDelDia)}",
+                              "Efectivo: \$${formatCurrency(totalEfectivoDelDia)}",
                               style: TextStyle(
                                   fontSize: 20, fontWeight: FontWeight.bold),
                             ),
@@ -235,7 +239,7 @@ class _VentaScreenState extends State<VentaScreen> {
                           Padding(
                             padding: const EdgeInsets.all(16.0),
                             child: Text(
-                              "Cambio Entregado: \$${formatCurrency(cambio)}",
+                              "Cambio: \$${formatCurrency(cambio)}",
                               style: TextStyle(
                                   fontSize: 20, fontWeight: FontWeight.bold),
                             ),

+ 5 - 7
lib/views/venta/venta_ticket.dart

@@ -96,24 +96,22 @@ class VentaTicket {
                   crossAxisAlignment: pw.CrossAxisAlignment.start,
                   children: [
                     if (totalTarjeta > 0)
-                      pw.Text("- Total en Tarjeta: \$${formattedTotalTarjeta}",
+                      pw.Text("Tarjeta: \$${formattedTotalTarjeta}",
                           style: pw.TextStyle(
                               fontWeight: pw.FontWeight.bold, fontSize: 9.5)),
                     if (totalTransferencia > 0)
-                      pw.Text(
-                          "- Total en Transferencia: \$${formattedTotalTransferencia}",
+                      pw.Text("Transf: \$${formattedTotalTransferencia}",
                           style: pw.TextStyle(
                               fontWeight: pw.FontWeight.bold, fontSize: 9.5)),
                     if (totalEfectivo > 0)
-                      pw.Text(
-                          "- Total en Efectivo: \$${formattedTotalEfectivo}",
+                      pw.Text("Efectivo: \$${formattedTotalEfectivo}",
                           style: pw.TextStyle(
                               fontWeight: pw.FontWeight.bold, fontSize: 9.5)),
                     if (cambio > 0)
-                      pw.Text("- Cambio Entregado: \$${formattedCambio}",
+                      pw.Text("Cambio: \$${formattedCambio}",
                           style: pw.TextStyle(
                               fontWeight: pw.FontWeight.bold, fontSize: 9.5)),
-                    pw.Text("- Total General: \$${formattedTotalNoCancelados}",
+                    pw.Text("Total: \$${formattedTotalNoCancelados}",
                         style: pw.TextStyle(
                             fontWeight: pw.FontWeight.bold, fontSize: 9.5)),
                     pw.Text("Son: $totalEnLetras Pesos $centavosEnLetras",

+ 1 - 1
lib/widgets/app_drawer.dart

@@ -216,7 +216,7 @@ class _AppDrawerState extends State<AppDrawer> {
               child: Align(
                 alignment: Alignment.bottomCenter,
                 child: Text(
-                  'v1.24.10.04',
+                  'v1.24.10.24',
                   style: TextStyle(fontWeight: FontWeight.w300),
                 ),
               ),