Fluxo de caixa: o IVA das vendas entra na tesouraria e é entregue ao Estado no mês seguinte

Decisão do proprietário de 04/12/2026. Quando o «IVA mensal das vendas
projectadas» está calculado para as vendas actuais (taxa da actividade,
16% ou 5%), o fluxo de caixa do relatório financeiro integral passa a ter
«IVA recebido dos clientes», em proporção das vendas efectivamente
cobradas, e «IVA entregue ao Estado» no mês seguinte ao da facturação, com
a declaração periódica (CIVA, Lei 13/2016, artigos 23(1) e 32(1)(b): até ao
último dia do mês seguinte). O balanço mostra o «IVA a entregar ao Estado»
e o IVA facturado ainda por cobrar fica nos recebíveis; o balanço continua
reconciliado e o resultado não muda, porque o IVA não é receita nem custo.

Sem resultado actual e completo, o IVA não entra e o plano diz o que falta
calcular. O resumo do dossier soma o IVA às cobranças e aos pagamentos para
coincidir com as tabelas. O IVA dedutível nas compras não é considerado.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MzJmxFy3izprXr5dSq91jM
This commit is contained in:
Claude
2026-12-05 06:14:24 +02:00
committed by nala
parent 158c5a761c
commit f9f569d285
7 changed files with 341 additions and 10 deletions
@@ -7,6 +7,7 @@ import {
import type { BusinessFinancialPlanInput } from '@/lib/business-financial-plan';
import {
buildIntegralFinancialTables,
type IntegralVat,
newReportAssumptions,
isReportAssumptions,
} from '@/lib/integral-financial-report';
@@ -24,9 +25,12 @@ import { useState } from 'react';
export function IntegralFinancialPlan({
plan,
onChange,
vat = null,
}: {
plan: BusinessFinancialPlanInput;
onChange: (plan: BusinessFinancialPlanInput) => void;
/** IVA of the sales from the published version, when current; included in the treasury. */
vat?: IntegralVat | null;
}) {
if (plan.reportSource === 'annual_example') {
return (
@@ -324,13 +328,18 @@ export function IntegralFinancialPlan({
</div>
))}
</details>
<p className="text-sm">
{vat
? `O fluxo de caixa inclui o IVA das vendas à taxa de ${vat.ratePercent.replace('.', ',')}% da actividade: recebido com as cobranças e entregue ao Estado no mês seguinte.`
: 'O IVA ainda não está incluído no fluxo de caixa: calcule o «IVA mensal das vendas projectadas» com as vendas actuais (preços sem IVA).'}
</p>
<InvestmentReportTables
tables={buildIntegralFinancialTables(plan)}
tables={buildIntegralFinancialTables(plan, vat)}
/>
<BusinessPlanWarnings
warnings={financialPlanWarnings(
plan,
buildIntegralFinancialTables(plan),
buildIntegralFinancialTables(plan, vat),
)}
/>
</details>
@@ -1,6 +1,7 @@
import { DecimalInput } from '@/components/decimal-input';
import { presentDecimal } from '@/lib/decimal-input';
import { productUnitMargin } from '@/lib/product-margin';
import type { IntegralVat } from '@/lib/integral-financial-report';
import { WarningLimitsEditor } from './warning-limits-editor';
import { SupplierAdvancesEditor } from '@/components/supplier-advances';
import { PeriodInvestmentsEditor } from '@/components/period-investments';
@@ -168,11 +169,13 @@ export function SimulationBusinessPlan({
snapshot,
onCurrencyChange,
onSnapshotChange,
vat = null,
}: {
currency: string;
snapshot?: string;
onCurrencyChange: (value: string) => void;
onSnapshotChange: (snapshot: string) => void;
vat?: IntegralVat | null;
}) {
const hasOversizedStoredSnapshot =
typeof snapshot === 'string' &&
@@ -969,7 +972,7 @@ export function SimulationBusinessPlan({
!forecastErrorShownInReport(plan, startupErrorMessage(plan))
}
/>
<IntegralFinancialPlan plan={plan} onChange={savePlan} />
<IntegralFinancialPlan plan={plan} onChange={savePlan} vat={vat} />
<MarketAnalysisPlan plan={plan} onChange={savePlan} />
<FinancialRatiosPlan plan={plan} onChange={savePlan} />
<div className="my-3 flex flex-wrap items-end gap-3 rounded border p-3">
@@ -1,6 +1,7 @@
import { DecimalInput } from '@/components/decimal-input';
import { focusCorrectionId } from '@/lib/field-corrections';
import { adoptTeamPayroll } from '@/lib/complementary-report';
import { integralVatFromDraft } from '@/lib/monthly-iva';
import FiscalOperationPicker from './fiscal-operation-picker';
import { SimulationIrpcAnnual } from '@/components/simulation-irpc-annual';
import DemographicContext from '@/components/demographic-context';
@@ -3958,6 +3959,7 @@ export function SimulationForm() {
onSnapshotChange={(value) =>
change('business_plan_snapshot', value)
}
vat={integralVatFromDraft(draft)}
/>
</details>
)}
@@ -4303,6 +4305,7 @@ export function SimulationForm() {
onSnapshotChange={(value) =>
change('business_plan_snapshot', value)
}
vat={integralVatFromDraft(draft)}
/>
)}
{current.id === 'review' &&
@@ -4547,6 +4550,7 @@ export function SimulationForm() {
onSnapshotChange={(value) =>
change('business_plan_snapshot', value)
}
vat={integralVatFromDraft(draft)}
/>
</>
)}