fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+57 -18
View File
@@ -1,27 +1,66 @@
import {internationalCase} from './irpc-international-case.mjs';
import {prepareCreditCarry} from '../../../resources/js/lib/irpc-annual-settlement.ts';
import {newCarryLot} from '../../../resources/js/lib/irpc-credit-carry.ts';
import { internationalCase } from './irpc-international-case.mjs';
import { prepareCreditCarry } from '../../../resources/js/lib/irpc-annual-settlement.ts';
import { newCarryLot } from '../../../resources/js/lib/irpc-credit-carry.ts';
export function carryCase() {
const c = internationalCase();
c.b = prepareCreditCarry(c.b);
Object.assign(c.b.creditCarry, {
state: 'known', reference: 'SYNTHETIC QA complete prior balance inventory',
currentInternational: '8', currentPec: '200', assessmentKey: c.b.assessmentKey,
allocationReference: 'SYNTHETIC QA explicit allocation: current international8, prior international50, currentPEC200, priorPEC100',
state: 'known',
reference: 'SYNTHETIC QA complete prior balance inventory',
currentInternational: '8',
currentPec: '200',
assessmentKey: c.b.assessmentKey,
allocationReference:
'SYNTHETIC QA explicit allocation: current international8, prior international50, currentPEC200, priorPEC100',
lots: [
{...newCarryLot('international-2021'), kind: 'international', country: 'ZA', subjectNuit: c.b.subjectNuit,
year: '2021', ordinary: 'yes', originDocument: 'SYNTHETIC foreign-credit-assessment2021',
originReference: 'SYNTHETIC QA origin inclusion, eligible tax, national/CDT limits, insufficient collecta',
ruleReference: 'SYNTHETIC QA documented ordinary origin rule art65, no real foreign treaty claim',
eligible: '200', originDeducted: '100', insufficient: 'yes', usesState: 'known',
usesReference: 'SYNTHETIC QA all actual uses reconciled through current exercise',
uses: [{id: 'use-2023', year: '2023', amount: '30', document: 'SYNTHETIC use2023', reference: 'SYNTHETIC QA actual documented use, not simulated'}], selected: '50'},
{...newCarryLot('pec-2023'), kind: 'pec', subjectNuit: c.b.subjectNuit,
year: '2023', ordinary: 'yes', originDocument: 'SYNTHETIC PEC2023 assessment and receipts',
originReference: 'SYNTHETIC QA actual PEC paid, initial deduction and collecta insufficiency',
ruleReference: 'SYNTHETIC QA origin ordinary art66', eligible: '300', originDeducted: '150',
insufficient: 'yes', usesState: 'absent', usesReference: 'SYNTHETIC QA no actual subsequent use', selected: '100'},
{
...newCarryLot('international-2021'),
kind: 'international',
country: 'ZA',
subjectNuit: c.b.subjectNuit,
year: '2021',
ordinary: 'yes',
originDocument: 'SYNTHETIC foreign-credit-assessment2021',
originReference:
'SYNTHETIC QA origin inclusion, eligible tax, national/CDT limits, insufficient collecta',
ruleReference:
'SYNTHETIC QA documented ordinary origin rule art65, no real foreign treaty claim',
eligible: '200',
originDeducted: '100',
insufficient: 'yes',
usesState: 'known',
usesReference:
'SYNTHETIC QA all actual uses reconciled through current exercise',
uses: [
{
id: 'use-2023',
year: '2023',
amount: '30',
document: 'SYNTHETIC use2023',
reference:
'SYNTHETIC QA actual documented use, not simulated',
},
],
selected: '50',
},
{
...newCarryLot('pec-2023'),
kind: 'pec',
subjectNuit: c.b.subjectNuit,
year: '2023',
ordinary: 'yes',
originDocument: 'SYNTHETIC PEC2023 assessment and receipts',
originReference:
'SYNTHETIC QA actual PEC paid, initial deduction and collecta insufficiency',
ruleReference: 'SYNTHETIC QA origin ordinary art66',
eligible: '300',
originDeducted: '150',
insufficient: 'yes',
usesState: 'absent',
usesReference: 'SYNTHETIC QA no actual subsequent use',
selected: '100',
},
],
});
return c;