This commit is contained in:
Lizandro Guarnizo
2026-05-15 09:10:26 -05:00
parent e02a4f2141
commit 715d656b2a
5 changed files with 11 additions and 17 deletions
+2 -4
View File
@@ -1,5 +1,3 @@
{{template "layouts/main" .}}
<div x-data="facturasApp()" x-init="init()" class="p-6">
<div class="flex items-center justify-between mb-6">
@@ -39,7 +37,7 @@
<template x-for="f in items" :key="f.ID">
<tr class="hover:bg-slate-50">
<td class="px-4 py-3 font-mono text-xs text-slate-500" x-text="f.numero||`#${f.ID}`"></td>
<td class="px-4 py-3 text-slate-700" x-text="f.cliente?.razon_social||f.cliente?.nombre||'-'"></td>
<td class="px-4 py-3 text-slate-700" x-text="f.cliente?.empresa||f.cliente?.nombre||'-'"></td>
<td class="px-4 py-3 text-slate-600 max-w-xs truncate" x-text="f.descripcion"></td>
<td class="px-4 py-3 font-semibold text-slate-800" x-text="`${f.moneda} ${Number(f.monto).toLocaleString('es-CO')}`"></td>
<td class="px-4 py-3">
@@ -96,7 +94,7 @@
<select x-model.number="form.cliente_id" class="input-field w-full" required>
<option value="">Seleccionar...</option>
<template x-for="c in clientes" :key="c.ID">
<option :value="c.ID" x-text="c.razon_social||c.nombre"></option>
<option :value="c.ID" x-text="c.empresa||c.nombre"></option>
</template>
</select>
</div>