+
+ Relatório financeiro integral — dados do investimento
+
+
+ Utiliza as vendas, custos e agendas do plano financeiro. Não
+ utiliza o cenário sintético. Todos os montantes são projecções
+ declaradas em {plan.currency || 'moeda por seleccionar'}. Campos
+ em falta permanecem por determinar; indique zero apenas quando
+ aplicável.
+
+
+
+ Ano inicial
+
+ update({ startYear: event.target.value })
+ }
+ />
+
+ {numeric(
+ 'Activos fixos anteriores (valor líquido)',
+ a.openingFixedAssets,
+ (openingFixedAssets) => update({ openingFixedAssets }),
+ )}
+ {numeric(
+ 'Outros activos anteriores',
+ a.openingOtherAssets,
+ (openingOtherAssets) => update({ openingOtherAssets }),
+ )}
+ {numeric(
+ 'Capital e resultados anteriores',
+ a.openingEquity,
+ (openingEquity) => update({ openingEquity }),
+ )}
+
+ Tratamento das subvenções
+
+ update({
+ grantsTreatment: event.target
+ .value as typeof a.grantsTreatment,
+ })
+ }
+ >
+ Por indicar / sem subvenção
+ Capital
+ Passivo diferido
+
+
+
+ Natureza dos recebimentos manuais
+
+ update({
+ manualCollectionsKind: event.target
+ .value as typeof a.manualCollectionsKind,
+ })
+ }
+ >
+ Por indicar / sem montante
+ Cobranças de vendas
+
+ Outras receitas reconhecidas e recebidas
+
+
+
+
+
+
+ Despesas de arranque — reconhecidas e pagas na abertura
+
+ {a.startupExpenses.map((row, index) => (
+
+
+ Despesa {index + 1}
+
+ update({
+ startupExpenses: a.startupExpenses.map(
+ (entry, i) =>
+ i === index
+ ? {
+ ...entry,
+ label: event.target
+ .value,
+ }
+ : entry,
+ ),
+ })
+ }
+ />
+
+ {numeric(
+ `Montante de arranque ${index + 1}`,
+ row.amount,
+ (amount) =>
+ update({
+ startupExpenses: a.startupExpenses.map(
+ (entry, i) =>
+ i === index
+ ? { ...entry, amount }
+ : entry,
+ ),
+ }),
+ )}
+
+ update({
+ startupExpenses: a.startupExpenses.filter(
+ (_, i) => i !== index,
+ ),
+ })
+ }
+ >
+ Remover despesa
+
+
+ ))}
+ = 40}
+ onClick={() =>
+ update({
+ startupExpenses: [
+ ...a.startupExpenses,
+ { label: '', amount: '' },
+ ],
+ })
+ }
+ >
+ Adicionar despesa de arranque
+
+
+
+ Os saldos anteriores têm de reconciliar entre si. Não inclua os
+ novos activos no saldo anterior, nem os novos capitais nos
+ resultados anteriores.
+
+
+ Despesas de arranque (reconhecidas e pagas na abertura)
+
+ {a.startupExpenses.map((row, index) => (
+
+
+ Despesa
+
+ update({
+ startupExpenses: a.startupExpenses.map(
+ (entry, i) =>
+ i === index
+ ? {
+ ...entry,
+ label: event.target.value,
+ }
+ : entry,
+ ),
+ })
+ }
+ />
+
+ {numeric('Montante de arranque', row.amount, (amount) =>
+ update({
+ startupExpenses: a.startupExpenses.map(
+ (entry, i) =>
+ i === index ? { ...entry, amount } : entry,
+ ),
+ }),
+ )}
+
+ update({
+ startupExpenses: a.startupExpenses.filter(
+ (_, i) => i !== index,
+ ),
+ })
+ }
+ >
+ Remover despesa
+
+
+ ))}
+ = 40}
+ onClick={() =>
+ update({
+ startupExpenses: [
+ ...a.startupExpenses,
+ { label: '', amount: '' },
+ ],
+ })
+ }
+ >
+ Adicionar despesa de arranque
+
+
+ Sem linhas significa que não declarou despesas de arranque; para
+ confirmar a inexistência, registe uma linha «Sem despesas de
+ arranque» com zero.
+
+
+ Fonte ou pressuposto dos impostos estimados
+
+ update({ taxSource: event.target.value })
+ }
+ />
+
+
+ Impostos por mês — estimativa e tesouraria
+
+ Não activa taxas fiscais nem certifica pagamentos. Preencha
+ cada mês, incluindo zero declarado.
+
+ {Array.from({ length: plan.periods ?? 12 }, (_, index) => (
+
+ {numeric(
+ `Imposto reconhecido — mês ${index + 1}`,
+ a.taxExpenseByMonth[index] ?? '',
+ (value) =>
+ update({
+ taxExpenseByMonth: Array.from(
+ { length: plan.periods ?? 12 },
+ (_, i) =>
+ i === index
+ ? value
+ : (a.taxExpenseByMonth[i] ??
+ ''),
+ ),
+ }),
+ )}
+ {numeric(
+ `Pagamento fiscal previsto — mês ${index + 1}`,
+ a.taxPaymentByMonth[index] ?? '',
+ (value) =>
+ update({
+ taxPaymentByMonth: Array.from(
+ { length: plan.periods ?? 12 },
+ (_, i) =>
+ i === index
+ ? value
+ : (a.taxPaymentByMonth[i] ??
+ ''),
+ ),
+ }),
+ )}
+
+ ))}
+
+
+
+ );
+}
diff --git a/resources/js/components/investment-report-tables.tsx b/resources/js/components/investment-report-tables.tsx
new file mode 100644
index 00000000..4f6265ff
--- /dev/null
+++ b/resources/js/components/investment-report-tables.tsx
@@ -0,0 +1,83 @@
+import {
+ displayReportMoney,
+ type InvestmentReportTable,
+} from '@/lib/integral-financial-report';
+
+export function InvestmentReportTables({
+ tables,
+}: {
+ tables: InvestmentReportTable[];
+}) {
+ return (
+