funcion/refactor-general #45

Open
atasistro wants to merge 111 commits from funcion/refactor-general into master
Showing only changes of commit 5468b79562 - Show all commits

View file

@ -48,6 +48,15 @@ const getters = {
pedidoDefinido() {
return state.lastFetch !== null;
},
enChismosa() {
return ((producto_id) => state.productos.some(p => p.id === producto_id));
},
cantidad() {
return ((producto_id) => state.productos.find(p => p.id === producto_id).pivot.cantidad);
},
notas() {
return ((producto_id) => state.productos.find(p => p.id === producto_id).pivot.notas);
}
}
export default {