Record verified L3 installation and compatible quarterly ISPC QA with preserved residuals

This commit is contained in:
2026-10-25 17:16:15 +02:00
parent 1b7ccfee23
commit fb7b5c35b3
7 changed files with 339 additions and 11 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ test('missing inputs still block only the affected result; invalid fractions do
const {draft}=l1DeltaFixture();book.rows[0].sourceAmount='1';const stale=calculateSales(draft,book).rows[0];assert.equal(stale.vat,null);assert.equal(stale.exact,undefined);
assert.throws(()=>fractionPresentation({numerator:'1',denominator:'0'}));assert.equal(fractionPresentation(fraction(1n,21n)).approximate,true);assert.equal(fractionPresentation(decimalFraction('105')).approximate,false);
});
test('form06 is not automatically inferred from a foreign operation or old stock instructions',()=>{
const {book}=l1DeltaFixture();const r=evaluateSalesOperation({...book.rows[0],treatment:'foreign_operation'},'MZN');assert.equal(r.field,null);assert.equal(r.vat,null);assert.match(modeloA06Correspondence,/existências/);assert.match(modeloA06Correspondence,/separe05\/06/);
test('form06 keeps the agreed residual message and does not infer a foreign operation',()=>{
const {book}=l1DeltaFixture();const r=evaluateSalesOperation({...book.rows[0],treatment:'foreign_operation'},'MZN');assert.equal(r.field,null);assert.equal(r.vat,null);assert.match(modeloA06Correspondence,/P001 residual/);assert.match(modeloA06Correspondence,/Não há atribuição automática06/);assert.match(modeloA06Correspondence,/provas anteriores preservadas/);
});
if(process.env.IVA_L1_DELTA_OUT)fs.writeFileSync(process.env.IVA_L1_DELTA_OUT,JSON.stringify(l1DeltaFixture().draft,null,2));