浏览代码

13214: Pedido de mesa no se ve el total

ElPoteito 7 月之前
父节点
当前提交
ea7d95d35e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lib/views/pedido_mesa/pedido_mesa_form.dart

+ 5 - 0
lib/views/pedido_mesa/pedido_mesa_form.dart

@@ -93,6 +93,11 @@ class _PedidoMesaFormState extends State<PedidoMesaForm> {
       if (categorias.isNotEmpty) {
         categoriaSeleccionada = categorias.first;
         cargarProductosPorCategoria(categoriaSeleccionada!.id);
+
+        calcularTotalPedido();
+        if (selectedDescuento != null) {
+          _recalcularTotal();
+        }
       }
     });