deploy(iva): deliver P046 P059 jointly with scoped miner benefits
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,263 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "2b130a66ec9c3f9de427e6dec3e124321d027b99",
|
||||
"accepted_candidates": [
|
||||
"34bbcfa7",
|
||||
"2b130a66"
|
||||
],
|
||||
"base_installed": "a48e9749799b7ed0ad370e23c2fda2bab06150d0",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P046": "Um ramoP046,28correspondências expressas;enumeração legal exemplificativa. Isenção naimportação distinta de venda,base aduaneira,direitos e dedução. Sem fecho integralL1.",
|
||||
"AUD-SIM-L1-P059": "Mineiros moçambicanos em serviço naRSA,no âmbito2026/MZN demonstrado:8percursos e transmissão aherdeiro;redução50%só no veículo separado6(4),com condições próprias."
|
||||
},
|
||||
"branch_count_complete": 2,
|
||||
"coverage_label": "P046 importação definitiva com isenção objectiva interna;P059 limitado ao regimeRSA demonstrado,sem generalização da redução ou concessão automática.",
|
||||
"treatments": {
|
||||
"P046": 28,
|
||||
"P059": 8,
|
||||
"P059_examples": 9
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-objective-imports.ts",
|
||||
"sha256_LF": "859e51700fffa8990b849f0763059e577b3d71fcf3e6c7294f39c944baee8181"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-objective-imports.tsx",
|
||||
"sha256_LF": "b9b07a39f60cdea7e19dda7cac8fc7ad87cafb0972c09a7c747dbaddc7578e39"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "25b9ec77328c57ae787388d6222eb6e4df3e15e44be6b61bce90fc389931e024"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "d4dec167e09b7be9477e806d28a3490b620650909859c13da53109747c93cb09"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-miners.ts",
|
||||
"sha256_LF": "96cade3d3b85dde4e098a802825d52b3abfbde66722f83348fc0f1ca0216138f"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-miners.tsx",
|
||||
"sha256_LF": "40abf151b369b4dae599ca768fe8849466ce0a7122ef62c18e3b4179c095e90b"
|
||||
}
|
||||
],
|
||||
"documentary_delta": [
|
||||
{
|
||||
"path": "docs/investmoz/simulations/source-archive/Lei-2-2011-BR-1-4-suplemento-MCNet.pdf",
|
||||
"sha256": "a7543a68cc3287a46a83c39a04821b40f649dd06c4e9b5dc51ff0b47fba08899",
|
||||
"state": "original archived in Git;not imported or publicly published by deployment"
|
||||
},
|
||||
{
|
||||
"path": "docs/investmoz/simulations/source-archive/Decreto-3-2011-BR-11-I-mineiros.pdf",
|
||||
"sha256": "5bca1133666ba9c69870b89823420175b7b5b8d0eccb667ecdf5c29716f3b6be",
|
||||
"state": "original archived in Git;not imported or publicly published by deployment"
|
||||
}
|
||||
],
|
||||
"compiled_delta_markers_expected": [
|
||||
"objective-imports/1",
|
||||
"miner-imports/1",
|
||||
"objectiveImports",
|
||||
"minerImports",
|
||||
"internalApplicable",
|
||||
"sameGoods",
|
||||
"accumulationStart",
|
||||
"accumulationMonths",
|
||||
"periodTotal",
|
||||
"quotaRef",
|
||||
"previousBenefitDate",
|
||||
"deadlineExtension",
|
||||
"stayException",
|
||||
"rightHolder",
|
||||
"separate_vehicle",
|
||||
"return_vehicle",
|
||||
"noAlcoholTobacco",
|
||||
"Regime Aduaneiro Aplicável aos Mineiros na República da África do Sul",
|
||||
"arts1–4PDF1",
|
||||
"50% das imposições",
|
||||
"15.000MZN por mês",
|
||||
"sem concessão administrativa automática",
|
||||
"Continuidade do trabalho fiscal:",
|
||||
"sem calcular IVA devido ou dedução",
|
||||
"não ficam concluídas por esta entrega",
|
||||
"Cobertura digital deste incremento:",
|
||||
"Não representa cobertura digital integral"
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 125,
|
||||
"QA": 2,
|
||||
"functional_pending": 5,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 125,
|
||||
"QA": 2,
|
||||
"functional_pending": 5,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 127,
|
||||
"QA": 0,
|
||||
"functional_pending": 5,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-objective-imports-qa-20261025.json",
|
||||
"iva-l1-miners-qa-20261025.json"
|
||||
],
|
||||
"authorization": "Tempo pede entrega conjuntaP046/P059 pelo processoGit existente,preservando alterações concorrentes e conferindo apenas delta instalado;âmbito territorialRSA e condições da redução explícitos.",
|
||||
"preservation": "125fechos,livros/dados,acessos,relações,originais e históricos preservados;P084/P085/P104parciais e formalidades digitais/limites de viagens mantidos.",
|
||||
"limitations_balance": {
|
||||
"scope": "P059 demonstrado para mineiros moçambicanos naRSA,2026/MZN;outros países/fundamentos não são declarados automaticamente isentos nem excluídos de todo o CIVA.",
|
||||
"monthly_limit": "Cobertura dos exemplares:15.000MZN/mês;valores superiores permanecem indeterminados,não se presume revisão do limite pelo Governo2(5),nem benefício parcial sobre o excesso.",
|
||||
"customs": "Classificação segundo factos declarados/pressupostos expressos;portal não concede autorização,não emite DU,licença ou despacho,não calcula direitos/base aduaneira/ICE,sem dedução/campo11 ou lançamento automático no ModeloA.",
|
||||
"temporary": "Licença temporária em férias5 não vira isenção definitiva;encaminhamento para o regime aduaneiro existente,com condições próprias.",
|
||||
"internal_acquisition": "6(4)também refere aquisição no mercado interno;este incremento aplica apenas IVA informado da importação associada identificada,não calcula IVA da venda interna nem restitui imposições.",
|
||||
"KAWENA": "OS07/AT/DGA/411.1/2019 permanece procedimento específico;contramarca/SAD500/armazém e outras exigências suas não foram impostas às outras vias.",
|
||||
"digital": "Formalidades digitais P121/P130 ainda não automatizadas permanecem visíveis;sem cobertura digital integral.",
|
||||
"travel": "P129/P133 preservados no âmbito margem/eventos,sem IVA devido,dedução42/43d,regularização44,facturação45/modelo46(2);ligação AUD-SIM-INT02 mantida.",
|
||||
"others": "P084/P085 apenas preparação e simulação condicionada;P104 conversão condicionada;P00105/06;bebidasL2/L3;Estatísticas/IAadiadas;L1aberto."
|
||||
},
|
||||
"P046_limits": {
|
||||
"digital": "P121/P130 formalidades regulamentares,modelos eprocedimentos deentrega/pagamento ainda nãoautomatizados;sem cobertura digital integral",
|
||||
"travel": "P129/P133 âmbito margem/eventos;sem IVAdevido,dedução42/43d,regularização44,factura45oumodelooficial46(2);ligaçãoAUD-SIM-INT02",
|
||||
"P104": "Conversão condicionada;sem taxa/data fiscal confirmadas",
|
||||
"P084_P085": "Preparação/simulação condicionada;sembenefício oufecho",
|
||||
"P001": "Apenas05/06",
|
||||
"scope": "L1aberto;bebidasL2/L3;Estatísticas/IAadiadas"
|
||||
},
|
||||
"source_reference_correction": [
|
||||
{
|
||||
"diploma": "Lei n.º 2/2011, de 11 de Janeiro",
|
||||
"title": "Regime Aduaneiro Aplicável aos Mineiros na República da África do Sul",
|
||||
"issue": "BR n.º 1, I Série, 4.º suplemento, 11/01/2011",
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-2-2011-BR-1-4-suplemento-MCNet.pdf",
|
||||
"sha256": "a7543a68cc3287a46a83c39a04821b40f649dd06c4e9b5dc51ff0b47fba08899",
|
||||
"url_working_copy": "https://tr-jue.mcnet.co.mz/mcnet/portal/faq/category/149/faqsdoclink",
|
||||
"previous_url": "https://www.pgr.gov.mz/index.php/por/content/download/5617/40390/version/1/file/Lei%2Bdo%2BVoluntariado.pdf",
|
||||
"previous_url_access": "PGR DNS unavailable to local download in this round;does not invalidate accepted official content. MCNet original obtained and rendered. No claim of byte equality with an unavailable PGR download.",
|
||||
"articles": [
|
||||
{
|
||||
"articles": "1;2(1)(a–d);2(2–5);3;4",
|
||||
"pdf_page": 1,
|
||||
"printed_page": "not printed on this opening page",
|
||||
"meaning": "Scope,goods,quotas,non-alienation,return,heirs,possible limit revision,alcohol/tobacco exclusion,regulation"
|
||||
},
|
||||
{
|
||||
"articles": "5",
|
||||
"pdf_page": 2,
|
||||
"printed_page": "110-(8)",
|
||||
"meaning": "Entry into force01/01/2011"
|
||||
}
|
||||
],
|
||||
"other_acts": "Full original has10pages and also contains Lei7/2011(Legal Regime of Volunteering). Neither original filename nor that other act is the authority for P059."
|
||||
},
|
||||
{
|
||||
"diploma": "Decreto n.º 3/2011, de 16 de Março",
|
||||
"title": "Regulamento do Regime Aduaneiro Aplicável aos Mineiros Moçambicanos em Serviço na República da África do Sul",
|
||||
"issue": "BR n.º11,I Série,16/03/2011",
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Decreto-3-2011-BR-11-I-mineiros.pdf",
|
||||
"sha256": "5bca1133666ba9c69870b89823420175b7b5b8d0eccb667ecdf5c29716f3b6be",
|
||||
"articles": [
|
||||
{
|
||||
"articles": "1(definitions),2(scope),3(benefits),4(beginning)",
|
||||
"pdf_page": 2,
|
||||
"printed_page": "152"
|
||||
},
|
||||
{
|
||||
"articles": "4(continuation),5(temporary licence),6(return),7(heirs),8(procedural moment)",
|
||||
"pdf_page": 3,
|
||||
"printed_page": "153"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"diploma": "CIVA republicado pela Lei13/2016",
|
||||
"article": "12(2),alínea b);proportionality in opening sentence12(2)",
|
||||
"file": "docs/investmoz/simulations/source-archive/Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"pdf_page": 11,
|
||||
"printed_page": "1426-(269)",
|
||||
"subsequent_cotejo": "Lei22/2022PDF2–3 andLei10/2025PDF13 maintain12(2) by reference;no new expanded text in these changes."
|
||||
}
|
||||
],
|
||||
"remaining_ids": [
|
||||
"P047",
|
||||
"P058",
|
||||
"P084",
|
||||
"P085",
|
||||
"P104",
|
||||
"P001"
|
||||
],
|
||||
"P104_closure": false,
|
||||
"P084_P085_closure": false,
|
||||
"containment": "l1-objective-miners-readonly-rollback-20261025.patch,conferida sem aplicar;apenas suspende novas versõesP046/P059,conservando leitores,históricos eoutros ramos.",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a48e9749799b7ed0ad370e23c2fda2bab06150d0",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a48e9749799b7ed0ad370e23c2fda2bab06150d0-4bcb51fd",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/df43aeb1e583e65af854ac71f46ddaa1f49b0b7c-657a60cb",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/a48e9749799b7ed0ad370e23c2fda2bab06150d0-4bcb51fd",
|
||||
"release_revision": {
|
||||
"commit": "a48e9749799b7ed0ad370e23c2fda2bab06150d0",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T23:50:30.605375+00:00",
|
||||
"manifest_sha256": "a20890098748b87f8920ab98577acd584ea1ad7e839f745fd23858666c35642a"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-objective-miners-delivery-20261025/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "3d5a5a9095dbf1979b7c4eb73f409c3fec67f8fcaed81b6343ef2c319bbde929",
|
||||
"files_sha256": "c570de0b8308cd5fab616977a358a3459e7967460c3e1ccb808a96f1a0780971",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_objective_miners_restore_20261025",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "3d5a5a9095dbf1979b7c4eb73f409c3fec67f8fcaed81b6343ef2c319bbde929",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
--- a/resources/js/lib/iva-objective-imports.ts
|
||||
+++ b/resources/js/lib/iva-objective-imports.ts
|
||||
@@ -38,5 +38,5 @@
|
||||
}
|
||||
function key(draft:Record<string,unknown>,book:ObjectiveImportBook):string{return JSON.stringify({version:objectiveImportVersion,catalog:objectiveImportTreatments,scope:acquisitionScope(draft),currency:draft.currency,location:draft.selection_labels??{},rows:book.rows});}
|
||||
export function objectiveImportCurrent(draft:Record<string,unknown>,book:ObjectiveImportBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
-export function recordObjectiveImports(draft:Record<string,unknown>,book:ObjectiveImportBook):ObjectiveImportBook{if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique linhas com identidades distintas;originais conservados.');const result:ObjectiveImportCalculation={version:objectiveImportVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),sourceKey:key(draft,book),source:objectiveImportSource,inputs:structuredClone(book.rows),rows:book.rows.map(r=>evaluateObjectiveImport(r,draft.currency))};const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveObjectiveImportBook(draft,next);return next;}
|
||||
+export function recordObjectiveImports(draft:Record<string,unknown>,book:ObjectiveImportBook):ObjectiveImportBook{throw new Error('Novas versões P046 temporariamente suspensas; dados, histórico e relatórios conservados.');if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique linhas com identidades distintas;originais conservados.');const result:ObjectiveImportCalculation={version:objectiveImportVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),sourceKey:key(draft,book),source:objectiveImportSource,inputs:structuredClone(book.rows),rows:book.rows.map(r=>evaluateObjectiveImport(r,draft.currency))};const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveObjectiveImportBook(draft,next);return next;}
|
||||
export function objectiveImportReportRows(draft:Record<string,unknown>):Array<[string,string,string,string]>{try{const b=objectiveImportBook(draft),r=b.result;if(!r)return[];return r.inputs.map((row,i)=>['IVA mensal',`P046 — ${row.period} — ${row.id}`,`${row.description};${r.rows[i].reason};IVA importação:${r.rows[i].importVat??'Indeterminado'};dedução:Não apurada`,`${r.opportunity};${objectiveImportCurrent(draft,b)?'Resultado actual':'Entradas alteradas;resultado histórico conservado'};versão${r.revision};${r.calculatedAt};${row.origin};importador${row.importer};documento${row.documentRef},${row.documentDate};âmbito${row.scope};factos${row.evidence};reutilização${row.reusedFrom||'Introdução directa'};correspondência${row.reference.treatment};condições internas confirmadas${row.reference.confirmed.join(',')}${row.reference.treatment==='annexI_goods'?`;AnexoI${row.reference.annexIItem??''},apenasAnexoI${String(row.reference.annexIOnly??'Por esclarecer')}`:row.reference.treatment==='pharma_manufacturing_inputs'?`;AnexoIII${row.reference.pharmaAnnexItem??''}`:''};${r.rows[i].source};sem alteração dos livros internos,ModeloA,campo11 ou totais.`]);}catch{return[['IVA mensal','P046','Dados não recuperáveis','Originais preservados;sem classificação por defeito.']];}}
|
||||
--- a/resources/js/lib/iva-miners.ts
|
||||
+++ b/resources/js/lib/iva-miners.ts
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
function key(draft:Record<string,unknown>,b:MinerBook):string{return JSON.stringify({version:minerVersion,scope:acquisitionScope(draft),currency:draft.currency,location:draft.selection_labels??{},rows:b.rows});}
|
||||
export function minerCurrent(draft:Record<string,unknown>,b:MinerBook):boolean{return!!b.result&&b.result.sourceKey===key(draft,b);}
|
||||
-export function recordMiners(draft:Record<string,unknown>,book:MinerBook):MinerBook{
|
||||
+export function recordMiners(draft:Record<string,unknown>,book:MinerBook):MinerBook{throw new Error('Novas versões P059 temporariamente suspensas; dados, histórico e relatórios conservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Identifique linhas distintas;originais preservados.');
|
||||
const rows=book.rows.map(r=>evaluateMiner(r,draft.currency));
|
||||
// Declarative quotas cover external operations too; detect contradictions inside this saved scope.
|
||||
Reference in New Issue
Block a user