diff --git a/pos/static/js/customers.js b/pos/static/js/customers.js
index fd0943b..34caada 100644
--- a/pos/static/js/customers.js
+++ b/pos/static/js/customers.js
@@ -127,7 +127,12 @@ const Customers = (() => {
if (!tbody) return;
if (!customers || customers.length === 0) {
- tbody.innerHTML = '
| Sin resultados. |
';
+ tbody.innerHTML = '| ' + renderEmptyState({
+ icon: '',
+ title: 'Sin clientes',
+ subtitle: 'No se encontraron clientes registrados.',
+ action: ''
+ }) + ' |
';
return;
}
@@ -137,7 +142,7 @@ const Customers = (() => {
rowHeight: 52,
buffer: 3,
renderRow: renderCustomerRow,
- emptyHtml: '| Sin resultados. |
'
+ emptyHtml: '| ' + renderEmptyState({ title: 'Sin clientes', subtitle: 'No hay clientes registrados.' }) + ' |
'
});
}
customersVS.setData(customers);
@@ -486,7 +491,7 @@ const Customers = (() => {
if (nameEl) nameEl.textContent = currentCustomer.name;
const content = document.getElementById('statementContent');
- if (content) content.innerHTML = 'Cargando...
';
+ if (content) content.innerHTML = '';
modal.classList.add('active');
try {
diff --git a/pos/templates/customers.html b/pos/templates/customers.html
index 4366db7..aa274f2 100644
--- a/pos/templates/customers.html
+++ b/pos/templates/customers.html
@@ -627,7 +627,7 @@
-
+