This commit is contained in:
@@ -1193,6 +1193,13 @@ export function calculateAnnual(d: Record<string, unknown>, b: AnnualBook) {
|
||||
b.assessmentKey,
|
||||
colecta,
|
||||
issues,
|
||||
{
|
||||
ordinary:
|
||||
assessment?.kind === 'normal' &&
|
||||
assessment.current &&
|
||||
assessment.key === b.assessmentKey,
|
||||
taxableBase: assessment?.record?.model.taxableBase ?? null,
|
||||
},
|
||||
);
|
||||
pending.push(
|
||||
...m.pending.map(
|
||||
@@ -1202,6 +1209,22 @@ export function calculateAnnual(d: Record<string, unknown>, b: AnnualBook) {
|
||||
return m;
|
||||
}) ?? [];
|
||||
if (b.economicCredits) {
|
||||
if (
|
||||
currentBase &&
|
||||
cmp(
|
||||
addFractions(
|
||||
economicRows.flatMap((r) =>
|
||||
r.nationalDerivation
|
||||
? [r.nationalDerivation.included]
|
||||
: [],
|
||||
),
|
||||
),
|
||||
currentBase,
|
||||
) > 0n
|
||||
)
|
||||
pending.push(
|
||||
'As parcelas económicas com quotas derivadas excedem em conjunto a matéria colectável; reconcilie os lucros e acréscimos por origem.',
|
||||
);
|
||||
if (b.economicCredits.rows.length && assessment?.kind !== 'normal')
|
||||
pending.push(
|
||||
'Crédito económico delimitado à colecta normal corrente;efeitos L7 exigem correspondência própria.',
|
||||
@@ -1390,7 +1413,7 @@ export function calculateAnnual(d: Record<string, unknown>, b: AnnualBook) {
|
||||
limitations: [
|
||||
...(b.economicCredits
|
||||
? [
|
||||
'Crédito económico ordinário:IRPC correspondente aos lucros,acréscimo53 já incluído e quota proporcional documentados. Sem cálculo automático da inclusão ou da exclusão40;liquidação64(3),associações64(4),benefícios e regras especiais separados. Sem reembolso ou transporte económico presumidos.',
|
||||
'Crédito económico: IRPC correspondente, inclusão/acréscimo53 e quota proporcional reconciliados com a colecta corrente. Partilha64(3) separa rendimento elegível e excesso com natureza de mais-valia; associações64(4) têm modalidade/adaptação próprias. Preparação L6 é explícita; exclusão40, benefícios e restantes regras mantêm âmbito próprio. Sem reembolso ou transporte económico presumidos.',
|
||||
]
|
||||
: []),
|
||||
...(b.creditCarry
|
||||
@@ -1598,6 +1621,51 @@ export function annualReportRows(
|
||||
r.input.grossUpIncluded +
|
||||
' MZN;quota proporcional: ' +
|
||||
show(r.nationalLimit) +
|
||||
(r.nationalDerivation
|
||||
? '; derivação L6: colecta ' +
|
||||
show(r.nationalDerivation.colecta) +
|
||||
' × lucros mais acréscimo53 ' +
|
||||
show(
|
||||
r.nationalDerivation.included,
|
||||
) +
|
||||
' / matéria colectável ' +
|
||||
show(
|
||||
r.nationalDerivation
|
||||
.taxableBase,
|
||||
) +
|
||||
'; exacta ' +
|
||||
r.nationalLimit?.numerator +
|
||||
'/' +
|
||||
r.nationalLimit?.denominator
|
||||
: '') +
|
||||
(r.liquidation
|
||||
? '; partilha64(3): valor atribuído ' +
|
||||
show(r.liquidation.attributed) +
|
||||
'; entradas efectivas ' +
|
||||
show(r.liquidation.paidInCapital) +
|
||||
'; limite ' +
|
||||
show(r.liquidation.ceiling) +
|
||||
'; rendimento elegível ' +
|
||||
show(r.liquidation.eligibleIncome) +
|
||||
'; excesso com natureza de mais-valia ' +
|
||||
show(
|
||||
r.liquidation.excessCapitalGain,
|
||||
) +
|
||||
'; ' +
|
||||
r.liquidation.version +
|
||||
'; ' +
|
||||
r.liquidation.reference
|
||||
: '') +
|
||||
(r.association
|
||||
? '; ' +
|
||||
r.association.version +
|
||||
'; modalidade ' +
|
||||
r.association.kind +
|
||||
'; tributação efectiva ' +
|
||||
r.association.effectivelyTaxed +
|
||||
'; ' +
|
||||
r.association.reference
|
||||
: '') +
|
||||
';elegível: ' +
|
||||
show(r.eligible) +
|
||||
';uso efectivo anterior: ' +
|
||||
@@ -1616,7 +1684,12 @@ export function annualReportRows(
|
||||
';53: ' +
|
||||
r.input.grossUpReference +
|
||||
';quota: ' +
|
||||
r.input.nationalLimitReference +
|
||||
(r.nationalDerivation
|
||||
? r.nationalDerivation.version +
|
||||
'; correspondência: ' +
|
||||
r.nationalDerivation.reference +
|
||||
'; limite manual anterior conservado, não utilizado'
|
||||
: r.input.nationalLimitReference) +
|
||||
';uso: ' +
|
||||
r.input.previousUse.reference,
|
||||
] as [string, string, string, string],
|
||||
|
||||
Reference in New Issue
Block a user