Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user