forked from nathalie/pedi2
Actualizado a nuevo resource
This commit is contained in:
parent
c54a0b361f
commit
085d72b4f8
3 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue