Update templates/relatorio_pdf.html
Browse files- templates/relatorio_pdf.html +15 -67
templates/relatorio_pdf.html
CHANGED
@@ -1,78 +1,26 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="pt-BR">
|
3 |
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
.destaque { background: #e8f5e9; padding: 10px; margin-top: 20px; border-left: 6px solid #2e7d32; }
|
13 |
-
</style>
|
14 |
</head>
|
15 |
<body>
|
16 |
-
|
17 |
-
|
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 |
-
|
|
|
32 |
|
33 |
-
|
34 |
-
<p>{{ comentario_extra | safe }}</p>
|
35 |
-
{% endif %}
|
36 |
|
37 |
-
|
|
|
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>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="pt-BR">
|
3 |
<head>
|
4 |
+
<meta charset="UTF-8" />
|
5 |
+
<style>
|
6 |
+
body { font-family: DejaVu Sans, sans-serif; }
|
7 |
+
h1, h2, h3 { text-align: center; }
|
8 |
+
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
9 |
+
th, td { border: 1px solid #333; padding: 8px; text-align: center; }
|
10 |
+
img { display: block; margin: 0 auto; max-width: 600px; }
|
11 |
+
</style>
|
|
|
|
|
12 |
</head>
|
13 |
<body>
|
14 |
+
<h1>Relatório de Investimentos</h1>
|
15 |
+
<p>Gerado em {{ now.strftime('%d/%m/%Y %H:%M:%S') }}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
<h2>Análise Final</h2>
|
18 |
+
<p>{{ analise_final|safe }}</p>
|
19 |
|
20 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Investimentos" />
|
|
|
|
|
21 |
|
22 |
+
<h3>Tabela de Valores</h3>
|
23 |
+
{{ tabela|safe }}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</body>
|
26 |
</html>
|