Agregado getter para obtener cantidad total pedida de un producto
This commit is contained in:
parent
a6f726f8a0
commit
deea20904b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue