fix: remove all hardcoded demo data from summary cards

Replaced hardcoded values (4,817 SKUs, $2.4M, 1,284 clients, $842,190
invoiced, $2,847,320 assets, etc.) with $0 / 0 placeholders with IDs
so the JS can populate them from real API data.

Affected: inventory.html, customers.html, invoicing.html, accounting.html

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-18 06:44:51 +00:00
parent bf1473d6bd
commit 787d24fe71
113 changed files with 883 additions and 41 deletions

View File

@@ -1776,11 +1776,8 @@
</svg>
</div>
<div class="summary-card__label">Total Clientes</div>
<div class="summary-card__value">1,284</div>
<div class="summary-card__delta">
<svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9V3M3 6l3-3 3 3"/></svg>
+18 este mes
</div>
<div class="summary-card__value" id="cust-total">0</div>
<div class="summary-card__sub">Registrados</div>
</div>
<div class="summary-card">
@@ -1791,11 +1788,8 @@
</svg>
</div>
<div class="summary-card__label">Clientes Activos</div>
<div class="summary-card__value">1,047</div>
<div class="summary-card__delta">
<svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9V3M3 6l3-3 3 3"/></svg>
81.5% del total
</div>
<div class="summary-card__value" id="cust-active">0</div>
<div class="summary-card__sub">Con compras recientes</div>
</div>
<div class="summary-card">
@@ -1806,12 +1800,9 @@
<path d="M5.75 6.5c0-.83.67-1.5 1.5-1.5h1c.83 0 1.5.67 1.5 1.5S9.08 8 8 8s-2 .67-2 1.5.67 1.5 1.5 1.5h1.5c.83 0 1.5-.67 1.5-1.5"/>
</svg>
</div>
<div class="summary-card__label">Crédito Total Otorgado</div>
<div class="summary-card__value">$4.2M</div>
<div class="summary-card__delta">
<svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9V3M3 6l3-3 3 3"/></svg>
+$320K vs mes anterior
</div>
<div class="summary-card__label">Crédito Otorgado</div>
<div class="summary-card__value" id="cust-credit">$0</div>
<div class="summary-card__sub">Total en créditos activos</div>
</div>
<div class="summary-card">
@@ -1822,11 +1813,8 @@
</svg>
</div>
<div class="summary-card__label">Cuentas por Cobrar</div>
<div class="summary-card__value" style="color: var(--color-error);">$847K</div>
<div class="summary-card__delta neg">
<svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 3v6M3 6l3 3 3-3"/></svg>
+$65K vs mes anterior
</div>
<div class="summary-card__value" id="cust-receivable" style="color: var(--color-error);">$0</div>
<div class="summary-card__sub">Saldo pendiente</div>
</div>
</div>