Clarify viability simulation purpose and preserve PEC cash-flow hypotheses
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {SimulationIrpcPecPlan} from './simulation-irpc-pec-plan';
|
||||
import {
|
||||
newPecObligation,
|
||||
calculatePecObligation,
|
||||
@@ -17,7 +18,7 @@ export function SimulationIrpcPecObligation({
|
||||
if (!p)
|
||||
return (
|
||||
<section className="rounded border p-3">
|
||||
<h5>Obrigação PEC</h5>
|
||||
<h5>Estimativa PEC</h5>
|
||||
<p>
|
||||
Preparar o total e os meses previstos conserva os
|
||||
comprovativos pagos em separado.
|
||||
@@ -28,7 +29,7 @@ export function SimulationIrpcPecObligation({
|
||||
onChange(newPecObligation(book.subjectNuit, book.year))
|
||||
}
|
||||
>
|
||||
Preparar obrigação PEC
|
||||
Simular PEC
|
||||
</button>
|
||||
</section>
|
||||
);
|
||||
@@ -41,7 +42,7 @@ export function SimulationIrpcPecObligation({
|
||||
patch = (changes: Partial<PecObligation>) =>
|
||||
onChange({ ...p, ...changes });
|
||||
const field = (
|
||||
key: Exclude<keyof PecObligation, 'version' | 'scope'>,
|
||||
key: Exclude<keyof PecObligation, 'version' | 'scope' | 'plan'>,
|
||||
label: string,
|
||||
) => (
|
||||
<label className="block">
|
||||
@@ -55,10 +56,10 @@ export function SimulationIrpcPecObligation({
|
||||
);
|
||||
return (
|
||||
<section
|
||||
aria-label="Preparação da obrigação PEC"
|
||||
aria-label="Preparação da estimativa PEC"
|
||||
className="rounded border p-3"
|
||||
>
|
||||
<h5>Obrigação PEC — preparação</h5>
|
||||
<h5>Estimativa PEC — preparação</h5>
|
||||
<label className="block">
|
||||
Enquadramento PEC
|
||||
<select
|
||||
@@ -82,8 +83,8 @@ export function SimulationIrpcPecObligation({
|
||||
</label>
|
||||
{p.scope === 'ordinary_resident' && (
|
||||
<>
|
||||
{field('subjectNuit', 'NUIT — obrigação PEC')}
|
||||
{field('year', 'Exercício — obrigação PEC')}
|
||||
{field('subjectNuit', 'NUIT — estimativa PEC')}
|
||||
{field('year', 'Exercício — estimativa PEC')}
|
||||
{field(
|
||||
'activityStartYear',
|
||||
'Ano de início efectivo da actividade — PEC',
|
||||
@@ -122,7 +123,7 @@ export function SimulationIrpcPecObligation({
|
||||
) : (
|
||||
<>
|
||||
<p>
|
||||
Obrigação total:{' '}
|
||||
Total estimado:{' '}
|
||||
{fractionPresentation(m.total!).decimal} MZN.
|
||||
</p>
|
||||
<ul>
|
||||
@@ -130,13 +131,10 @@ export function SimulationIrpcPecObligation({
|
||||
<li key={month}>{month}</li>
|
||||
))}
|
||||
</ul>
|
||||
<p>
|
||||
Repartição por prestação e opção de pagamento único por
|
||||
preparar; não se presume dia limite nem arredondamento
|
||||
do PPC para o PEC.
|
||||
</p>
|
||||
|
||||
</>
|
||||
)}
|
||||
<SimulationIrpcPecPlan plan={p.plan} total={m.total} notApplicable={m.notApplicable} year={book.year} onChange={plan=>patch({plan})}/>
|
||||
<p>
|
||||
Guardar o rascunho conserva esta preparação. Calcular o fecho
|
||||
anual inclui-a no relatório. Não regista pagamentos,cria
|
||||
|
||||
Reference in New Issue
Block a user