From 88deb88f046d720f09fe52e34baa7ebc76b47494 Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 13 Sep 2025 19:33:09 -0300 Subject: [PATCH] =?UTF-8?q?Agregada=20l=C3=B3gica=20para=20cargar=20pedido?= =?UTF-8?q?=20de=20faltantes=20y=20sobrantes=20del=20barrio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/store/modules/admin/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/js/store/modules/admin/index.ts b/resources/js/store/modules/admin/index.ts index 12b5de6..4dee72d 100644 --- a/resources/js/store/modules/admin/index.ts +++ b/resources/js/store/modules/admin/index.ts @@ -66,7 +66,10 @@ const actions = { commit('toggleCaracteristica', { caracteristica_id: caracteristica_id }) }, async abrirFaltantesYSobrantes({ commit, dispatch }) { + const { data } = await axios.get(`/admin/${state.grupo_de_compra_id}/faltantes-y-sobrantes`) + const pedido = { pedido_id: data.id }; dispatch("productos/init", null, { root: true }); + dispatch("pedido/elegirPedido", pedido, { root: true }); dispatch("ui/toggleFaltantesYSobrantes", null, { root: true }); } };