cambio segun si devoluciones esta activa

This commit is contained in:
Alejandro Tasistro 2024-07-11 18:59:47 -03:00
parent 0c79d3b002
commit 057170118d
2 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
<tr> <tr v-if="this.$root.devoluciones">
<th><p :title="this.$root.pedido.devoluciones_notas">Devoluciones</p></th> <th><p :title="this.$root.pedido.devoluciones_notas">Devoluciones</p></th>
<th class="has-text-right"></th> <th class="has-text-right"></th>
<th class="has-text-right">-{{ this.$root.pedido.devoluciones_total }}</th> <th class="has-text-right">-{{ this.$root.pedido.devoluciones_total }}</th>
@ -62,7 +62,7 @@
return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte)
}, },
total: function() { total: function() {
return this.$limpiarInt(this.$root.pedido.total_menos_devoluciones) return this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total)
} }
}, },
methods: { methods: {

View file

@ -5,7 +5,7 @@
<span class="icon is-small mr-1"> <span class="icon is-small mr-1">
<img src="/assets/chismosa.png"> <img src="/assets/chismosa.png">
</span> </span>
<span v-text="'$' + this.$limpiarInt(this.$root.pedido.total_menos_devoluciones)"></span> <span v-text="'$' + this.$limpiarInt($root.devoluciones ? $root.pedido.total_menos_devoluciones : $root.pedido.total)"></span>
</a> </a>
</div> </div>
<div class="dropdown-menu chismosa-menu" :id="id" role="menu"> <div class="dropdown-menu chismosa-menu" :id="id" role="menu">