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