WIP: funcion/faltantes-y-sobrantes #52

Draft
atasistro wants to merge 39 commits from funcion/faltantes-y-sobrantes into master
Showing only changes of commit 88deb88f04 - Show all commits

View file

@ -66,7 +66,10 @@ const actions = {
commit('toggleCaracteristica', { caracteristica_id: caracteristica_id }) commit('toggleCaracteristica', { caracteristica_id: caracteristica_id })
}, },
async abrirFaltantesYSobrantes({ commit, dispatch }) { 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("productos/init", null, { root: true });
dispatch("pedido/elegirPedido", pedido, { root: true });
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true }); dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
} }
}; };