feat: carry documented investment credits within original project window
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-10 16:17:48 +02:00
parent d216830b06
commit 7476dc3430
14 changed files with 827 additions and 30 deletions
@@ -0,0 +1,34 @@
import { investmentCase } from './irpc-investment-case.mjs';
import { prepareInvestmentCarry } from '../../../resources/js/lib/irpc-annual-settlement.ts';
export function investmentCarryCase() {
const c = investmentCase();
c.b = prepareInvestmentCarry(c.d, c.b);
const t = c.b.investmentCredit;
t.startDate = '2022-01-01';
t.carryForward = {
reference:
'SYNTHETIC historical investment/credit record,same project,qualification and rate',
useReconciled: 'yes',
currentState: 'absent',
currentReference: 'SYNTHETIC no realised2026 investment',
};
t.assets = [
{
...t.assets[0],
date: '2025-05-01',
originYear: '2025',
originNuit: t.subjectNuit,
originProject: t.projectReference,
originRate: '5',
originReference:
'SYNTHETIC 2025 CBF15 qualifying credit,same approved project and Maputo city; original value and tax origin',
},
];
t.previousUse = {
state: 'known',
amount: '100',
reference:
'SYNTHETIC actual tax credit use100,all origins reconciled; not simulation history',
};
return c;
}