@@ -370,18 +359,9 @@
if (!data.ok) throw new Error("Token inválido");
const servicesList = data.services || [];
+
currentQuotes = data.quotes || [];
- // 🛑 LÓGICA DEL BANNER: Si NO tiene suscripción activa, se lo enseñamos
- const promoBanner = document.getElementById('promo-banner');
- if (promoBanner) {
- if (data.subscription) {
- promoBanner.classList.add('hidden'); // Ya tiene el plan, lo ocultamos
- } else {
- promoBanner.classList.remove('hidden'); // No tiene el plan, lo mostramos
- }
- }
-
renderPortal(data.client, data.company, servicesList);
renderQuotes();
@@ -512,9 +492,27 @@ if (hasUnseenPending && isAvisosTab) {
statusBadge = `
Rechazado`;
}
-
+ html += `
+
+ ${!isViewed ? '
' : ''}
+
+
+
+
+
+
+
REF #${refStr}
+
${titleStr}
+ ${statusBadge}
+
+
+
+
+ ${dateStr}
+ ${amountStr}€
+
+ ${quickPayButton}
+
`;
});
container.innerHTML = html;