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
resources/js/components

View file

@ -18,7 +18,7 @@
<th></th>
<th></th>
</tr>
<tr>
<tr v-if="this.$root.devoluciones">
<th><p :title="this.$root.pedido.devoluciones_notas">Devoluciones</p></th>
<th class="has-text-right"></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)
},
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: {

View file

@ -5,7 +5,7 @@
<span class="icon is-small mr-1">
<img src="/assets/chismosa.png">
</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>
</div>
<div class="dropdown-menu chismosa-menu" :id="id" role="menu">