Actualizado a nuevo resource

This commit is contained in:
Alejandro Tasistro 2025-03-17 17:15:08 -03:00
parent c54a0b361f
commit 085d72b4f8
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<template> <template>
<tr> <tr>
<td>{{ pedido.nombre }}</td> <td>{{ pedido.nombre }}</td>
<td v-if="$root.devoluciones" class="has-text-right" >{{ this.$limpiarInt(pedido.total) }}</td> <td v-if="$root.devoluciones" class="has-text-right" >{{ pedido.total }}</td>
<td v-if="$root.devoluciones" class="has-text-right" ><abbr :title="pedido.devoluciones_notas">-{{ pedido.devoluciones_total }}</abbr></td> <td v-if="$root.devoluciones" class="has-text-right" ><abbr :title="pedido.devoluciones_notas">-{{ pedido.devoluciones_total }}</abbr></td>
<td class="has-text-right" >{{ $root.devoluciones ? pedido.total_menos_devoluciones : pedido.total }}</td> <td class="has-text-right" >{{ $root.devoluciones ? pedido.total_menos_devoluciones : pedido.total }}</td>
<td> <td>

View file

@ -73,17 +73,17 @@
if (this.notas_devoluciones.length > 15) { if (this.notas_devoluciones.length > 15) {
this.notas_devoluciones_abbr += "..."; this.notas_devoluciones_abbr += "...";
} }
this.total = this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total); this.total = this.$root.pedido.total;
this.productos = this.$root.productos this.productos = this.$root.productos;
}, },
modificarDevoluciones: function() { modificarDevoluciones: function() {
Event.$emit("modificar-devoluciones"); Event.$emit("modificar-devoluciones");
}, },
cantidadBonosDeTransporte: function() { cantidadBonosDeTransporte: function() {
return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) / 15 return this.$root.pedido.cantidad_transporte;
}, },
totalBonosDeTransporte: function() { totalBonosDeTransporte: function() {
return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) return this.$root.pedido.total_transporte
}, },
}, },
} }

View file

@ -38,7 +38,7 @@ export default {
Event.$emit("toggle-chismosa", this.activa); Event.$emit("toggle-chismosa", this.activa);
}, },
actualizar() { actualizar() {
this.total = this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total); this.total = this.$root.pedido.total;
}, },
}, },
} }