Update templates/relatorio_pdf.html
Browse files- templates/relatorio_pdf.html +67 -70
templates/relatorio_pdf.html
CHANGED
|
@@ -1,81 +1,78 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html lang="pt-
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
.grafico { margin-top: 30px; text-align: center; }
|
| 15 |
-
.small { font-size: 0.9em; color: #666; margin-top: 20px; }
|
| 16 |
-
.bold { font-weight: bold; }
|
| 17 |
-
p { margin-bottom: 14px; }
|
| 18 |
-
</style>
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
<ul>
|
| 26 |
-
<li>Capital Inicial: <strong>R$ {{ "%.2f"|format(capital).replace(".", ",") }}</strong></li>
|
| 27 |
-
<li>Studio - Retorno Mensal: <strong>{{ studio_ret }}%</strong></li>
|
| 28 |
-
<li>Studio - Valorização Anual: <strong>{{ valorizacao }}%</strong></li>
|
| 29 |
-
<li>Franquia - Lucro Anual: <strong>{{ franquia_ret }}%</strong></li>
|
| 30 |
-
<li>Ações - Retorno Anual: <strong>{{ acoes_ret }}%</strong></li>
|
| 31 |
-
<li>Renda Fixa - Retorno Anual: <strong>{{ renda_fixa }}%</strong></li>
|
| 32 |
-
<li>Inflação Anual: <strong>{{ inflacao }}%</strong></li>
|
| 33 |
-
</ul>
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
-
<table class="table">
|
| 41 |
-
<tr>
|
| 42 |
-
<th>Investimento</th>
|
| 43 |
-
<th>Valor Final</th>
|
| 44 |
-
<th>Retorno Absoluto</th>
|
| 45 |
-
<th>Retorno (%)</th>
|
| 46 |
-
</tr>
|
| 47 |
-
{% for item in resumo %}
|
| 48 |
-
<tr>
|
| 49 |
-
<td style="text-align: left;">{{ item['Investimento'] }}</td>
|
| 50 |
-
<td>{{ item['Valor Final'] }}</td>
|
| 51 |
-
<td>{{ item['Retorno Absoluto'] }}</td>
|
| 52 |
-
<td>{{ item['Retorno (%)'] }}</td>
|
| 53 |
-
</tr>
|
| 54 |
-
{% endfor %}
|
| 55 |
-
</table>
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
<
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
<p class="small">Relatório gerado automaticamente.</p>
|
| 80 |
</body>
|
| 81 |
</html>
|
|
|
|
| 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>{{ capital | formatar_brl }}</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>{{ franquia_ret | formatar_brl }}</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 |
+
{% if comentario_extra %}
|
| 34 |
+
<p>{{ comentario_extra | safe }}</p>
|
| 35 |
+
{% endif %}
|
| 36 |
|
| 37 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Projeção" style="width:100%; max-width:800px; margin-top:20px;" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
<h3>Resumo dos Investimentos</h3>
|
| 40 |
+
<table>
|
| 41 |
+
<thead>
|
| 42 |
+
<tr>
|
| 43 |
+
<th>Investimento</th>
|
| 44 |
+
<th>Valor Final</th>
|
| 45 |
+
<th>Retorno Absoluto</th>
|
| 46 |
+
<th>Retorno (%)</th>
|
| 47 |
+
</tr>
|
| 48 |
+
</thead>
|
| 49 |
+
<tbody>
|
| 50 |
+
{% for r in resumo %}
|
| 51 |
+
<tr>
|
| 52 |
+
<td style="text-align:left;">{{ r.Investimento }}</td>
|
| 53 |
+
<td>{{ r["Valor Final"] }}</td>
|
| 54 |
+
<td>{{ r["Retorno Absoluto"] }}</td>
|
| 55 |
+
<td>{{ r["Retorno (%)"] }}</td>
|
| 56 |
+
</tr>
|
| 57 |
+
{% endfor %}
|
| 58 |
+
</tbody>
|
| 59 |
+
</table>
|
| 60 |
|
| 61 |
+
<h2>Considerações Finais</h2>
|
| 62 |
+
<p>
|
| 63 |
+
{{ analise_final | safe }}
|
| 64 |
+
</p>
|
| 65 |
+
{% if comentario_extra %}
|
| 66 |
+
<p>{{ comentario_extra | safe }}</p>
|
| 67 |
+
{% endif %}
|
| 68 |
+
<p>
|
| 69 |
+
O investimento que apresentou o maior retorno neste cenário foi o <strong>{{ investimento_mais_valorizado }}</strong>,
|
| 70 |
+
atingindo um valor patrimonial final estimado em <strong>{{ valor_mais_alto | formatar_brl }}</strong>.
|
| 71 |
+
</p>
|
| 72 |
+
<p>
|
| 73 |
+
<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.
|
| 74 |
+
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.
|
| 75 |
+
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.
|
| 76 |
+
</p>
|
|
|
|
|
|
|
| 77 |
</body>
|
| 78 |
</html>
|