Update templates/relatorio.html
Browse files- templates/relatorio.html +62 -17
templates/relatorio.html
CHANGED
|
@@ -1,30 +1,75 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
-
<meta charset="UTF-8"
|
|
|
|
| 5 |
<style>
|
| 6 |
-
body { font-family: Arial;
|
| 7 |
-
|
| 8 |
-
table { width: 100%; border-collapse: collapse; margin-top: 20px;
|
| 9 |
-
th, td { border: 1px solid #ccc; padding:
|
| 10 |
-
th { background: #
|
| 11 |
-
.destaque { background: #
|
| 12 |
-
img { display: block; margin: 20px auto; width: 80%; }
|
| 13 |
</style>
|
| 14 |
</head>
|
| 15 |
<body>
|
| 16 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
<div class="destaque">
|
| 19 |
-
Investimento com maior retorno: {{ investimento_mais_valorizado }}<br>
|
| 20 |
-
Valor final estimado: R$ {{ "{:,.2f}".format(valor_mais_alto) }}
|
| 21 |
-
</div>
|
| 22 |
|
| 23 |
-
{
|
| 24 |
-
<img src="data:image/png;base64,{{ grafico_base64 }}" alt="Gráfico de Simulação">
|
| 25 |
-
{% endif %}
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
</body>
|
| 29 |
</html>
|
| 30 |
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<title>Relatório de Simulação de Investimentos</title>
|
| 6 |
<style>
|
| 7 |
+
body { font-family: Arial, sans-serif; font-size: 14px; margin: 20px; }
|
| 8 |
+
h2 { color: #2c3e50; }
|
| 9 |
+
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
| 10 |
+
th, td { border: 1px solid #ccc; padding: 6px; text-align: right; }
|
| 11 |
+
th { background-color: #f0f0f0; }
|
| 12 |
+
.destaque { background: #e8f5e9; padding: 10px; margin-top: 20px; border-left: 6px solid #2e7d32; }
|
|
|
|
| 13 |
</style>
|
| 14 |
</head>
|
| 15 |
<body>
|
| 16 |
+
<h2>Relatório de Simulação de Investimentos</h2>
|
| 17 |
+
<p>Data da Simulação: {{ now.strftime('%d/%m/%Y') }}</p>
|
| 18 |
+
<p>Capital Inicial: <strong>{{ formatar_brl(capital) }}</strong></p>
|
| 19 |
+
|
| 20 |
+
<h3>Dados de Entrada</h3>
|
| 21 |
+
<table>
|
| 22 |
+
<tr><th>Parâmetro</th><th>Valor</th></tr>
|
| 23 |
+
<tr><td>Retorno Studio (%)</td><td>{{ studio_ret }}%</td></tr>
|
| 24 |
+
<tr><td>Valorização Studio (%)</td><td>{{ valorizacao }}%</td></tr>
|
| 25 |
+
<tr><td>Retorno Franquia (R$)</td><td>{{ formatar_brl(franquia_ret) }}</td></tr>
|
| 26 |
+
<tr><td>Retorno Ações (%)</td><td>{{ acoes_ret }}%</td></tr>
|
| 27 |
+
<tr><td>Retorno Renda Fixa (%)</td><td>{{ renda_fixa }}%</td></tr>
|
| 28 |
+
<tr><td>Inflação (%)</td><td>{{ inflacao }}%</td></tr>
|
| 29 |
+
</table>
|
| 30 |
|
| 31 |
+
<div class="destaque">{{ analise_final | safe }}</div>
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Projeção" style="width:100%; max-width:800px; margin-top:20px;" />
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
<h3>Resumo dos Investimentos</h3>
|
| 36 |
+
<table>
|
| 37 |
+
<thead>
|
| 38 |
+
<tr>
|
| 39 |
+
<th style="text-align:left;">Investimento</th>
|
| 40 |
+
<th>Valor Final</th>
|
| 41 |
+
<th>Retorno Absoluto</th>
|
| 42 |
+
<th>Retorno (%)</th>
|
| 43 |
+
</tr>
|
| 44 |
+
</thead>
|
| 45 |
+
<tbody>
|
| 46 |
+
{% for r in resumo %}
|
| 47 |
+
<tr>
|
| 48 |
+
<td style="text-align:left;">{{ r.Investimento }}</td>
|
| 49 |
+
<td>{{ r["Valor Final"] }}</td>
|
| 50 |
+
<td>{{ r["Retorno Absoluto"] }}</td>
|
| 51 |
+
<td>{{ r["Retorno (%)"] }}</td>
|
| 52 |
+
</tr>
|
| 53 |
+
{% endfor %}
|
| 54 |
+
</tbody>
|
| 55 |
+
</table>
|
| 56 |
+
|
| 57 |
+
<h2>Considerações Finais</h2>
|
| 58 |
+
<p>
|
| 59 |
+
O investimento que apresentou o maior retorno neste cenário foi o
|
| 60 |
+
<strong>{{ investimento_mais_valorizado }}</strong>, atingindo um valor patrimonial final
|
| 61 |
+
estimado em <strong>{{ formatar_brl(valor_mais_alto) }}</strong>.
|
| 62 |
+
</p>
|
| 63 |
+
<p>
|
| 64 |
+
<strong>Valor Patrimonial</strong> refere-se ao valor total acumulado do investimento, incluindo a valorização do ativo e os rendimentos obtidos ao longo do tempo.
|
| 65 |
+
Conforme as normas contábeis e práticas de avaliação de investidores profissionais, o valor patrimonial é fundamental para mensurar a saúde financeira e o crescimento do patrimônio líquido do investidor.
|
| 66 |
+
Ele serve como indicador da capacidade do investimento de gerar riqueza real, levando em conta tanto a valorização de mercado quanto a geração de renda.
|
| 67 |
+
</p>
|
| 68 |
+
|
| 69 |
+
<p style="margin-top:40px; font-size:12px; color:#888;">
|
| 70 |
+
Relatório gerado pelo sistema em {{ now.strftime('%d/%m/%Y %H:%M') }}
|
| 71 |
+
</p>
|
| 72 |
</body>
|
| 73 |
</html>
|
| 74 |
|
| 75 |
+
|