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 deea20904b - Show all commits

View file

@ -96,6 +96,10 @@ const getters = {
}, },
getCaracteristica() { getCaracteristica() {
return (caracteristica) => state[`${caracteristica}_habilitadas`]; return (caracteristica) => state[`${caracteristica}_habilitadas`];
},
cantidadBarrial() {
return (producto_id) =>
state.productos_cantidades.find(pc => pc.id === producto_id)?.cantidad ?? 0;
} }
}; };