Cambiada logica de devoluciones en chismosa para no mostrar si el pedido no es de un nucleo
This commit is contained in:
parent
88deb88f04
commit
7c368c3d24
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
<th class="has-text-right">{{ cantidad_transporte }}</th>
|
||||
<th class="has-text-right">{{ total_transporte }}</th>
|
||||
</tr>
|
||||
<tr v-if="grupo_de_compra.devoluciones_habilitadas && !aprobado">
|
||||
<tr v-if="mostrarDevoluciones">
|
||||
<th><p>Devoluciones</p></th>
|
||||
<td>
|
||||
<abbr :title="devoluciones_notas">{{ notas_abreviadas }}</abbr>
|
||||
|
@ -49,6 +49,7 @@ import { mapMutations, mapState } from "vuex";
|
|||
export default {
|
||||
components: { ProductoRow },
|
||||
computed: {
|
||||
...mapState('login', ["rol"]),
|
||||
...mapState('pedido',[
|
||||
"grupo_de_compra",
|
||||
"productos",
|
||||
|
@ -65,6 +66,9 @@ export default {
|
|||
mostrar_tabla() {
|
||||
return this.productos?.length !== 0;
|
||||
},
|
||||
mostrarDevoluciones() {
|
||||
return this.rol === "barrio" && this.grupo_de_compra.devoluciones_habilitadas && !this.aprobado;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations('ui',["toggleDevoluciones"]),
|
||||
|
|
Loading…
Add table
Reference in a new issue