From bc05faafea3aed75e73d1ae98be7135e894c5df0 Mon Sep 17 00:00:00 2001 From: "ewerton.almeida" Date: Mon, 11 Aug 2025 20:54:47 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20erro=20em=20parametros.htm?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/parametros.html | 60 ++++++++++++++++------------------- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/app/templates/parametros.html b/app/templates/parametros.html index 2a97d55..8ec0ab3 100755 --- a/app/templates/parametros.html +++ b/app/templates/parametros.html @@ -32,7 +32,7 @@
Campos disponíveis:
- {% for campo in campos_fatura %} + {% for campo in (campos_fatura or []) %} {{ campo }} {% endfor %}
@@ -61,37 +61,33 @@

📋 Fórmulas Salvas

-
- {% if - {% for param in lista_parametros %} -
-
- - {{ 'Ativo ✅' if param.ativo else 'Inativo ❌' }} -
- - - -
- -
- - - 🗑️ Excluir -
-
- +
+ {% for param in (formulas or []) %} +
+
+ + {{ 'Ativo ✅' if param.ativo else 'Inativo ❌' }}
- {% else %} -

Nenhuma fórmula cadastrada.

- {% endfor %} -
-
+ +
+ +
+ + + 🗑️ Excluir +
+
+ +
+ {% else %} +

Nenhuma fórmula cadastrada.

+ {% endfor %} +
@@ -106,12 +102,12 @@
-
Última data coletada da SELIC: {{ ultima_data_selic }}
+
Última data coletada da SELIC: {{ ultima_data_selic or '-' }}
- {% for item in selic_dados %} + {% for item in (selic_dados or selic or []) %}
CompetênciaFator
{{ "%02d"|format(item.mes) }}/{{ item.ano }} {{ "%.4f"|format(item.percentual) }}