From 085d72b4f88ce25b927c810ab110cc1920e0501b Mon Sep 17 00:00:00 2001 From: ale <ale.tasistro@gmail.com> Date: Mon, 17 Mar 2025 17:15:08 -0300 Subject: [PATCH] Actualizado a nuevo resource --- resources/js/components/admin/FilaPedido.vue | 2 +- resources/js/components/pedidos/Chismosa.vue | 8 ++++---- resources/js/components/pedidos/ChismosaDropdown.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/components/admin/FilaPedido.vue b/resources/js/components/admin/FilaPedido.vue index 70c30e0..0cde589 100644 --- a/resources/js/components/admin/FilaPedido.vue +++ b/resources/js/components/admin/FilaPedido.vue @@ -1,7 +1,7 @@ <template> <tr> <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 class="has-text-right" >{{ $root.devoluciones ? pedido.total_menos_devoluciones : pedido.total }}</td> <td> diff --git a/resources/js/components/pedidos/Chismosa.vue b/resources/js/components/pedidos/Chismosa.vue index f24b2fa..bcab963 100644 --- a/resources/js/components/pedidos/Chismosa.vue +++ b/resources/js/components/pedidos/Chismosa.vue @@ -73,17 +73,17 @@ if (this.notas_devoluciones.length > 15) { this.notas_devoluciones_abbr += "..."; } - this.total = this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total); - this.productos = this.$root.productos + this.total = this.$root.pedido.total; + this.productos = this.$root.productos; }, modificarDevoluciones: function() { Event.$emit("modificar-devoluciones"); }, cantidadBonosDeTransporte: function() { - return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) / 15 + return this.$root.pedido.cantidad_transporte; }, totalBonosDeTransporte: function() { - return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) + return this.$root.pedido.total_transporte }, }, } diff --git a/resources/js/components/pedidos/ChismosaDropdown.vue b/resources/js/components/pedidos/ChismosaDropdown.vue index 26bb8e3..a6fe5de 100644 --- a/resources/js/components/pedidos/ChismosaDropdown.vue +++ b/resources/js/components/pedidos/ChismosaDropdown.vue @@ -38,7 +38,7 @@ export default { Event.$emit("toggle-chismosa", this.activa); }, actualizar() { - this.total = this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total); + this.total = this.$root.pedido.total; }, }, }