Compare commits

...

2 commits

Author SHA1 Message Date
ale
c58824ff52 Cambio de 'pagado' a 'aprobado' 2025-06-18 18:57:20 -03:00
ale
fcb2d2c5bc No se muestra control de devoluciones en pedido aprobado 2025-06-18 18:56:56 -03:00
3 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,7 @@ export default {
return this.getPedido(this.pedido_id).aprobado;
},
mensaje() {
return this.aprobado ? "Pagado" : "No pagado";
return this.aprobado ? "Aprobado" : "No aprobado";
}
},
methods: {

View file

@ -7,7 +7,7 @@
<th v-if="devoluciones_habilitadas"><abbr title="Total sin tomar en cuenta las devoluciones">Total parcial $</abbr></th>
<th v-if="devoluciones_habilitadas"><abbr title="Devoluciones correspondientes al núcleo">Devoluciones $</abbr></th>
<th><abbr title="Total a Pagar por el núleo">{{ devoluciones_habilitadas ? 'Total real' : 'Total' }} $</abbr></th>
<th class="is-1"><abbr title="Pagado">Pagado</abbr></th>
<th class="is-1"><abbr title="Aprobado">Aprobado</abbr></th>
</tr>
</thead>
<tbody>

View file

@ -14,7 +14,7 @@
<th class="has-text-right">{{ cantidad_transporte }}</th>
<th class="has-text-right">{{ total_transporte }}</th>
</tr>
<tr v-if="grupo_de_compra.devoluciones_habilitadas">
<tr v-if="grupo_de_compra.devoluciones_habilitadas && !aprobado">
<th><p>Devoluciones</p></th>
<td>
<abbr :title="devoluciones_notas">{{ notas_abreviadas }}</abbr>
@ -57,6 +57,7 @@ export default {
"cantidad_transporte",
"devoluciones_total",
"devoluciones_notas",
"aprobado"
]),
notas_abreviadas() {
return this.devoluciones_notas.substring(0, 15) + (this.devoluciones_notas.length > 15 ? "..." : "");