Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-15 18:56:39 +02:00
parent 1349789226
commit fb076c174f
117 changed files with 10380 additions and 1905 deletions
@@ -49,6 +49,29 @@ export function SimulationIspcQuarter({
},
change = (patch: Partial<IspcQuarterInput>) =>
save({ ...book, input: { ...i, ...patch } });
if (
typeof draft.fiscal_period === 'string' &&
draft.fiscal_period &&
draft.fiscal_period !== i.year
)
return (
<aside className="rounded border p-3" role="alert">
<p>
O ano desta preparação difere do enquadramento fiscal
escolhido. Confira a correspondência antes de calcular;
nenhum período foi alterado automaticamente.
</p>
<button
type="button"
className="underline"
onClick={() =>
change({ year: draft.fiscal_period as string })
}
>
Preparar o ano escolhido, sujeito à cobertura disponível
</button>
</aside>
);
let service = false,
ready = false;
try {