feat(portal): deliver ordinary national credit fraction and education continuity
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import fs from 'node:fs';
|
||||
import { internationalCase } from '../tests/frontend/helpers/irpc-international-case.mjs';
|
||||
import { recordAnnual, saveAnnualBook } from '../resources/js/lib/irpc-annual-settlement.ts';
|
||||
const out = new URL('../outputs/irpc-national-fraction-20261110/', import.meta.url);
|
||||
fs.mkdirSync(out, { recursive: true });
|
||||
for (const [name, amount, reference] of [
|
||||
['ordinary', '100', 'SYNTHETIC QA: net foreign taxable component included in this ordinary base after corresponding costs/losses/deductions'],
|
||||
['exact', '0.01', 'SYNTHETIC QA: exact net component correspondence'],
|
||||
['missing', '100', ''],
|
||||
]) {
|
||||
const c = internationalCase('100');
|
||||
Object.assign(c.b.internationalCredits.positions[0], { nationalMethod: 'proportional', incomeAmount: amount, nationalBasisReference: reference });
|
||||
const book = recordAnnual(c.d, c.b, '2026-11-10T13:00:00+02:00');
|
||||
const snapshot = { ...c.d, modelo_a_snapshot: saveAnnualBook(c.d, book) };
|
||||
fs.writeFileSync(new URL(name + '.json', out), JSON.stringify(snapshot));
|
||||
}
|
||||
Reference in New Issue
Block a user