feat: apply investment credit five-exercise window
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-10 15:35:24 +02:00
parent 89e6d72c1e
commit d5cb41b111
12 changed files with 274 additions and 20 deletions
@@ -84,7 +84,7 @@ void test('CBF15 requires actual project,source and first-exercise conditions wi
{ soleProject: '' },
{ noOtherBenefits: 'no' },
{ assessmentKey: 'stale' },
{ startDate: '2025-01-01' },
{ startDate: '2027-01-01' },
]) {
const c = investmentCase();
Object.assign(c.b.investmentCredit, patch);
@@ -188,7 +188,7 @@ void test('CBF15 calculation-save-recovery-HTML and dossier reports retain sourc
numerator: '200',
denominator: '1',
});
assert.match(annualHtml(d), /IRPC-CBF15\/1/);
assert.match(annualHtml(d), /IRPC-CBF15\/2/);
assert.match(
JSON.stringify(
createProjectDossierReport(d, {
@@ -196,7 +196,7 @@ void test('CBF15 calculation-save-recovery-HTML and dossier reports retain sourc
generatedAt: '2026-11-10T19:00:00+02:00',
}),
),
/IRPC-CBF15\/1/,
/IRPC-CBF15\/2/,
);
const old = internationalCase();
assert.equal(calculateAnnual(old.d, old.b).investmentCredit, undefined);