No se muestra control de devoluciones en pedido aprobado

This commit is contained in:
Alejandro Tasistro 2025-06-18 18:56:56 -03:00
parent 686fcf3bd5
commit fcb2d2c5bc

View file

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