feat(qa): separate startup resources and trace original example rows
This commit is contained in:
@@ -8,6 +8,7 @@ import { InvestmentReportTables } from './investment-report-tables';
|
||||
import { BusinessPlanWarnings } from './business-plan-warnings';
|
||||
import { financialPlanWarnings } from '@/lib/financial-plan-warnings';
|
||||
import { buildAnnualExampleTables } from '@/lib/annual-example-report';
|
||||
import { StartupAssetRequirements } from './startup-asset-requirements';
|
||||
|
||||
export function IntegralFinancialPlan({
|
||||
plan,
|
||||
@@ -81,6 +82,7 @@ export function IntegralFinancialPlan({
|
||||
em falta permanecem por determinar; indique zero apenas quando
|
||||
aplicável.
|
||||
</p>
|
||||
<StartupAssetRequirements plan={plan} onChange={onChange} />
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<label className="grid gap-1 text-sm">
|
||||
Ano inicial
|
||||
@@ -96,16 +98,18 @@ export function IntegralFinancialPlan({
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
{numeric(
|
||||
'Activos fixos anteriores (valor líquido)',
|
||||
a.openingFixedAssets,
|
||||
(openingFixedAssets) => update({ openingFixedAssets }),
|
||||
)}
|
||||
{numeric(
|
||||
'Outros activos anteriores',
|
||||
a.openingOtherAssets,
|
||||
(openingOtherAssets) => update({ openingOtherAssets }),
|
||||
)}
|
||||
{!plan.startupAssetRequirements &&
|
||||
numeric(
|
||||
'Activos fixos anteriores (valor líquido)',
|
||||
a.openingFixedAssets,
|
||||
(openingFixedAssets) => update({ openingFixedAssets }),
|
||||
)}
|
||||
{!plan.startupAssetRequirements &&
|
||||
numeric(
|
||||
'Outros activos anteriores',
|
||||
a.openingOtherAssets,
|
||||
(openingOtherAssets) => update({ openingOtherAssets }),
|
||||
)}
|
||||
{numeric(
|
||||
'Capital e resultados anteriores',
|
||||
a.openingEquity,
|
||||
|
||||
@@ -25,6 +25,7 @@ import { MarketAnalysisPlan } from '@/components/market-analysis-plan';
|
||||
import { FinancialRatiosPlan } from '@/components/financial-ratios-plan';
|
||||
import { PlanEconomicClassification } from '@/components/plan-economic-classification';
|
||||
import { FinancialPlanDetails } from '@/components/financial-plan-details';
|
||||
import { StartupAssetRequirements } from '@/components/startup-asset-requirements';
|
||||
|
||||
const emptyPlan: BusinessFinancialPlanInput = {
|
||||
currency: '',
|
||||
@@ -945,6 +946,7 @@ export function SimulationBusinessPlan({
|
||||
)}
|
||||
<PlanEconomicClassification plan={plan} onChange={savePlan} />
|
||||
<FinancialPlanDetails plan={plan} onChange={savePlan} />
|
||||
<StartupAssetRequirements plan={plan} onChange={savePlan} />
|
||||
<IntegralFinancialPlan plan={plan} onChange={savePlan} />
|
||||
<MarketAnalysisPlan plan={plan} onChange={savePlan} />
|
||||
<FinancialRatiosPlan plan={plan} onChange={savePlan} />
|
||||
@@ -1084,12 +1086,14 @@ export function SimulationBusinessPlan({
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
<MoneyInput
|
||||
label="Saldo de caixa inicial"
|
||||
value={plan.openingCash}
|
||||
allowNegative
|
||||
onChange={(value) => update('openingCash', value)}
|
||||
/>
|
||||
{!plan.startupAssetRequirements && (
|
||||
<MoneyInput
|
||||
label="Saldo de caixa inicial"
|
||||
value={plan.openingCash}
|
||||
allowNegative
|
||||
onChange={(value) => update('openingCash', value)}
|
||||
/>
|
||||
)}
|
||||
<label className="block text-sm font-medium">
|
||||
Horizonte (meses)
|
||||
<input
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
import type { BusinessFinancialPlanInput } from '@/lib/business-financial-plan';
|
||||
import {
|
||||
calculateStartupAssetRequirements,
|
||||
startupAmount,
|
||||
} from '@/lib/startup-asset-requirements';
|
||||
import { newReportAssumptions } from '@/lib/integral-financial-report';
|
||||
|
||||
export function StartupAssetRequirements({
|
||||
plan,
|
||||
onChange,
|
||||
}: {
|
||||
plan: BusinessFinancialPlanInput;
|
||||
onChange: (plan: BusinessFinancialPlanInput) => void;
|
||||
}) {
|
||||
const a =
|
||||
plan.reportAssumptions ?? newReportAssumptions(plan.periods ?? 12);
|
||||
const target = plan.startupAssetRequirements;
|
||||
let budget:
|
||||
| ReturnType<typeof calculateStartupAssetRequirements>
|
||||
| undefined,
|
||||
error = '';
|
||||
if (target)
|
||||
try {
|
||||
budget = calculateStartupAssetRequirements(plan);
|
||||
} catch (cause) {
|
||||
error =
|
||||
cause instanceof Error
|
||||
? cause.message
|
||||
: 'Confira os dados de arranque.';
|
||||
}
|
||||
const field = (label: string, value: string, save: (s: string) => void) => (
|
||||
<label className="grid gap-1 text-sm">
|
||||
{label}
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
step="0.01"
|
||||
className="min-w-0 rounded border p-2"
|
||||
value={value}
|
||||
onChange={(e) => save(e.target.value)}
|
||||
/>
|
||||
</label>
|
||||
);
|
||||
return (
|
||||
<section
|
||||
className="my-3 space-y-3 rounded border p-3"
|
||||
aria-label="Caixa e activos necessários ao arranque"
|
||||
>
|
||||
{!target ? (
|
||||
<button
|
||||
type="button"
|
||||
className="rounded border px-3 py-2"
|
||||
onClick={() =>
|
||||
onChange({
|
||||
...plan,
|
||||
startupAssetRequirements: {
|
||||
cashRequired: '',
|
||||
otherCurrentAssetsRequired: '',
|
||||
longTermAssetsRequired: '',
|
||||
priorAssetInvestment: plan.assetInvestment,
|
||||
},
|
||||
})
|
||||
}
|
||||
>
|
||||
Distinguir necessidades de arranque dos recursos disponíveis
|
||||
</button>
|
||||
) : target.priorAssetInvestment !== undefined ? (
|
||||
<button
|
||||
type="button"
|
||||
className="rounded border px-3 py-2"
|
||||
onClick={() =>
|
||||
onChange({
|
||||
...plan,
|
||||
assetInvestment: target.priorAssetInvestment!,
|
||||
startupAssetRequirements: undefined,
|
||||
})
|
||||
}
|
||||
>
|
||||
Retirar necessidades e repor investimento anterior (
|
||||
{target.priorAssetInvestment || 'por preencher'}{' '}
|
||||
{plan.currency})
|
||||
</button>
|
||||
) : null}
|
||||
{target && (
|
||||
<>
|
||||
<p>
|
||||
A caixa requerida é a reserva pretendida depois das
|
||||
despesas e aquisições iniciais. A caixa disponível é o
|
||||
saldo declarado antes de novo financiamento. Fontes
|
||||
planeadas não são recebimentos realizados. Os activos
|
||||
disponíveis são os que já existem, na mesma base de
|
||||
valorização declarada.
|
||||
</p>
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
{field(
|
||||
'Caixa requerida após o arranque',
|
||||
target.cashRequired,
|
||||
(value) =>
|
||||
onChange({
|
||||
...plan,
|
||||
startupAssetRequirements: {
|
||||
...target,
|
||||
cashRequired: value,
|
||||
},
|
||||
}),
|
||||
)}
|
||||
{field(
|
||||
'Caixa disponível antes de novo financiamento',
|
||||
plan.openingCash,
|
||||
(value) =>
|
||||
onChange({ ...plan, openingCash: value }),
|
||||
)}
|
||||
{field(
|
||||
'Outros activos correntes requeridos',
|
||||
target.otherCurrentAssetsRequired,
|
||||
(value) =>
|
||||
onChange({
|
||||
...plan,
|
||||
startupAssetRequirements: {
|
||||
...target,
|
||||
otherCurrentAssetsRequired: value,
|
||||
},
|
||||
}),
|
||||
)}
|
||||
{field(
|
||||
'Outros activos correntes disponíveis',
|
||||
a.openingOtherAssets,
|
||||
(value) =>
|
||||
onChange({
|
||||
...plan,
|
||||
reportAssumptions: {
|
||||
...a,
|
||||
openingOtherAssets: value,
|
||||
},
|
||||
}),
|
||||
)}
|
||||
{field(
|
||||
'Activos de longo prazo requeridos',
|
||||
target.longTermAssetsRequired,
|
||||
(value) =>
|
||||
onChange({
|
||||
...plan,
|
||||
startupAssetRequirements: {
|
||||
...target,
|
||||
longTermAssetsRequired: value,
|
||||
},
|
||||
}),
|
||||
)}
|
||||
{field(
|
||||
'Activos de longo prazo disponíveis',
|
||||
a.openingFixedAssets,
|
||||
(value) =>
|
||||
onChange({
|
||||
...plan,
|
||||
reportAssumptions: {
|
||||
...a,
|
||||
openingFixedAssets: value,
|
||||
},
|
||||
}),
|
||||
)}
|
||||
</div>
|
||||
<p>
|
||||
Existências e recebíveis iniciais já planeados conservam
|
||||
os campos próprios e integram os activos correntes, sem
|
||||
serem contados duas vezes. As necessidades são mínimos;
|
||||
não se presumem vendas de activos excedentários. A
|
||||
depreciação mantém a base e a vida útil declaradas.
|
||||
</p>
|
||||
{error && <p role="alert">{error}</p>}
|
||||
{budget && (
|
||||
<>
|
||||
<p>
|
||||
Total de activos requeridos:{' '}
|
||||
{startupAmount(budget.totalRequiredAssets)}{' '}
|
||||
{plan.currency}. Requisitos brutos, incluindo
|
||||
despesas de arranque:{' '}
|
||||
{startupAmount(budget.grossRequirements)}{' '}
|
||||
{plan.currency}. Aquisições adicionais
|
||||
calculadas:{' '}
|
||||
{startupAmount(budget.assetInvestment)}{' '}
|
||||
{plan.currency}.
|
||||
</p>
|
||||
<button
|
||||
type="button"
|
||||
className="rounded border p-2"
|
||||
onClick={() =>
|
||||
onChange({
|
||||
...plan,
|
||||
assetInvestment: startupAmount(
|
||||
budget!.assetInvestment,
|
||||
),
|
||||
})
|
||||
}
|
||||
>
|
||||
Adoptar as aquisições calculadas no cenário
|
||||
</button>
|
||||
<p>
|
||||
A adopção altera apenas o investimento em
|
||||
activos, com repartição entre correntes e longo
|
||||
prazo. Não cria financiamento nem substitui a
|
||||
caixa disponível.
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
// Amounts transcribed from the immutable original PN tables T003, T005, T012 and T013. Never used as balancing entries.
|
||||
export const annualExampleOriginalDetail = {
|
||||
sourceSha256:
|
||||
'4f1e1dbc90c8a4888291201898f306c06e2e687843a754a04a9a8a56f459ab99',
|
||||
sales: [
|
||||
{
|
||||
label: 'Publicidade',
|
||||
annual: ['2137', '3000', '3500'],
|
||||
monthly2025: [
|
||||
'100',
|
||||
'110',
|
||||
'121',
|
||||
'133',
|
||||
'140',
|
||||
'161',
|
||||
'177',
|
||||
'195',
|
||||
'215',
|
||||
'237',
|
||||
'261',
|
||||
'287',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Intermediação Comercial',
|
||||
annual: ['5336', '6000', '6500'],
|
||||
monthly2025: [
|
||||
'250',
|
||||
'275',
|
||||
'302',
|
||||
'332',
|
||||
'365',
|
||||
'402',
|
||||
'442',
|
||||
'486',
|
||||
'535',
|
||||
'588',
|
||||
'647',
|
||||
'712',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Comercialização de Commodities',
|
||||
annual: ['3211', '4000', '4250'],
|
||||
monthly2025: [
|
||||
'150',
|
||||
'165',
|
||||
'182',
|
||||
'200',
|
||||
'220',
|
||||
'242',
|
||||
'266',
|
||||
'293',
|
||||
'322',
|
||||
'354',
|
||||
'389',
|
||||
'428',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Formação',
|
||||
annual: ['201', '250', '275'],
|
||||
monthly2025: [
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'18',
|
||||
'20',
|
||||
'22',
|
||||
'24',
|
||||
'26',
|
||||
],
|
||||
},
|
||||
],
|
||||
costs: [
|
||||
{
|
||||
label: 'Publicidade',
|
||||
annual: ['1595', '2500', '3000'],
|
||||
monthly2025: [
|
||||
'75',
|
||||
'82',
|
||||
'90',
|
||||
'99',
|
||||
'109',
|
||||
'120',
|
||||
'132',
|
||||
'145',
|
||||
'160',
|
||||
'176',
|
||||
'194',
|
||||
'213',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Intermediação Comercial',
|
||||
annual: ['4273', '5500', '6000'],
|
||||
monthly2025: [
|
||||
'200',
|
||||
'220',
|
||||
'242',
|
||||
'266',
|
||||
'293',
|
||||
'322',
|
||||
'354',
|
||||
'389',
|
||||
'428',
|
||||
'471',
|
||||
'518',
|
||||
'570',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Comercialização de Commodities',
|
||||
annual: ['3211', '3750', '4000'],
|
||||
monthly2025: [
|
||||
'150',
|
||||
'165',
|
||||
'182',
|
||||
'200',
|
||||
'220',
|
||||
'242',
|
||||
'266',
|
||||
'293',
|
||||
'322',
|
||||
'354',
|
||||
'389',
|
||||
'428',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Formação',
|
||||
annual: ['139', '450', '475'],
|
||||
monthly2025: [
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'18',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Marketing',
|
||||
annual: ['1077', '1100', '1200'],
|
||||
monthly2025: [
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
],
|
||||
},
|
||||
],
|
||||
departments: [
|
||||
{
|
||||
label: 'DIrecção Comercial',
|
||||
annual: ['300', '400', '400'],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'annual-and-monthly',
|
||||
},
|
||||
{
|
||||
label: 'Direcção de Admin e Finanças',
|
||||
annual: ['300', '400', '400'],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'annual-and-monthly',
|
||||
},
|
||||
{
|
||||
label: 'Serviços',
|
||||
annual: ['300', '400', '400'],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'annual-and-monthly',
|
||||
},
|
||||
{
|
||||
label: 'Marketing',
|
||||
annual: ['300', null, null],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'sum-of-documented-months',
|
||||
},
|
||||
{
|
||||
label: 'Revista Tempo',
|
||||
annual: ['300', null, null],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'sum-of-documented-months',
|
||||
},
|
||||
{
|
||||
label: 'Gsetão de Projectos',
|
||||
annual: ['300', null, null],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'sum-of-documented-months',
|
||||
},
|
||||
{
|
||||
label: 'Gabinete Juridico',
|
||||
annual: ['300', null, null],
|
||||
monthly2025: [
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
'25',
|
||||
],
|
||||
annual2025Origin: 'sum-of-documented-months',
|
||||
},
|
||||
],
|
||||
salesTotals: [
|
||||
'680',
|
||||
'748',
|
||||
'824',
|
||||
'905',
|
||||
'990',
|
||||
'1095',
|
||||
'1203',
|
||||
'1324',
|
||||
'1458',
|
||||
'1604',
|
||||
'1765',
|
||||
'1941',
|
||||
],
|
||||
costTotals: [
|
||||
'586',
|
||||
'644',
|
||||
'710',
|
||||
'781',
|
||||
'860',
|
||||
'945',
|
||||
'1038',
|
||||
'1142',
|
||||
'1257',
|
||||
'1383',
|
||||
'1520',
|
||||
'1672',
|
||||
],
|
||||
people: {
|
||||
annual: ['1', '1', '1'],
|
||||
monthly2025: [
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
],
|
||||
},
|
||||
} as const;
|
||||
@@ -0,0 +1,64 @@
|
||||
import { annualExampleOriginalDetail as source } from './annual-example-original-detail.ts';
|
||||
import type { AnnualReferencePlan } from './business-plan-guidance.ts';
|
||||
import { reportMoney } from './integral-financial-report.ts';
|
||||
|
||||
const cents = (s: string) => {
|
||||
const [a, b = ''] = s.split('.');
|
||||
return BigInt(a) * 100n + BigInt(b.padEnd(2, '0'));
|
||||
};
|
||||
export function reconcileOriginalExample(plan: AnnualReferencePlan) {
|
||||
const sum = (
|
||||
rows: readonly { annual: readonly (string | null)[] }[],
|
||||
year: number,
|
||||
) =>
|
||||
rows.reduce(
|
||||
(n, r) =>
|
||||
n + (r.annual[year] === null ? 0n : cents(r.annual[year]!)),
|
||||
0n,
|
||||
);
|
||||
return {
|
||||
years: plan.years.map((y, i) => ({
|
||||
year: y.year,
|
||||
sales: reportMoney(cents(y.sales)),
|
||||
knownSales: reportMoney(sum(source.sales, i)),
|
||||
salesDifference: reportMoney(cents(y.sales) - sum(source.sales, i)),
|
||||
costs: reportMoney(cents(y.directCosts)),
|
||||
knownCosts: reportMoney(sum(source.costs, i)),
|
||||
costDifference: reportMoney(
|
||||
cents(y.directCosts) - sum(source.costs, i),
|
||||
),
|
||||
payroll: reportMoney(cents(y.payroll)),
|
||||
knownPayroll: reportMoney(sum(source.departments, i)),
|
||||
payrollDifference: reportMoney(
|
||||
cents(y.payroll) - sum(source.departments, i),
|
||||
),
|
||||
missingDepartments: source.departments
|
||||
.filter((r) => r.annual[i] === null)
|
||||
.map((r) => r.label),
|
||||
})),
|
||||
months: source.salesTotals.map((total, i) => {
|
||||
const sales = source.sales.reduce(
|
||||
(n, r) => n + cents(r.monthly2025[i]!),
|
||||
0n,
|
||||
);
|
||||
const costs = source.costs.reduce(
|
||||
(n, r) =>
|
||||
n +
|
||||
(r.monthly2025[i] === null ? 0n : cents(r.monthly2025[i]!)),
|
||||
0n,
|
||||
);
|
||||
return {
|
||||
period: `2025-${String(i + 1).padStart(2, '0')}`,
|
||||
sourceSales: reportMoney(cents(total!)),
|
||||
knownSales: reportMoney(sales),
|
||||
salesDifference: reportMoney(cents(total!) - sales),
|
||||
sourceCosts: reportMoney(cents(source.costTotals[i]!)),
|
||||
knownCosts: reportMoney(costs),
|
||||
costDifference: reportMoney(
|
||||
cents(source.costTotals[i]!) - costs,
|
||||
),
|
||||
};
|
||||
}),
|
||||
needed: 'Vendas por serviço que somem 14.537/21.500/23.875 e custos por serviço que somem 12.538/16.200/18.325; distribuição mensal coerente dessas linhas; remuneração de Marketing, Revista Tempo, Gestão de Projectos e Gabinete Jurídico em 2026 e 2027 (total conjunto ainda por repartir: 1.600 em cada ano). As diferenças são diagnóstico documental, não rubricas financeiras.',
|
||||
};
|
||||
}
|
||||
@@ -10,6 +10,8 @@ import {
|
||||
type InvestmentReportTable,
|
||||
} from './integral-financial-report.ts';
|
||||
import { buildComplementaryTables } from './complementary-report.ts';
|
||||
import { annualExampleOriginalDetail as original } from './annual-example-original-detail.ts';
|
||||
import { reconcileOriginalExample } from './annual-example-reconciliation.ts';
|
||||
|
||||
/** Presentation adapter only: uses the approved annual calculation, never converts it into investor movements. */
|
||||
export function buildAnnualExampleTables(
|
||||
@@ -80,7 +82,15 @@ export function buildAnnualExampleTables(
|
||||
['Capital do investidor', plan.investorCapital],
|
||||
['Empréstimos', plan.loans],
|
||||
['Dinheiro adicional angariado', plan.additionalMoney],
|
||||
['Total de fontes confirmadas', result.availableFunding],
|
||||
[
|
||||
'Financiamento disponível declarado no exemplo',
|
||||
result.availableFunding,
|
||||
],
|
||||
['Caixa requerida (objectivo do cenário)', plan.openingCash],
|
||||
[
|
||||
'Caixa efectivamente disponível antes do financiamento',
|
||||
'Não documentado no exemplo original',
|
||||
],
|
||||
['Financiamento necessário', result.requiredFunding],
|
||||
[
|
||||
'Capital por mobilizar — hipótese, não financiamento confirmado',
|
||||
@@ -283,6 +293,127 @@ export function buildAnnualExampleTables(
|
||||
: undefined,
|
||||
}).map((w) => `Aviso não bloqueante — ${y.year}: ${w.message}`),
|
||||
);
|
||||
type Month = (typeof result.years)[number]['illustrativeMonths'][number];
|
||||
const months = result.years.flatMap((y) => y.illustrativeMonths);
|
||||
const detailedHeaders = [
|
||||
'Rubrica',
|
||||
...result.years.flatMap((y) =>
|
||||
y.illustrativeMonths.map(
|
||||
(m) => `${y.year}-${String(m.month).padStart(2, '0')}`,
|
||||
),
|
||||
),
|
||||
...headers.slice(1),
|
||||
];
|
||||
const expand = (
|
||||
table: InvestmentReportTable,
|
||||
fields: Record<string, (m: Month) => string>,
|
||||
) => {
|
||||
table.headers = detailedHeaders;
|
||||
table.rows = table.rows.map((r) => [
|
||||
r[0],
|
||||
...months.map((m) => fields[r[0]]?.(m) ?? 'Por determinar'),
|
||||
...r.slice(1),
|
||||
]);
|
||||
};
|
||||
expand(sales, {
|
||||
'Vendas totais': (m) => m.sales,
|
||||
'Custo directo': (m) => m.directCosts,
|
||||
});
|
||||
expand(profit, {
|
||||
Vendas: (m) => m.sales,
|
||||
'Custo directo': (m) => m.directCosts,
|
||||
'Margem bruta': (m) => m.grossMargin,
|
||||
'Despesas operacionais': (m) => m.operatingExpenses,
|
||||
'Resultado operacional': (m) => m.operatingProfit,
|
||||
Juros: (m) => m.interest,
|
||||
'Imposto estimado': (m) => m.taxes,
|
||||
'Lucro líquido': (m) => m.netProfit,
|
||||
});
|
||||
expand(cash, {
|
||||
'Caixa recebida': (m) => m.cashReceived,
|
||||
'Caixa gasta': (m) => m.cashSpent,
|
||||
'Fluxo líquido': (m) => m.cashFlow,
|
||||
'Caixa final': (m) => m.closingCash,
|
||||
});
|
||||
expand(balance, {
|
||||
'Caixa líquida': (m) => m.closingCash,
|
||||
'Recebíveis líquidos': (m) => m.receivables,
|
||||
'Outros activos correntes': () => plan.otherCurrentAssets,
|
||||
'Activos fixos líquidos': () => plan.longTermAssets,
|
||||
'Total do activo': (m) => m.closingAssets,
|
||||
'Obrigações operacionais': (m) => m.operatingLiabilities,
|
||||
'Saldo fiscal estimado': (m) => m.vatBalance,
|
||||
'Total do passivo': (m) => m.closingLiabilities,
|
||||
'Capital e resultados': (m) => m.closingCapital,
|
||||
'Diferença do balanço': (m) => m.balanceDifference,
|
||||
});
|
||||
expand(personnel, {
|
||||
'Folha de pagamento agregada': (m) => m.payroll,
|
||||
'Encargos da folha': (m) => m.payrollCharges,
|
||||
});
|
||||
const originalRow = (
|
||||
kind: string,
|
||||
r: {
|
||||
label: string;
|
||||
annual: readonly (string | null)[];
|
||||
monthly2025: readonly (string | null)[];
|
||||
},
|
||||
) => [
|
||||
`${kind} — ${r.label}`,
|
||||
...months.map((_, i) =>
|
||||
i < 12 && r.monthly2025[i] !== null
|
||||
? reportMoney(BigInt(r.monthly2025[i]!) * 100n)
|
||||
: 'Não documentado',
|
||||
),
|
||||
...r.annual.map((v) =>
|
||||
v === null ? 'Não documentado' : reportMoney(BigInt(v) * 100n),
|
||||
),
|
||||
];
|
||||
sales.rows.push(
|
||||
...original.sales.map((r) =>
|
||||
originalRow('Vendas documentadas no original', r),
|
||||
),
|
||||
...original.costs.map((r) =>
|
||||
originalRow('Custo documentado no original', r),
|
||||
),
|
||||
);
|
||||
personnel.rows.push(
|
||||
...original.departments.map((r) =>
|
||||
originalRow('Departamento documentado', r),
|
||||
),
|
||||
);
|
||||
personnel.rows.push([
|
||||
'Trabalhadores documentados (sem inferir pessoas por departamento)',
|
||||
...months.map((_, i) => (i < 12 ? '1' : 'Não documentado')),
|
||||
'1',
|
||||
'1',
|
||||
'1',
|
||||
]);
|
||||
sales.notes = sales.notes.filter(
|
||||
(n) => !n.startsWith('Linhas por serviço'),
|
||||
);
|
||||
personnel.notes = personnel.notes.filter(
|
||||
(n) => !n.startsWith('O original não reconcilia'),
|
||||
);
|
||||
sales.notes.push(
|
||||
'Linhas documentadas reproduzem o original para conferência, não são novas parcelas ou ajustamentos dos totais calculados. As células não documentadas não são zero. Os totais mensais calculados são projecções ilustrativas conciliadas com os anuais.',
|
||||
);
|
||||
personnel.notes.push(
|
||||
'Sete departamentos estão documentados no quadro mensal: 7 × 25 = 175 por mês e 2.100 em 2025. Não são sete trabalhadores: o original declara uma pessoa. As quatro linhas anuais omitidas em 2025 resultam da soma dos meses documentados. Não se presume a repartição de 2026/2027.',
|
||||
);
|
||||
const reconciliation = reconcileOriginalExample(plan);
|
||||
for (const year of reconciliation.years) {
|
||||
sales.notes.push(
|
||||
`${year.year}: a soma das linhas de vendas documentadas é ${year.knownSales}; o total anual do cenário é ${year.sales}; diferença documental ${year.salesDifference}. Custos documentados ${year.knownCosts}, total ${year.costs}, diferença ${year.costDifference}. Estas diferenças não são rubricas financeiras.`,
|
||||
);
|
||||
if (year.missingDepartments.length)
|
||||
personnel.notes.push(
|
||||
`${year.year}: ${year.missingDepartments.join(', ')} não têm remuneração anual documentada; as linhas conhecidas somam ${year.knownPayroll}, para uma folha total de ${year.payroll}. Faltam dados para repartir ${year.payrollDifference}; não é um ajustamento contabilístico.`,
|
||||
);
|
||||
}
|
||||
sales.notes.push(
|
||||
`No primeiro mês original, as linhas de vendas somam ${reconciliation.months[0].knownSales}, mas o total é ${reconciliation.months[0].sourceSales}; os custos documentados somam ${reconciliation.months[0].knownCosts}, para um subtotal de ${reconciliation.months[0].sourceCosts}. Nenhuma linha foi criada para absorver as diferenças.`,
|
||||
);
|
||||
return [
|
||||
startup,
|
||||
market,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { csvCell } from './csv.js';
|
||||
import { calculateStartupAssetRequirements } from './startup-asset-requirements.ts';
|
||||
|
||||
type ProductLine = {
|
||||
label: string;
|
||||
@@ -120,6 +121,12 @@ export type BusinessFinancialPlanInput = {
|
||||
/** Explicit opt-in; saved forecasts without this choice retain their values. */
|
||||
applyAnnualGrowth?: boolean;
|
||||
creditTermDays?: string;
|
||||
startupAssetRequirements?: {
|
||||
cashRequired: string;
|
||||
otherCurrentAssetsRequired: string;
|
||||
longTermAssetsRequired: string;
|
||||
priorAssetInvestment?: string;
|
||||
};
|
||||
dividendsByPeriod?: string[];
|
||||
operatingExpenseLines?: {
|
||||
label: string;
|
||||
@@ -195,19 +202,22 @@ export function serializeBusinessPlanSnapshot(
|
||||
plan: BusinessFinancialPlanInput,
|
||||
): string {
|
||||
const snapshot = JSON.stringify({
|
||||
version: [
|
||||
'applyAnnualGrowth',
|
||||
'creditTermDays',
|
||||
'dividendsByPeriod',
|
||||
'operatingExpenseLines',
|
||||
'fundingBreakdown',
|
||||
'reportSource',
|
||||
].some(
|
||||
(key) =>
|
||||
plan[key as keyof BusinessFinancialPlanInput] !== undefined,
|
||||
)
|
||||
? 18
|
||||
: 17,
|
||||
version: plan.startupAssetRequirements
|
||||
? 19
|
||||
: [
|
||||
'applyAnnualGrowth',
|
||||
'creditTermDays',
|
||||
'dividendsByPeriod',
|
||||
'operatingExpenseLines',
|
||||
'fundingBreakdown',
|
||||
'reportSource',
|
||||
].some(
|
||||
(key) =>
|
||||
plan[key as keyof BusinessFinancialPlanInput] !==
|
||||
undefined,
|
||||
)
|
||||
? 18
|
||||
: 17,
|
||||
plan: {
|
||||
...plan,
|
||||
...(plan.useSupplierPaymentTerms === true
|
||||
@@ -290,7 +300,8 @@ export function restoreBusinessPlanSnapshot(
|
||||
decoded.version !== 15 &&
|
||||
decoded.version !== 16 &&
|
||||
decoded.version !== 17 &&
|
||||
decoded.version !== 18) ||
|
||||
decoded.version !== 18 &&
|
||||
decoded.version !== 19) ||
|
||||
!decoded.plan ||
|
||||
typeof decoded.plan !== 'object'
|
||||
)
|
||||
@@ -310,6 +321,21 @@ export function restoreBusinessPlanSnapshot(
|
||||
return null;
|
||||
const shortText = (v: unknown) =>
|
||||
typeof v === 'string' && v.length <= 160;
|
||||
if (plan.startupAssetRequirements !== undefined) {
|
||||
const r = plan.startupAssetRequirements as Record<string, unknown>;
|
||||
if (
|
||||
decoded.version < 19 ||
|
||||
!r ||
|
||||
![
|
||||
'cashRequired',
|
||||
'otherCurrentAssetsRequired',
|
||||
'longTermAssetsRequired',
|
||||
].every((k) => shortText(r[k])) ||
|
||||
(r.priorAssetInvestment !== undefined &&
|
||||
!shortText(r.priorAssetInvestment))
|
||||
)
|
||||
return null;
|
||||
}
|
||||
if (
|
||||
plan.creditTermDays !== undefined &&
|
||||
!shortText(plan.creditTermDays)
|
||||
@@ -1414,6 +1440,16 @@ export function compareBusinessScenarios(input: BusinessFinancialPlanInput) {
|
||||
|
||||
/** Forecast separates invoiced sales, collections, accounting expenses and cash payments. */
|
||||
export function forecastBusinessPlan(input: BusinessFinancialPlanInput) {
|
||||
if (input.startupAssetRequirements) {
|
||||
const needs = calculateStartupAssetRequirements(input);
|
||||
if (
|
||||
cents(input.assetInvestment, 'Investimento em activos') !==
|
||||
needs.assetInvestment
|
||||
)
|
||||
throw Error(
|
||||
'As aquisições do cenário não correspondem às necessidades de activos. Confira os valores e adopte as aquisições calculadas.',
|
||||
);
|
||||
}
|
||||
if (
|
||||
input.creditTermDays?.trim() &&
|
||||
(!/^\d+$/.test(input.creditTermDays) ||
|
||||
|
||||
@@ -569,12 +569,33 @@ export function calculateAnnualReferencePlan(plan: AnnualReferencePlan) {
|
||||
month: i + 1,
|
||||
sales: decimal(revenue),
|
||||
directCosts: decimal(monthlyCosts[i]),
|
||||
grossMargin: decimal(revenue - monthlyCosts[i]),
|
||||
payroll: decimal(monthlyExpenses[0][i]),
|
||||
payrollCharges: decimal(monthlyExpenses[1][i]),
|
||||
otherOperatingExpenses: decimal(monthlyExpenses[2][i]),
|
||||
operatingExpenses: decimal(
|
||||
monthlyExpenses[0][i] +
|
||||
monthlyExpenses[1][i] +
|
||||
monthlyExpenses[2][i],
|
||||
),
|
||||
operatingProfit: decimal(
|
||||
profit + monthlyExpenses[3][i] + monthlyExpenses[4][i],
|
||||
),
|
||||
interest: decimal(monthlyExpenses[3][i]),
|
||||
taxes: decimal(monthlyExpenses[4][i]),
|
||||
netProfit: decimal(profit),
|
||||
cashReceived: decimal(received),
|
||||
cashSpent: decimal(spent),
|
||||
cashFlow: decimal(received - spent),
|
||||
closingCash: decimal(monthCash),
|
||||
receivables: decimal(monthReceivables),
|
||||
operatingLiabilities: decimal(monthLiabilities),
|
||||
vatBalance: decimal(monthVatBalance),
|
||||
closingAssets: decimal(monthAssets),
|
||||
closingLiabilities: decimal(
|
||||
monthLiabilities + monthVatBalance + money(plan.loans),
|
||||
),
|
||||
closingCapital: decimal(projectedCapital + monthResults),
|
||||
balanceDifference: decimal(
|
||||
monthAssets -
|
||||
monthLiabilities -
|
||||
|
||||
@@ -41,7 +41,11 @@ export function financialPlanWarningMetrics(
|
||||
creditDays: inputCreditDays(plan.creditTermDays),
|
||||
fundingGap:
|
||||
year === 0
|
||||
? read('funding', 'Diferença por financiar', 1)
|
||||
? (read(
|
||||
'funding',
|
||||
'Falta para a reserva requerida (projecção)',
|
||||
1,
|
||||
) ?? read('funding', 'Diferença por financiar', 1))
|
||||
: undefined,
|
||||
netProfit: read('profit-loss', 'Lucro líquido', col),
|
||||
sales,
|
||||
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
monthlyProjectedSales,
|
||||
type BusinessFinancialPlanInput,
|
||||
} from './business-financial-plan.ts';
|
||||
import { calculateStartupAssetRequirements } from './startup-asset-requirements.ts';
|
||||
|
||||
export type InvestmentReportTable = {
|
||||
id: string;
|
||||
@@ -147,8 +148,12 @@ export function buildIntegralFinancialTables(
|
||||
Number(a.startYear) > 9999
|
||||
)
|
||||
throw new Error('Indique o ano inicial do relatório (1900–9999).');
|
||||
const needs = plan.startupAssetRequirements
|
||||
? calculateStartupAssetRequirements(plan)
|
||||
: undefined;
|
||||
const openingFixed = cents(a.openingFixedAssets),
|
||||
otherAssets = cents(a.openingOtherAssets),
|
||||
otherAssets =
|
||||
cents(a.openingOtherAssets) + (needs?.currentAcquisition ?? 0n),
|
||||
openingEquity = cents(a.openingEquity);
|
||||
if (
|
||||
[openingFixed, otherAssets, openingEquity].some(
|
||||
@@ -286,6 +291,72 @@ export function buildIntegralFinancialTables(
|
||||
table('startup').notes.push(
|
||||
'Despesas de arranque reconhecidas e pagas no início. Saldos patrimoniais anteriores não são novas despesas.',
|
||||
);
|
||||
if (needs) {
|
||||
table('startup').headers = [
|
||||
'Rubrica',
|
||||
'Requerido',
|
||||
'Disponível antes de financiamento',
|
||||
];
|
||||
table('startup').rows = [
|
||||
...a.startupExpenses.map((r) => [
|
||||
r.label,
|
||||
reportMoney(cents(r.amount)),
|
||||
'Despesa planeada, não pagamento realizado',
|
||||
]),
|
||||
[
|
||||
'Despesas de arranque',
|
||||
reportMoney(startup),
|
||||
'Por realizar no cenário',
|
||||
],
|
||||
[
|
||||
'Caixa',
|
||||
reportMoney(needs.cashRequired),
|
||||
reportMoney(needs.cashAvailable),
|
||||
],
|
||||
[
|
||||
'Outros activos correntes',
|
||||
reportMoney(needs.currentRequired),
|
||||
reportMoney(needs.currentAvailable),
|
||||
],
|
||||
[
|
||||
'Activos de longo prazo',
|
||||
reportMoney(needs.fixedRequired),
|
||||
reportMoney(needs.fixedAvailable),
|
||||
],
|
||||
[
|
||||
'Total de activos requeridos',
|
||||
reportMoney(needs.totalRequiredAssets),
|
||||
reportMoney(
|
||||
needs.cashAvailable +
|
||||
needs.currentAvailable +
|
||||
needs.fixedAvailable,
|
||||
),
|
||||
],
|
||||
[
|
||||
'Requisitos brutos de arranque',
|
||||
reportMoney(needs.grossRequirements),
|
||||
'Disponibilidade não se presume',
|
||||
],
|
||||
[
|
||||
'Existências/recebíveis iniciais já planeados',
|
||||
reportMoney(needs.currentAlreadyPlanned),
|
||||
'Não são disponibilidade confirmada',
|
||||
],
|
||||
[
|
||||
'Aquisições adicionais correntes',
|
||||
reportMoney(needs.currentAcquisition),
|
||||
'Por adquirir',
|
||||
],
|
||||
[
|
||||
'Aquisições adicionais de longo prazo',
|
||||
reportMoney(needs.fixedAcquisition),
|
||||
'Por adquirir',
|
||||
],
|
||||
];
|
||||
table('startup').notes.push(
|
||||
'Caixa requerida é a reserva desejada após o arranque; caixa disponível é o saldo declarado antes de novo financiamento. Valores disponíveis são declarados, não certificados. Não se presume liquidação de activos excedentários.',
|
||||
);
|
||||
}
|
||||
table('funding').rows = [
|
||||
...(plan.fundingBreakdown
|
||||
? [
|
||||
@@ -323,6 +394,50 @@ export function buildIntegralFinancialTables(
|
||||
),
|
||||
],
|
||||
].map(([label, value]) => [label, reportMoney(cents(value))]);
|
||||
if (needs) {
|
||||
const projectedCash =
|
||||
cents(result.openingCashAfterInitialUses) - startup;
|
||||
const plannedLabels: Record<string, string> = {
|
||||
'Capital introduzido': 'Capital planeado',
|
||||
Suprimentos: 'Suprimentos planeados',
|
||||
Empréstimos: 'Empréstimos planeados',
|
||||
'Subvenções declaradas': 'Subvenções planeadas',
|
||||
'Total de fontes': 'Total de fontes planeadas',
|
||||
};
|
||||
table('funding').rows = table('funding')
|
||||
.rows.filter(
|
||||
(row) => row[0] !== 'Caixa após financiamento e arranque',
|
||||
)
|
||||
.map(([label, value]) => [
|
||||
plannedLabels[label] ?? label,
|
||||
value,
|
||||
]);
|
||||
table('funding').rows.push(
|
||||
[
|
||||
'Requisitos brutos de arranque',
|
||||
reportMoney(needs.grossRequirements),
|
||||
],
|
||||
[
|
||||
'Caixa disponível antes de financiamento',
|
||||
reportMoney(needs.cashAvailable),
|
||||
],
|
||||
[
|
||||
'Reserva de caixa requerida após arranque',
|
||||
reportMoney(needs.cashRequired),
|
||||
],
|
||||
[
|
||||
'Caixa projectada após arranque com fontes planeadas',
|
||||
reportMoney(projectedCash),
|
||||
],
|
||||
[
|
||||
'Falta para a reserva requerida (projecção)',
|
||||
reportMoney(positive(needs.cashRequired - projectedCash)),
|
||||
],
|
||||
);
|
||||
table('funding').notes.push(
|
||||
'Capital, empréstimos e subvenções são fontes planeadas do cenário, não financiamento realizado. A diferença original entre usos e fontes conserva a fórmula aprovada; a falta para a reserva inclui separadamente o objectivo de caixa e a disponibilidade declarada.',
|
||||
);
|
||||
}
|
||||
table('funding').notes.push(
|
||||
'Financiamento insuficiente é aviso não bloqueante. As fontes são pressupostos do plano, não confirmação bancária.',
|
||||
);
|
||||
@@ -353,7 +468,10 @@ export function buildIntegralFinancialTables(
|
||||
principal = 0n;
|
||||
let distributedDividends = 0n;
|
||||
let obligationsKnown = true;
|
||||
const fixed = openingFixed + cents(plan.assetInvestment);
|
||||
const fixed =
|
||||
openingFixed +
|
||||
cents(plan.assetInvestment) -
|
||||
(needs?.currentAcquisition ?? 0n);
|
||||
const loans =
|
||||
cents(plan.bankLoanProceeds) + cents(plan.shareholderLoans);
|
||||
const grantCapital =
|
||||
|
||||
@@ -673,6 +673,7 @@ function makeSections(
|
||||
}));
|
||||
finance.paragraphs = [
|
||||
'Exemplo sintético anual editável, da mesma versão guardada do plano. Não representa dados reais do investidor nem financiamento confirmado. As entradas do investidor permanecem preservadas.',
|
||||
'Aviso não bloqueante — O detalhe original por serviço e departamento contém diferenças documentais ainda não reconciliadas. Os totais calculados usam os anuais aprovados; as linhas originais são identificadas separadamente e não são somadas como ajustamentos. A reprodução integral dos dados originais não está validada.',
|
||||
];
|
||||
try {
|
||||
const example = buildAnnualExampleTables(financialPlan);
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
import type { BusinessFinancialPlanInput } from './business-financial-plan.ts';
|
||||
|
||||
const money = (value: string | undefined, label: string) => {
|
||||
if (!value || !/^\d+(?:\.\d{1,2})?$/.test(value))
|
||||
throw Error(
|
||||
`Indique ${label}, com até duas casas decimais; use zero apenas quando conhecido.`,
|
||||
);
|
||||
const [a, b = ''] = value.split('.');
|
||||
return BigInt(a) * 100n + BigInt(b.padEnd(2, '0'));
|
||||
};
|
||||
const positive = (n: bigint) => (n > 0n ? n : 0n);
|
||||
export const startupAmount = (n: bigint) =>
|
||||
`${n / 100n}.${String(n % 100n).padStart(2, '0')}`;
|
||||
|
||||
/** Requirements are targets; the existing cash equation still uses available opening balances and declared financing. */
|
||||
export function calculateStartupAssetRequirements(
|
||||
plan: BusinessFinancialPlanInput,
|
||||
) {
|
||||
const target = plan.startupAssetRequirements;
|
||||
if (!target)
|
||||
throw Error('Indique as necessidades de caixa e activos do arranque.');
|
||||
const cashRequired = money(target.cashRequired, 'a caixa requerida');
|
||||
const currentRequired = money(
|
||||
target.otherCurrentAssetsRequired,
|
||||
'os activos correntes requeridos',
|
||||
);
|
||||
const fixedRequired = money(
|
||||
target.longTermAssetsRequired,
|
||||
'os activos de longo prazo requeridos',
|
||||
);
|
||||
const cashAvailable = money(
|
||||
plan.openingCash,
|
||||
'a caixa disponível antes do financiamento',
|
||||
);
|
||||
const currentAvailable = money(
|
||||
plan.reportAssumptions?.openingOtherAssets,
|
||||
'os outros activos correntes disponíveis',
|
||||
);
|
||||
const fixedAvailable = money(
|
||||
plan.reportAssumptions?.openingFixedAssets,
|
||||
'os activos de longo prazo disponíveis',
|
||||
);
|
||||
// Inventory and receivables are already initial uses in the approved engine, not acquisitions to count twice.
|
||||
const currentAlreadyPlanned =
|
||||
money(plan.inventory, 'as existências iniciais planeadas') +
|
||||
money(plan.receivables, 'os recebíveis iniciais planeados');
|
||||
const currentAcquisition = positive(
|
||||
currentRequired - currentAvailable - currentAlreadyPlanned,
|
||||
);
|
||||
const fixedAcquisition = positive(fixedRequired - fixedAvailable);
|
||||
const startupExpenses = (
|
||||
plan.reportAssumptions?.startupExpenses ?? []
|
||||
).reduce((sum, r) => sum + money(r.amount, r.label), 0n);
|
||||
return {
|
||||
cashRequired,
|
||||
currentRequired,
|
||||
fixedRequired,
|
||||
cashAvailable,
|
||||
currentAvailable,
|
||||
fixedAvailable,
|
||||
currentAlreadyPlanned,
|
||||
currentAcquisition,
|
||||
fixedAcquisition,
|
||||
assetInvestment: currentAcquisition + fixedAcquisition,
|
||||
totalRequiredAssets: cashRequired + currentRequired + fixedRequired,
|
||||
grossRequirements:
|
||||
startupExpenses + cashRequired + currentRequired + fixedRequired,
|
||||
startupExpenses,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user