From 057170118dc8db01857ff07330074213ee7221bb Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 11 Jul 2024 18:59:47 -0300 Subject: [PATCH] cambio segun si devoluciones esta activa --- resources/js/components/Chismosa.vue | 6 +++--- resources/js/components/ChismosaDropdown.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/js/components/Chismosa.vue b/resources/js/components/Chismosa.vue index c34c899..f7dc46e 100644 --- a/resources/js/components/Chismosa.vue +++ b/resources/js/components/Chismosa.vue @@ -18,7 +18,7 @@ - +

Devoluciones

-{{ this.$root.pedido.devoluciones_total }} @@ -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: { @@ -79,4 +79,4 @@ max-width: 80vw; } } - \ No newline at end of file + diff --git a/resources/js/components/ChismosaDropdown.vue b/resources/js/components/ChismosaDropdown.vue index 7bf851e..9e8c834 100644 --- a/resources/js/components/ChismosaDropdown.vue +++ b/resources/js/components/ChismosaDropdown.vue @@ -5,7 +5,7 @@ - +