Compare commits
6
Commits
d46b794ab2
...
2d889a211b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d889a211b | ||
|
|
50fdd97916 | ||
|
|
9842dcbb0e | ||
|
|
e384418ecc | ||
|
|
0eb37ef59b | ||
|
|
2ed62165b7 |
@@ -13536,5 +13536,700 @@
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed4cebd617;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed"
|
||||
},
|
||||
"iva_l1_g6c_homologation_20261024": {
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "8e5565d5e0501ecd2a40ae684f4948b867308c54",
|
||||
"base": "72e56f7a",
|
||||
"last_known_remote_main": "4cebd617",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P053": [
|
||||
"eligible_ship_import",
|
||||
"ship_operation_object_import"
|
||||
],
|
||||
"AUD-SIM-L1-P054": [
|
||||
"eligible_aircraft_import",
|
||||
"aircraft_operation_object_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 2,
|
||||
"treatment_count": 4,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "6f35a4ee2e8a6a53e0d8313913914903ae48a5c685412a6df4aa44fe2d3ed2a6"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "b434f014e9165c44d4d1498f804f85dd5eaa7fc31409faebefd2267ba7a1a371"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "d53931a3e30551ddac31f81de78220de2a5e269c71c213ca43d375e8e7fc3551"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 9,
|
||||
"frontend_total": 13,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 24,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18644/g6c.html",
|
||||
"observed": [
|
||||
"four treatments mapped to two IDs",
|
||||
"object link unknown ->indeterminate;negative ->nonapplication;affirmative ->exempt0.00",
|
||||
"switch object to principal aircraft ->own condition unknown,object response retained;return ->response restored",
|
||||
"4000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P053/P054/four treatments,Manica,opportunity332,source12h/i and13f/g",
|
||||
"four previous new-book UI results;all23acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6c-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "d09a98c6a6c73a526c8803358eef6448cdc634a8a430c6ab8fe691ecdbd32bf4"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6c-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "c036d0f4c188fcd1392c1ee0140fd1d41239151bab116647e3ed71e2ba6a50ea",
|
||||
"files_sha256": "3d13cca301ab91abf29848b522a19316dea284bc5d9e41ae8b88971866401ac7",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "c036d0f4c188fcd1392c1ee0140fd1d41239151bab116647e3ed71e2ba6a50ea",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"release_revision": {
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:36:44.073710+00:00",
|
||||
"manifest_sha256": "820184910bf076609ce3c05dcc4995d0543ff5cbc672ca2fc3c73e856fdc1c97"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed4cebd617;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G6C": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated4cebd617 before installation;see authenticated_preflight",
|
||||
"treatment": "P053/eligible_ship_import+ship_operation_object_import,12(1)(h);P054/eligible_aircraft_import+aircraft_operation_object_import,12(1)(i);dois ramos/quatro tratamentos;classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "830e47887a2f6c9ebb85f9a169142993"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "31f225d60f40c7ed4362914d54f9c874"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 35,
|
||||
"checksum": "36a81e8a5ac8860d048eed3b3fce1407"
|
||||
},
|
||||
"after": {
|
||||
"rows": 36,
|
||||
"checksum": "788ac4e8051f39a1ccbe33bc7c6a6798"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:47:40.841865+00:00",
|
||||
"manifest_sha256": "4e33ef8b77192cc28929f1ce8768c8df3d5e4b4d92ad912cf09d75077a9af40c"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-assets/1": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_ship_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"ship_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_aircraft_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraft_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"shipObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraftObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"12(1)(h/i)": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BixUbmml.js",
|
||||
"status": 200,
|
||||
"sha256": "076c7185606a045bc80dc0a27391f950ea821b90e4884ca7d550e76d847fffab"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CYJCi592.js",
|
||||
"status": 200,
|
||||
"sha256": "955e11af7bf648dc849b4c676d71b82719e7446d95d38427d6fe69f9935d3f85"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-4TZPGVhV.js",
|
||||
"status": 200,
|
||||
"sha256": "94585fefba949fc3a2e44ac951f59c61ff28c2fd68e1f6b64d8d33234b6cfef3"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DdgboHYu.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"d46b794ab2c6113738f76c69097ae3dcddcf56dd"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:47:43.681452+00:00"
|
||||
},
|
||||
"log_file": "1792863971064151912.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.75s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 313",
|
||||
"# pass 313",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 119668
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
},
|
||||
"iva_l1_g6d_P048_import_customs_QA_demonstrated_20261024": {
|
||||
"key": "iva_l1_g6d_P048_import_customs_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "0eb37ef59b9b65837e6791518b378fe4e64ca112",
|
||||
"base": "2ed62165",
|
||||
"homologation": "d46b794a/2ed62165",
|
||||
"group": "G6D",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 3,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(c),Lei13/2016PDF11/p1426(269),full-page visual proof G6A reused;2022PDF2/p2252(26) and2025PDF13/p2180(13) retain c by reference;no new expanded wording used",
|
||||
"acceptance": "Tempo08/10/2026;no generic authenticity/legal revalidation",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
],
|
||||
"scope_lookup_2020": {
|
||||
"URL": "https://www.inm.gov.mz/pt-br/content/assembleia-da-rep%C3%BAblica-suplemento-n%C2%BA-1-de-231220-pag-2414-1-20-br-n%C2%BA-246-boletim-da",
|
||||
"scope": "Official INM index identifies Lei16/2020 as altering9(13),not12(1)(c)",
|
||||
"retrieval": "Index search text read;direct page timeout and two official PDF download attempts failed;no fullPDF obtained or claimed",
|
||||
"use": "scope lookup for an existing reference;not a second authenticity approval and not the operative text of12(1)(c)"
|
||||
}
|
||||
},
|
||||
"preservation": {
|
||||
"base": "2ed62165b7a5b7e0a836db350fb39ace6453fed5",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g6c-delivery-20261024.json;d46b794a/2ed62165;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "ac5f1b23de6b3e13c9b0e116b435c389d8147d5f4145b19dc234bf79596c5db6",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 3,
|
||||
"import_histories": {
|
||||
"opportunity:330": 3,
|
||||
"opportunity:331": 4,
|
||||
"opportunity:332": 4
|
||||
},
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 13,
|
||||
"frontend_total": 17,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 25,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18645/g6d.html",
|
||||
"observed": [
|
||||
"three treatments mapped to one ID",
|
||||
"full customs duty exemption unknown ->indeterminate;negative ->nonapplication;affirmative with own regime ->exempt0.00",
|
||||
"switch transit to temporary import ->own regime condition unknown,previous answers retained;return ->transit response restored",
|
||||
"5000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P048/three treatments,Manica,opportunity333,source12(1)(c)",
|
||||
"four previous new-book UI results;all24acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6d-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "fadcff5be7c2a7a768a87531fefab15d189f87c9181e60fc2c794b4a5a01ae8c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"no_schema_change": true,
|
||||
"scoped_version": "import-customs-regimes/1 only for selected customs import treatments;G6A/G6B/G6C keys/source remain unchanged",
|
||||
"regime_confirmations": "transit/temporary/drawback have distinct keys;fullCustomsExemption differs from P049 customsExempt;partial relief or suspension cannot satisfy total exemption",
|
||||
"legacy_books": "20sales,1purchase and3importbooks identical/current without recalculation",
|
||||
"history": "explicit classification archives previous result;edits keep earlier version",
|
||||
"not_applicable_UI": "only conditions for selected customs regime;hidden answers retained",
|
||||
"field11": "no deduction or ModeloA totals populated by classification",
|
||||
"rollback": "l1-g6d-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 6,
|
||||
"QA": 1,
|
||||
"functional_pending": 8
|
||||
},
|
||||
"limits": "2026/MZN;P048/12(1)(c),trânsito/importação temporária/draubaque com isenção total de direitos,sem baseaduaneira,cálculo de direitosL13,saída de regime,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não confundir com vendas em regimeG5/P083. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas."
|
||||
},
|
||||
"iva_l1_g5c_P080_QA_and_P084_P085_individual_diagnosis_20261024": {
|
||||
"candidate": "9842dcbb0e570bc9af6d4f0d20b76f67bee30178",
|
||||
"status": "P080 demonstrated QA,not delivered;P084/P085 individually diagnosed and still pending",
|
||||
"coverage": {
|
||||
"P080": [
|
||||
"special_economic_zone_import",
|
||||
"free_zone_import",
|
||||
"free_warehouse_import",
|
||||
"general_free_warehouse_import",
|
||||
"customs_warehouse_import",
|
||||
"duty_free_shop_import"
|
||||
]
|
||||
},
|
||||
"source": "Lei13/2016,CIVA14(1)(a),initial condition14(1),PDF13/p1426(271);no14change in consulted2022/2025 amendments",
|
||||
"source_reused": "Existing six-file source archive and general corpus/reference inventories;official source acceptanceTempo08/10;not reauthenticated",
|
||||
"legal_interpretation_limits": "P080 own import,not sale;not mere geography;all six regimes,customs control,applicable provisions,permanence,no final use/consumption;no automatic field11/duties/normalVAT",
|
||||
"tests": {
|
||||
"frontend": {
|
||||
"passed": 20,
|
||||
"failed": 0,
|
||||
"new": 3,
|
||||
"record": "node:test tool output this session;no separately saved stdout claimed"
|
||||
},
|
||||
"API": {
|
||||
"tests": 1,
|
||||
"assertions": 26,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g5c-review-20261024\\api-tests.xml",
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transactions": "rollback"
|
||||
},
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin/chunk warnings",
|
||||
"UI": "Codex Edge/CUA,real component;unknown->indeterminate,no->nonapplication,yes->exempt;save/recover/report;not manualTempo acceptance",
|
||||
"synthetic_QA_storage": "1 test passed;UTF8 multibyte buffer decoding preserved"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "e384418ecc76ed77fe34a30814c4737a96887b00",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"preservation": "Reuse accepted G6C installed receipt d46b794a/2ed62165; no active code/schema/data/config/permissions changes in this QA task",
|
||||
"frozen": "tests/frontend/fixtures/iva-g6d-inputs.json",
|
||||
"frozen_sha256": "26f9b75b4b436bfd2e21487b8eed12e8db62e9ebfc46e3ace9c92271994fc80b",
|
||||
"books": {
|
||||
"sales": 20,
|
||||
"acquisitions": 1,
|
||||
"imports": 4
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"pending": 59,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6D": "P048 remains QA, not installed"
|
||||
},
|
||||
"UI_book": {
|
||||
"rows": 6,
|
||||
"history": 5,
|
||||
"opportunity": "334",
|
||||
"province": "Manica",
|
||||
"period": "2026-12",
|
||||
"document_date": "2026-11-14"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 2,
|
||||
"functional_pending": 58,
|
||||
"documentary_P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active": "unchanged d46b794a/2ed62165;no push,installation,migration or active data change",
|
||||
"other_QA": "P048 G6D candidate0eb37ef5 preserved,not delivered",
|
||||
"pending": {
|
||||
"P084": {
|
||||
"source": "14(2)(a),14(3),samePDF13",
|
||||
"treatment": "Acquisition/import of goods for gifts to national public-interest/relevant-social institutions;goods wholly suitable and used in evident public-interest activities;no services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/import flow absent;common persistence/report reused",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementing provision and amendments/scope,then implement only express conditions and verify save/recover/report",
|
||||
"estimate": "6–10h preliminary development/verification after documentary delimitation;unmeasured;document retrieval ETA unknown"
|
||||
},
|
||||
"P085": {
|
||||
"source": "14(2)(b),14(3),samePDF13",
|
||||
"treatment": "Acquisition of goods for gifts mitigating effects of natural disasters;no automatic extension to import/services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/goods/disaster-purpose flow absent",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementation procedure;reuse P084 common fields while keeping own scope;verify complete flow",
|
||||
"estimate": "4–8h preliminary after documentary delimitation,reusingP084;unmeasured;retrieval ETA unknown"
|
||||
}
|
||||
},
|
||||
"limits": "72delivered remainclosed;L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;L1closure doesnot requireL2/L3/alltaxes"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"candidate": "9842dcbb0e570bc9af6d4f0d20b76f67bee30178",
|
||||
"status": "P080 demonstrated QA,not delivered;P084/P085 individually diagnosed and still pending",
|
||||
"coverage": {
|
||||
"P080": [
|
||||
"special_economic_zone_import",
|
||||
"free_zone_import",
|
||||
"free_warehouse_import",
|
||||
"general_free_warehouse_import",
|
||||
"customs_warehouse_import",
|
||||
"duty_free_shop_import"
|
||||
]
|
||||
},
|
||||
"source": "Lei13/2016,CIVA14(1)(a),initial condition14(1),PDF13/p1426(271);no14change in consulted2022/2025 amendments",
|
||||
"source_reused": "Existing six-file source archive and general corpus/reference inventories;official source acceptanceTempo08/10;not reauthenticated",
|
||||
"legal_interpretation_limits": "P080 own import,not sale;not mere geography;all six regimes,customs control,applicable provisions,permanence,no final use/consumption;no automatic field11/duties/normalVAT",
|
||||
"tests": {
|
||||
"frontend": {
|
||||
"passed": 20,
|
||||
"failed": 0,
|
||||
"new": 3,
|
||||
"record": "node:test tool output this session;no separately saved stdout claimed"
|
||||
},
|
||||
"API": {
|
||||
"tests": 1,
|
||||
"assertions": 26,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g5c-review-20261024\\api-tests.xml",
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transactions": "rollback"
|
||||
},
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin/chunk warnings",
|
||||
"UI": "Codex Edge/CUA,real component;unknown->indeterminate,no->nonapplication,yes->exempt;save/recover/report;not manualTempo acceptance",
|
||||
"synthetic_QA_storage": "1 test passed;UTF8 multibyte buffer decoding preserved"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "e384418ecc76ed77fe34a30814c4737a96887b00",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"preservation": "Reuse accepted G6C installed receipt d46b794a/2ed62165; no active code/schema/data/config/permissions changes in this QA task",
|
||||
"frozen": "tests/frontend/fixtures/iva-g6d-inputs.json",
|
||||
"frozen_sha256": "26f9b75b4b436bfd2e21487b8eed12e8db62e9ebfc46e3ace9c92271994fc80b",
|
||||
"books": {
|
||||
"sales": 20,
|
||||
"acquisitions": 1,
|
||||
"imports": 4
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"pending": 59,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6D": "P048 remains QA, not installed"
|
||||
},
|
||||
"UI_book": {
|
||||
"rows": 6,
|
||||
"history": 5,
|
||||
"opportunity": "334",
|
||||
"province": "Manica",
|
||||
"period": "2026-12",
|
||||
"document_date": "2026-11-14"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 2,
|
||||
"functional_pending": 58,
|
||||
"documentary_P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active": "unchanged d46b794a/2ed62165;no push,installation,migration or active data change",
|
||||
"other_QA": "P048 G6D candidate0eb37ef5 preserved,not delivered",
|
||||
"pending": {
|
||||
"P084": {
|
||||
"source": "14(2)(a),14(3),samePDF13",
|
||||
"treatment": "Acquisition/import of goods for gifts to national public-interest/relevant-social institutions;goods wholly suitable and used in evident public-interest activities;no services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/import flow absent;common persistence/report reused",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementing provision and amendments/scope,then implement only express conditions and verify save/recover/report",
|
||||
"estimate": "6–10h preliminary development/verification after documentary delimitation;unmeasured;document retrieval ETA unknown"
|
||||
},
|
||||
"P085": {
|
||||
"source": "14(2)(b),14(3),samePDF13",
|
||||
"treatment": "Acquisition of goods for gifts mitigating effects of natural disasters;no automatic extension to import/services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/goods/disaster-purpose flow absent",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementation procedure;reuse P084 common fields while keeping own scope;verify complete flow",
|
||||
"estimate": "4–8h preliminary after documentary delimitation,reusingP084;unmeasured;retrieval ETA unknown"
|
||||
}
|
||||
},
|
||||
"limits": "72delivered remainclosed;L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;L1closure doesnot requireL2/L3/alltaxes"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"key": "iva_l1_g6c_P053_P054_import_assets_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "8e5565d5e0501ecd2a40ae684f4948b867308c54",
|
||||
"base": "72e56f7a",
|
||||
"homologation": "4cebd617/72e56f7a",
|
||||
@@ -196,16 +196,29 @@
|
||||
"rollback": "l1-g6c-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 6,
|
||||
"QA": 0,
|
||||
"functional_pending": 9
|
||||
},
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 70,
|
||||
"QA": 2,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 4,
|
||||
"QA": 2,
|
||||
"functional_pending": 9
|
||||
},
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas."
|
||||
"delivery_followup": {
|
||||
"served_commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"record": "iva_l1_g6c_homologation_20261024",
|
||||
"receipt": "l1-g6c-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"key": "iva_l1_g6d_P048_import_customs_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "0eb37ef59b9b65837e6791518b378fe4e64ca112",
|
||||
"base": "2ed62165",
|
||||
"homologation": "d46b794a/2ed62165",
|
||||
"group": "G6D",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 3,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(c),Lei13/2016PDF11/p1426(269),full-page visual proof G6A reused;2022PDF2/p2252(26) and2025PDF13/p2180(13) retain c by reference;no new expanded wording used",
|
||||
"acceptance": "Tempo08/10/2026;no generic authenticity/legal revalidation",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
],
|
||||
"scope_lookup_2020": {
|
||||
"URL": "https://www.inm.gov.mz/pt-br/content/assembleia-da-rep%C3%BAblica-suplemento-n%C2%BA-1-de-231220-pag-2414-1-20-br-n%C2%BA-246-boletim-da",
|
||||
"scope": "Official INM index identifies Lei16/2020 as altering9(13),not12(1)(c)",
|
||||
"retrieval": "Index search text read;direct page timeout and two official PDF download attempts failed;no fullPDF obtained or claimed",
|
||||
"use": "scope lookup for an existing reference;not a second authenticity approval and not the operative text of12(1)(c)"
|
||||
}
|
||||
},
|
||||
"preservation": {
|
||||
"base": "2ed62165b7a5b7e0a836db350fb39ace6453fed5",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g6c-delivery-20261024.json;d46b794a/2ed62165;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "ac5f1b23de6b3e13c9b0e116b435c389d8147d5f4145b19dc234bf79596c5db6",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 3,
|
||||
"import_histories": {
|
||||
"opportunity:330": 3,
|
||||
"opportunity:331": 4,
|
||||
"opportunity:332": 4
|
||||
},
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 13,
|
||||
"frontend_total": 17,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 25,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18645/g6d.html",
|
||||
"observed": [
|
||||
"three treatments mapped to one ID",
|
||||
"full customs duty exemption unknown ->indeterminate;negative ->nonapplication;affirmative with own regime ->exempt0.00",
|
||||
"switch transit to temporary import ->own regime condition unknown,previous answers retained;return ->transit response restored",
|
||||
"5000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P048/three treatments,Manica,opportunity333,source12(1)(c)",
|
||||
"four previous new-book UI results;all24acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6d-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "fadcff5be7c2a7a768a87531fefab15d189f87c9181e60fc2c794b4a5a01ae8c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"no_schema_change": true,
|
||||
"scoped_version": "import-customs-regimes/1 only for selected customs import treatments;G6A/G6B/G6C keys/source remain unchanged",
|
||||
"regime_confirmations": "transit/temporary/drawback have distinct keys;fullCustomsExemption differs from P049 customsExempt;partial relief or suspension cannot satisfy total exemption",
|
||||
"legacy_books": "20sales,1purchase and3importbooks identical/current without recalculation",
|
||||
"history": "explicit classification archives previous result;edits keep earlier version",
|
||||
"not_applicable_UI": "only conditions for selected customs regime;hidden answers retained",
|
||||
"field11": "no deduction or ModeloA totals populated by classification",
|
||||
"rollback": "l1-g6d-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 6,
|
||||
"QA": 1,
|
||||
"functional_pending": 8
|
||||
},
|
||||
"limits": "2026/MZN;P048/12(1)(c),trânsito/importação temporária/draubaque com isenção total de direitos,sem baseaduaneira,cálculo de direitosL13,saída de regime,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não confundir com vendas em regimeG5/P083. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas."
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "8e5565d5e0501ecd2a40ae684f4948b867308c54",
|
||||
"base": "72e56f7a",
|
||||
"last_known_remote_main": "4cebd617",
|
||||
@@ -30,8 +30,8 @@
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 70,
|
||||
"QA": 2,
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
@@ -97,8 +97,8 @@
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing normal Git FF/webhook/installer;no push or installation in QA passage",
|
||||
"served_revision_and_delta": "pending delivery;homologation remains4cebd617",
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
@@ -147,5 +147,164 @@
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed4cebd617;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed"
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G6C": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated4cebd617 before installation;see authenticated_preflight",
|
||||
"treatment": "P053/eligible_ship_import+ship_operation_object_import,12(1)(h);P054/eligible_aircraft_import+aircraft_operation_object_import,12(1)(i);dois ramos/quatro tratamentos;classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "830e47887a2f6c9ebb85f9a169142993"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "31f225d60f40c7ed4362914d54f9c874"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 35,
|
||||
"checksum": "36a81e8a5ac8860d048eed3b3fce1407"
|
||||
},
|
||||
"after": {
|
||||
"rows": 36,
|
||||
"checksum": "788ac4e8051f39a1ccbe33bc7c6a6798"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:47:40.841865+00:00",
|
||||
"manifest_sha256": "4e33ef8b77192cc28929f1ce8768c8df3d5e4b4d92ad912cf09d75077a9af40c"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-assets/1": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_ship_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"ship_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_aircraft_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraft_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"shipObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraftObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"12(1)(h/i)": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BixUbmml.js",
|
||||
"status": 200,
|
||||
"sha256": "076c7185606a045bc80dc0a27391f950ea821b90e4884ca7d550e76d847fffab"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CYJCi592.js",
|
||||
"status": 200,
|
||||
"sha256": "955e11af7bf648dc849b4c676d71b82719e7446d95d38427d6fe69f9935d3f85"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-4TZPGVhV.js",
|
||||
"status": 200,
|
||||
"sha256": "94585fefba949fc3a2e44ac951f59c61ff28c2fd68e1f6b64d8d33234b6cfef3"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DdgboHYu.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"d46b794ab2c6113738f76c69097ae3dcddcf56dd"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:47:43.681452+00:00"
|
||||
},
|
||||
"log_file": "1792863971064151912.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.75s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 313",
|
||||
"# pass 313",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 119668
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"status": "QA_demonstrated_delivery_prepared_not_installed",
|
||||
"candidate": "0eb37ef59b9b65837e6791518b378fe4e64ca112",
|
||||
"base": "2ed62165",
|
||||
"last_known_remote_main": "d46b794a",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 3,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "cb44f9b7199e6b29cba251d387ef0d626f063c49480cd2b03dd9a7334e4862b2"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c4fb7c421e0f33e8d76997be966689a3f58cc66d21abb65663a58a2704607f18"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 73,
|
||||
"QA": 0,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 13,
|
||||
"frontend_total": 17,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 25,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18645/g6d.html",
|
||||
"observed": [
|
||||
"three treatments mapped to one ID",
|
||||
"full customs duty exemption unknown ->indeterminate;negative ->nonapplication;affirmative with own regime ->exempt0.00",
|
||||
"switch transit to temporary import ->own regime condition unknown,previous answers retained;return ->transit response restored",
|
||||
"5000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P048/three treatments,Manica,opportunity333,source12(1)(c)",
|
||||
"four previous new-book UI results;all24acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6d-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "fadcff5be7c2a7a768a87531fefab15d189f87c9181e60fc2c794b4a5a01ae8c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6d-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": "Fresh authenticated destination/main read,backup and real isolated restore required before installation;accepted G6C receipt is preservation context only",
|
||||
"activation": "Existing normal Git FF/webhook/installer;no push or installation in QA passage",
|
||||
"served_revision_and_delta": "pending delivery;homologation remainsd46b794a",
|
||||
"limits": "2026/MZN;P048/12(1)(c),trânsito/importação temporária/draubaque com isenção total de direitos,sem baseaduaneira,cálculo de direitosL13,saída de regime,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não confundir com vendas em regimeG5/P083. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "50fdd97916ef910a61bff0bebbcdc835206e3786",
|
||||
"base_installed": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
],
|
||||
"AUD-SIM-L1-P080": [
|
||||
"special_economic_zone_import",
|
||||
"free_zone_import",
|
||||
"free_warehouse_import",
|
||||
"general_free_warehouse_import",
|
||||
"customs_warehouse_import",
|
||||
"duty_free_shop_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 2,
|
||||
"treatment_count": 9,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "01698a4dfe4dd7bd39af44593a8b0909665c1066d4faa1f32c1315fec5b623eb"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "94276b469e172bf1ed0b763a6cd9215837da6bfa4e6b2637a41915d105690511"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 72,
|
||||
"QA": 2,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g6d-qa-20261024.json",
|
||||
"iva-l1-g5c-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo24/10 explicit immediate delivery of P048/P080 jointly;preserve closures/concurrent changes;installed delta only",
|
||||
"P084_P085": "Not delivered;documentary research joint,conditions distinct;draft preparation authorized without automatic benefit",
|
||||
"limits": "L1open;P001only05/06;import classification separate from deduction/field11;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"rollback": "Keep previous release/backup;prepared readonly containment disables only new recording,keeps readers/history;not applied",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"release_revision": {
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:47:40.841865+00:00",
|
||||
"manifest_sha256": "4e33ef8b77192cc28929f1ce8768c8df3d5e4b4d92ad912cf09d75077a9af40c"
|
||||
},
|
||||
"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-g6d-g5c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "9c03002c45875ffec171a96f40d75532fd2ea6efe7dd89120e527f73d48c0cce",
|
||||
"files_sha256": "24b8607c3e31787487daabe18903f021a916a794b6a17cdee2350b4ac807d81e",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6d_g5c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "9c03002c45875ffec171a96f40d75532fd2ea6efe7dd89120e527f73d48c0cce",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -81,6 +81,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificações de importação temporariamente suspensas; dados, histórico e relatórios preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -71,6 +71,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificacoes de importacao temporariamente suspensas; resultados guardados e relatorios disponiveis.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -1,6 +1,61 @@
|
||||
# Rastreabilidade, utilização e formação
|
||||
|
||||
|
||||
## 24/10/2026 — P080/G5C demonstradoQA;P084/P085 delimitados
|
||||
|
||||
Candidata`9842dcbb`;[registo detalhado](../simulations/iva-l1-g5c-qa-20261024.json). **P080,umramo/seistratamentos:**special_economic_zone_import,free_zone_import,free_warehouse_import,general_free_warehouse_import,customs_warehouse_import,duty_free_shop_import. CIVA14(1)(a) e condição inicial14(1),Lei13/2016PDF13/p1426(271);fonte e alterações2022/2025 reutilizadas. Extensão do classificador existente,sem schema/permissões novos. Confirmação própria do regime,controlo alfandegário,disposições especificamente aplicáveis,permanência e ausência de utilização/consumo finais;localização não concede isenção. Versãoimport-special-regimes/1 apenas nos livros que seleccionam estes tratamentos;chaves/fontes dos livros anteriores permanecem actuais.
|
||||
|
||||
20testesfrontend aprovados(3novosP080+17importações),APIprivadaQA1/26asserções,guarda*_test:55441 e rollback;tipos/build aprovados,avisospreexistentesplugins/chunks. UICodex/Edge-CUA:condição por indicar→indeterminado;não→não aplicação,sem taxa normal presumida;sim→isenção0.00MZN;Guardar→Recuperar→Relatório da gravação,opportunity334/Manica/2026-12,documento14/11/2026,6linhas e5versõesanteriores. Conferência automatizada/sintética,não aceitação manualTempo. Preservados25livros anteriores(20vendas,1aquisições,4importações),resultados/fontes/históricos exactamente iguais;P048QA não reaberto. Dedução/campo11 e totaisModeloA não alimentados;sem cálculo de direitos ou saída de regime.
|
||||
|
||||
**P084/P085 não concluídos:**diagnóstico individual na secção de preparação e na mesma matriz;14(2)(a/b) e14(3),procedimento regulamentar ainda não localizado nas fontes consultadas,sem declarar inexistência. Faltam os percursos específicos e respectiva verificação;estimativas preliminares6–10h/4–8h após delimitação documental,sem prazo confirmado para obtenção do procedimento. Nenhum certificado/aprovador/autorização genérica foi criado;nenhuma isenção de venda ou serviços foi inferida destes números.
|
||||
|
||||
**72entregues+2QA(P048/P080)+58funcionaispendentes+P001=133.** Continuam60por entregar,incluindo2QA. Homologaçãod46b794a/2ed62165 inalterada;nenhumpush/instalação/migração/alteraçãoactiva. Candidata9842dcbb inclui ancestralG6D/P048 aindaQA;qualquer entrega deverá explicitar esse âmbito e conferir apenas o delta instalado. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas. FecharL1 não exige concluirL2/L3 nem todos os impostos.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — diagnóstico individual P080/P084/P085 e preservação pré-testes
|
||||
|
||||
Pedido expressoTempo:explicar tratamentos,fontes,estado,impedimento,acção e estimativa;prosseguir onde houver condições. **72 entregues permanecem encerrados;P048/G6D permanece QA**,homologação d46b794a/recibo2ed62165. Saldo72entregues+1QA+59outrospendentes+P001=133;60ainda por entregar,não60desenvolvimentos inteiramente por iniciar. Inventário existente e recibos reutilizados;sem perdas confirmadas. Congelados25livros(20vendas,1aquisições,4importações),resultados/fontes/históricos;sem alteração noactivo,código/schema/dados/configuração/permissões do destino não tocados.
|
||||
|
||||
**P080:**CIVA14(1)(a) e condição inicial14(1),Lei13/2016 PDF13/p1426(271). Importações sob controlo alfandegário,sujeitas às disposições aplicáveis,colocadas nos seis regimes/depósitos/lojas enumerados,enquanto permanecem nesses regimes,sem utilização/consumo finais nas áreas mencionadas. Não é venda nem localização geográfica suficiente. Classificador/importações/API/relatório existentes;falta o ramo específico e verificação. Fonte suficiente para avançar emQA;4–6h preliminares,sem medição individual e sem incluir entregaGit.
|
||||
|
||||
**P084:**14(2)(a),14(3),mesma página. Aquisição/importação de bens para ofertas a instituições nacionais de interesse público e relevantes fins sociais,bens inteiramente adequados à natureza da instituição e utilizados em actividades de evidente interesse público. Não inclui serviços. **P085:**14(2)(b),14(3),aquisição de bens para ofertas que atenúem efeitos de calamidades naturais;sem estender automaticamente a importação ou serviços. Para ambos,falta localizar o procedimento regulamentar previsto14(3);não se afirma que inexista,nem se exige segunda autenticação da fonte. Consulta doRCIVADecreto7/2008,texto das suas páginas1–9,e inventários gerais não forneceu neste cotejo o procedimento específico. Pesquisa externa delimitada não substitui a leitura do diploma;nenhum resultado comercial é adoptado como regra. Referências anteriores genéricas a autorização/regulamentação foram substituídas na mesma matriz por esta dependência concreta. Desenvolvimento do percurso próprio e verificação ainda por executar. Estimativas preliminares,sem medição:6–10hP084;4–8hP085 com reutilização,após delimitação documental;obtenção documental sem prazo confirmado. Acção seguinte:localizar disposição regulamentar de14(2)(a/b) e respectivas alterações/âmbito,traduzir apenas condições expressas e verificar percurso completo. Não pedir aprovação jurídica genérica àTempo nem inventar certificado/aprovador.
|
||||
|
||||
P001só05/06;L1aberto. Classificação importação separada de dedução/campo11;bebidasL2/L3;Estatísticas/IAadiadas. FecharL1 não depende de concluirL2/L3 ou todos os impostos.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — G6D/P048 demonstrado em QA
|
||||
|
||||
**P048→customs_transit_import /customs_temporary_import /customs_drawback_import. Umramo/trêstratamentos**,candidata`0eb37ef5`,registo`iva_l1_g6d_P048_import_customs_QA_demonstrated_20261024`. Classificação do próprio acto de importação12(1)(c),não transmissão de bens no regimeG5/P083. FonteLei13/2016PDF11/p1426(269) com condição de bens nos três regimes **isentos totalmente de direitos aduaneiros**;texto e remissões2022/2025 conferidos na preparação abaixo. Consulta específica do índiceoficialINM sobreLei16/2020 documentada como âmbito9(13);tentativas de PDF indisponíveis não são apresentadas como ficheiros obtidos ou leitura integral. Fonte oficial aceiteTempo08/10,sem novo aprovador ou validação jurídica genérica.
|
||||
|
||||
Classificador de importações existente,sem schema/permissões novos;versãoimport-customs-regimes/1 apenas nos livros com os novos tratamentos,chaves/fontes/resultadosG6A/G6B/G6C mantidos actuais. Condição de regime própria por tratamento e isenção total de direitos separada da confirmação de reimportaçãoP049. Regime seleccionado não concede isençãoIVA. Informação em falta→indeterminado;condição não cumprida→não aplicação desta isenção,imposto normal por enquadrar;regime próprio e isenção total confirmados com contexto→IVAisento0.00MZN. Não presumir isenção total por redução parcial,suspensão ou promessa de restituição. Alterar tratamento conserva5000MZN/documento/respostas e o resultado anterior;calcular novamente arquiva a versão.
|
||||
|
||||
4testesnovos+13importaçõesexistentes aprovados;APIprivadaQA1teste/25asserções,guarda*_test:55441 e rollback;tipos/produção/QAaprovados,avisosexistentes deplugins/chunks. UICodex/Edge-CUA:isenção total por indicar→indeterminado,não→não aplicação,sim com regime→isenção;troca para importação temporária apresenta condição própria em falta,regresso recupera resposta de trânsito;Guardar→Recuperar sem divergênciaUTF8→Relatório comtrêstratamentosP048,opportunity333/Manica/2026-12,documento11/2026,fontes e4versõesanteriores. Preservados24livrosanteriores:20vendas,1aquisiçõesG5B e3importaçõesG6A/G6B/G6C,com resultados/fontes/históricos,íntegros/actuais sem recálculo. AuxiliarQA mantém teste de quebraUTF8multibyte;provasWord/PDF aceites reutilizadas,sem nova alegação de paginação ou conferência manualTempo.
|
||||
|
||||
**72entregues+1QA+59funcionaispendentes+P001=133.** G6:6entregues/1QA/8pendentes. Homologaçãod46b794a/2ed62165 inalterada. [Manifesto preparado](../simulations/l1-g6d-delivery-20261024.json),contenção de novas classificações conferida,não aplicada;leitores/histórico/relatório mantidos. Destino/main autenticados frescos e backup/restauro isolado continuam necessários antes de instalação;esta passagem não fezpush nem alterou oactivo. **P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.** Classificação da importação permanece separada da dedução/campo11L2,direitosL13,baseaduaneira,saída de regime e totaisModeloA;P086 e fonteBR89/2017 preservados.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — preparação G6D/P048 e preservação antes dos testes
|
||||
|
||||
Inventário existente: **72ramos entregues**,conforme matriz e reciboG6Cd46b794a/2ed62165;sem perda confirmada. Provas aceites de comparação código/schema/dados/configuração/permissões reutilizadas:174tabelas/369ficheiros,29fichas/28relações/408geometrias. Congelados24livros:20vendas,1aquisiçõesG5B e3importaçõesG6A/G6B/G6C,incluindo resultados,fontes,históricos,sem recálculo;fixtureiva-g6c-inputs.json. Nenhuma redução de âmbito prevista;sem novos testes ou alteração noactivo. **P080/P084/P085 explicitamente abertos.** Saldo72entregues+60funcionaispendentes+P001=133.
|
||||
|
||||
G6D delimita **P048→customs_transit_import /customs_temporary_import /customs_drawback_import:umramo/trêstratamentos**. Fonte:CIVA republicadoLei13/2016,12(1)(c),PDF11/p1426(269),página integral já conferida visualmente emG6A e reutilizada. Texto exige bens importados emtrânsito,importação temporária ou draubaque **isentos totalmente de direitos aduaneiros**. Lei22/2022PDF2/p2252(26) eLei10/2025PDF13/p2180(13) mantêm c) por remissão;os marcadores não trazem nova redacção expandida nem autorizam inventar regimes ou condições adicionais. Consulta delimitada da referênciaLei16/2020 no índiceoficialINM identifica alteração9(13),não12c;tentativas de página/PDF indisponíveis registadas,sem alegar leitura integral ou ficheiro obtido. Texto operativo usado é o original oficial de12c com remissões posteriores;consulta de âmbito não constitui nova autenticação da credibilidade da fonte aceiteTempo08/10. Inventário dos seis originais/hashes e inventários gerais existentes reutilizados.
|
||||
|
||||
Escolha técnica:extensão do classificador de importações existente,com versãoimport-customs-regimes/1 apenas nos livros que seleccionam os novos tratamentos. Condição de regime específica,sem herdar confirmação de trânsito para importação temporária/draubaque;condição de isenção total de direitos própria,não reutiliza a confirmação distinta da reimportaçãoP049. Redução parcial ou mera suspensão não comprovam isenção total,mas não determinam imposto normal nem eliminam os dados. Regime apenas seleccionado não concede isenção deIVA. Documento/período/moeda/fundamento e respostas anteriores conservados;calcular novamente arquiva a versão anterior. Não confundir com transmissões de bens dentro de regimeG5/P083:esta tranche classifica o próprio acto de importação12c. Não calcula direitos,baseaduaneira,saída de regime,dedução/campo11L2 ou totaisModeloA. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
## 24/10/2026 — G6C/P053/P054 entregue na homologação d46b794a
|
||||
|
||||
**P053→eligible_ship_import /ship_operation_object_import;P054→eligible_aircraft_import /aircraft_operation_object_import. Doisramos/quatrotratamentos**,classificação do IVA na importação12(1)(h/i) em2026/MZN,com elegibilidade13(1)(f/g) e ligação concreta do objecto. A Tempo aceitou a candidata8e5565d5 concluída emQA segundo o relatóriod65d3f5c e autorizou integração/disponibilização peloGit existente,com preservação de alterações concorrentes e conferência apenas do delta instalado. Provas aceites de condições,gravação/recuperação/relatório,quatrotratamentos e23livrosanteriores conservados/actuais reutilizadas,sem novo recálculo de aceitação ou conferência manual atribuída àTempo. P053/P054 não encerram abastecimentosP052,direitos,baseaduaneira,dedução/campo11 ou totaisModeloA.
|
||||
|
||||
Gitfast-forward sobre4cebd617;consulta fresca de main e destino autenticado sem avanço concorrente encontrado;70ramos e recibos anteriores preservados. Sessão SSH existente conferida pronta,sem registar credenciais. Backup novo e restauro real isolado sem rede:174tabelas/369ficheiros. Delta instalado:revisão efectivamente servida,manifesto/hash,oito marcadores,três ficheiros funcionais,simuladorHTTP200. Preservação:174tabelas,369ficheiros/configuração,29fichas publicadas/28relações/408geometrias,identidadePostgreSQL equivalente antes/depois;apenas diferenças operacionais cache/sessões registadas. Zero migrações/importações/alterações de permissões ou ensaios sintéticos noactivo. Backup/release anterior conservados;contenção de novas classificações conferida,não aplicada;leitores/histórico/relatórios mantidos.
|
||||
|
||||
[Manifesto/recibo](../simulations/l1-g6c-delivery-20261024.json),registo `iva_l1_g6c_homologation_20261024`. **72entregues+60funcionaispendentes+P001=133;sem candidatasQA por disponibilizar.** G6:6entregues/9pendentes. **P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.** P086 permanece disposição eliminada/encaminhamento aplicável,fonteBR89/2017 preservada.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — G6C/P053/P054 demonstrado em QA
|
||||
|
||||
**P053→eligible_ship_import /ship_operation_object_import;P054→eligible_aircraft_import /aircraft_operation_object_import. DoisIDs/quatrotratamentos**,candidata`8e5565d5`,registo`iva_l1_g6c_P053_P054_import_assets_QA_demonstrated_20261024`. Importação12(1)(h/i),por referência aos meios13(1)(f/g) e actividades13(1)(c/d);não venda interna nem abastecimentoP052. Página integralLei13/2016PDF11/p1426(269) ePDF12/p1426(270),já conferidasG6A/G4B,e alterações2022/2025 reutilizadas. Fonte oficial aceiteTempo08/10;sem nova validação jurídica genérica. Identificar meio/utilização e,para objecto,ligação concreta à respectiva exploração. No avião,companhia principalmente internacional,não voo isolado;na embarcação,actividade legal própria,não barco de recreio genérico.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@ export function SimulationImportExemptions({draft,onChange}:{draft:Record<string
|
||||
const change=(id:string,patch:Partial<ImportExemptionRow>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
return <details className="space-y-3 rounded border p-3">
|
||||
<summary>IVA na importação — enquadramentos disponíveis</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Indique apenas importações relevantes: reimportação no mesmo estado, ouro pelo Banco de Moçambique, objectos de arte, veículo de combate a incêndios, embarcação/avião elegível ou objecto da sua exploração. Escolha o ramo para apresentar as condições aplicáveis. Cobertura2026/MZN; as compras internas e os seus resultados conservam-se.</p>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Indique apenas importações relevantes: reimportação no mesmo estado, ouro pelo Banco de Moçambique, objectos de arte, veículo de combate a incêndios, embarcação/avião elegível ou objecto da sua exploração, bens em regime aduaneiro com isenção total de direitos, ou importação sob controlo alfandegário em zona/depósito/loja franca nas condições próprias. Escolha o ramo para apresentar as condições aplicáveis. Cobertura2026/MZN; as compras internas e os seus resultados conservam-se.</p>
|
||||
<p>O valor declarado/previsional é conservado, sem o fixar como base aduaneira. A classificação não preenche o campo11 de dedução nem os totais do ModeloA. Uma condição não cumprida afasta só esta isenção; o imposto normal fica por enquadrar. Nas projecções, as respostas são pressupostos, sem certificação aduaneira.</p>
|
||||
{error&&<p role="alert">{error}</p>}
|
||||
<button type="button" className="underline" onClick={()=>save({...book,rows:[...book.rows,newImportExemption(crypto.randomUUID(),String(draft.currency??''))]})}>Acrescentar importação relevante</button>
|
||||
|
||||
@@ -8,7 +8,18 @@ export const importBeneficiaryVersion = 'import-beneficiaries/1';
|
||||
export const importBeneficiarySource = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.12(1)(j/l),PDF11/p.1426(269). Lei22/2022,PDF2/p.2252(26),e Lei10/2025,PDF13/p.2180(13),mantêm j/l. Cobertura2026/MZN; importação de objectos de arte e veículo de combate a incêndios nas condições próprias,sem dedução no campo11 nem cálculo de direitos aduaneiros.';
|
||||
export const importAssetVersion = 'import-assets/1';
|
||||
export const importAssetSource = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.12(1)(h/i),PDF11/p.1426(269),por referência a13(1)(f/g),PDF12/p.1426(270),e actividades de13(1)(c/d). Lei22/2022,PDF2/p.2252(26),e Lei10/2025,PDF13/p.2180(13),mantêm h/i;13 não alterado nesses diplomas. Cobertura2026/MZN; importação de embarcação/avião elegível ou objecto incorporado/utilizado na respectiva exploração,sem dedução no campo11,base aduaneira ou cálculo de direitos aduaneiros.';
|
||||
export const importCustomsVersion = 'import-customs-regimes/1';
|
||||
export const importCustomsSource = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.12(1)(c),PDF11/p.1426(269): importações de bens nos regimes de trânsito, importação temporária ou draubaque que sejam isentas totalmente de direitos aduaneiros. Lei22/2022,PDF2/p.2252(26),e Lei10/2025,PDF13/p.2180(13),mantêm c) por remissão,sem nova redacção expandida neste recorte. Cobertura2026/MZN; classificação de IVA na importação,sem cálculo de direitos,base aduaneira,saída de regime ou dedução no campo11.';
|
||||
export const importSpecialRegimeVersion = 'import-special-regimes/1';
|
||||
export const importSpecialRegimeSource = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.14(1)(a) e condição inicial14(1),PDF13/p.1426(271). Lei22/2022 e Lei10/2025 não alteram14 neste acervo. Importações sob controlo alfandegário e disposições especificamente aplicáveis, enquanto os bens permanecem nos regimes enumerados, sem utilização nem consumo finais nas áreas mencionadas. Cobertura2026/MZN; sem dedução/campo11, cálculo de direitos ou saída do regime.';
|
||||
export const importExemptionRules = [
|
||||
{id:'special_economic_zone_import',branch:'P080',label:"Importação — Zona económica especial",article:'14(1)(a)',conditions:[["specialEconomicZone", "Os bens importados são colocados no regime de zona económica especial identificado no documento; a localização geográfica, por si só, não comprova o regime"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
{id:'free_zone_import',branch:'P080',label:"Importação — Zona franca",article:'14(1)(a)',conditions:[["freeZone", "Os bens importados são colocados no regime de zona franca identificado no documento"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
{id:'free_warehouse_import',branch:'P080',label:"Importação — Depósito franco",article:'14(1)(a)',conditions:[["freeWarehouse", "Os bens importados são colocados no regime de depósito franco identificado no documento"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
{id:'general_free_warehouse_import',branch:'P080',label:"Importação — Depósito geral franco",article:'14(1)(a)',conditions:[["generalFreeWarehouse", "Os bens importados são colocados no regime de depósito geral franco identificado no documento"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
{id:'customs_warehouse_import',branch:'P080',label:"Importação — Depósito de regime aduaneiro",article:'14(1)(a)',conditions:[["customsWarehouse", "Os bens importados são introduzidos no depósito de regime aduaneiro identificado no documento"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
{id:'duty_free_shop_import',branch:'P080',label:"Importação — Loja franca",article:'14(1)(a)',conditions:[["dutyFreeShop", "Os bens importados são introduzidos na loja franca identificada no documento"], ["specialCustomsControl", "Esta importação encontra-se sob controlo alfandegário"], ["specialApplicableProvisions", "A importação está sujeita às disposições especificamente aplicáveis ao regime identificado; indicar no fundamento factual o regime e documento aplicáveis"], ["specialRegimePermanence", "Os bens permanecem sob o regime identificado no período desta classificação"], ["specialNoFinalUseConsumption", "Os bens não têm utilização nem consumo finais nas áreas mencionadas no regime"]]},
|
||||
|
||||
{id:'reimport_same_state',branch:'P049',label:'Reimportação por quem exportou, no mesmo estado',article:'12(1)(d)',conditions:[['sameExporter','A reimportação é efectuada por quem exportou os bens'],['sameState','Os bens regressam no mesmo estado em que foram exportados'],['customsExempt','Esta reimportação beneficia de isenção de direitos aduaneiros']]},
|
||||
{id:'central_bank_gold',branch:'P051',label:'Importação de ouro pelo Banco de Moçambique',article:'12(1)(f)',conditions:[['gold','Os bens importados são ouro'],['centralBank','A importação é efectuada pelo Banco de Moçambique']]},
|
||||
{id:'author_art_import',branch:'P055',label:'Objectos de arte pelos artistas-autores, herdeiros ou legatários',article:'12(1)(j)',conditions:[['artObjects','Os bens importados são objectos de arte'],['eligibleArtImporter','A importação é efectuada pelos próprios artistas-autores, residentes no território nacional, seus herdeiros ou legatários; a identidade, residência e relação aplicáveis estão identificadas no fundamento factual']]},
|
||||
@@ -17,11 +28,16 @@ export const importExemptionRules = [
|
||||
{id:'ship_operation_object_import',branch:'P053',label:'Importação de objecto incorporado ou utilizado na exploração de embarcação elegível',article:'12(1)(h)',conditions:[['eligibleShip',internationalShipEligibility],['shipObjectLink','O objecto importado está incorporado na embarcação elegível identificada ou é utilizado na sua exploração; objecto, embarcação e ligação concreta identificados no documento ou pressuposto, não um fornecimento genérico ao operador']]},
|
||||
{id:'eligible_aircraft_import',branch:'P054',label:'Importação de avião de companhia principalmente internacional',article:'12(1)(i)',conditions:[['eligibleAircraft',internationalAircraftEligibility],['importedAircraft','O bem importado é o próprio avião elegível identificado; não um serviço nem qualquer bem adquirido pela companhia']]},
|
||||
{id:'aircraft_operation_object_import',branch:'P054',label:'Importação de objecto incorporado ou utilizado na exploração de avião elegível',article:'12(1)(i)',conditions:[['eligibleAircraft',internationalAircraftEligibility],['aircraftObjectLink','O objecto importado está incorporado no avião elegível identificado ou é utilizado na sua exploração; objecto, avião e ligação concreta identificados no documento ou pressuposto, não um fornecimento genérico à companhia']]},
|
||||
{id:'customs_transit_import',branch:'P048',label:'Importação de bens em trânsito com isenção total de direitos',article:'12(1)(c)',conditions:[['customsTransit','Os bens identificados são importados sob regime de trânsito; regime e operação constam do documento ou pressuposto expresso, não apenas passagem geográfica'],['fullCustomsExemption','Esta importação beneficia de isenção total de direitos aduaneiros, identificada no fundamento factual; redução parcial ou mera suspensão não comprovam esta condição']]},
|
||||
{id:'customs_temporary_import',branch:'P048',label:'Importação temporária de bens com isenção total de direitos',article:'12(1)(c)',conditions:[['customsTemporary','Os bens identificados são importados sob regime de importação temporária; regime e operação constam do documento ou pressuposto expresso, não apenas intenção de utilização temporária'],['fullCustomsExemption','Esta importação beneficia de isenção total de direitos aduaneiros, identificada no fundamento factual; redução parcial ou mera suspensão não comprovam esta condição']]},
|
||||
{id:'customs_drawback_import',branch:'P048',label:'Importação de bens em draubaque com isenção total de direitos',article:'12(1)(c)',conditions:[['customsDrawback','Os bens identificados são importados sob regime de draubaque; regime e operação constam do documento ou pressuposto expresso, não qualquer promessa de restituição futura'],['fullCustomsExemption','Esta importação beneficia de isenção total de direitos aduaneiros, identificada no fundamento factual; redução parcial ou mera suspensão não comprovam esta condição']]},
|
||||
] as const;
|
||||
type Condition = 'sameExporter'|'sameState'|'customsExempt'|'gold'|'centralBank'|'artObjects'|'eligibleArtImporter'|'fireVehicle'|'fireBrigade'|'exclusiveOwnUse'|'eligibleShip'|'importedShip'|'shipObjectLink'|'eligibleAircraft'|'importedAircraft'|'aircraftObjectLink';
|
||||
type Condition = 'specialEconomicZone'|'freeZone'|'freeWarehouse'|'generalFreeWarehouse'|'customsWarehouse'|'dutyFreeShop'|'specialCustomsControl'|'specialApplicableProvisions'|'specialRegimePermanence'|'specialNoFinalUseConsumption'|'sameExporter'|'sameState'|'customsExempt'|'gold'|'centralBank'|'artObjects'|'eligibleArtImporter'|'fireVehicle'|'fireBrigade'|'exclusiveOwnUse'|'eligibleShip'|'importedShip'|'shipObjectLink'|'eligibleAircraft'|'importedAircraft'|'aircraftObjectLink'|'customsTransit'|'customsTemporary'|'customsDrawback'|'fullCustomsExemption';
|
||||
function beneficiaryImport(id:string):boolean {return id==='author_art_import'||id==='fire_brigade_vehicle';}
|
||||
function assetImport(id:string):boolean {return ['eligible_ship_import','ship_operation_object_import','eligible_aircraft_import','aircraft_operation_object_import'].includes(id);}
|
||||
export function importRuleSource(id:string):string {return assetImport(id)?importAssetSource:beneficiaryImport(id)?importBeneficiarySource:importExemptionSource;}
|
||||
function customsImport(id:string):boolean {return ['customs_transit_import','customs_temporary_import','customs_drawback_import'].includes(id);}
|
||||
function specialRegimeImport(id:string):boolean {return ["special_economic_zone_import", "free_zone_import", "free_warehouse_import", "general_free_warehouse_import", "customs_warehouse_import", "duty_free_shop_import"].includes(id);}
|
||||
export function importRuleSource(id:string):string {return specialRegimeImport(id)?importSpecialRegimeSource:customsImport(id)?importCustomsSource:assetImport(id)?importAssetSource:beneficiaryImport(id)?importBeneficiarySource:importExemptionSource;}
|
||||
export type ImportExemptionRow = {id:string;treatment:string;description:string;period:string;origin:'projected'|'effective';currency:string;declaredValue:string;goodsCode:string;originCountry:string;importer:string;documentRef:string;documentDate:string;evidence:string;conditions:Partial<Record<Condition,Choice>>};
|
||||
type ImportResult = {id:string;status:'exempt'|'not_applicable'|'indeterminate';importVat:string|null;reason:string};
|
||||
export type ImportExemptionCalculation = {version:string;revision:number;calculatedAt:string;opportunity:string;location:string;sourceKey:string;source:string;inputs:ImportExemptionRow[];rows:ImportResult[]};
|
||||
@@ -61,7 +77,7 @@ export function evaluateImportExemption(row:ImportExemptionRow,currency:unknown)
|
||||
}
|
||||
function key(draft:Record<string,unknown>,book:ImportExemptionBook):string {
|
||||
const base={version:importExemptionVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows};
|
||||
return JSON.stringify({...base,...(book.rows.some(row=>beneficiaryImport(row.treatment))?{beneficiaryVersion:importBeneficiaryVersion}:{}),...(book.rows.some(row=>assetImport(row.treatment))?{assetVersion:importAssetVersion}:{})});
|
||||
return JSON.stringify({...base,...(book.rows.some(row=>beneficiaryImport(row.treatment))?{beneficiaryVersion:importBeneficiaryVersion}:{}),...(book.rows.some(row=>assetImport(row.treatment))?{assetVersion:importAssetVersion}:{}),...(book.rows.some(row=>customsImport(row.treatment))?{customsVersion:importCustomsVersion}:{}),...(book.rows.some(row=>specialRegimeImport(row.treatment))?{specialRegimeVersion:importSpecialRegimeVersion}:{})});
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IvaImportCustomsDraftTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_import_classification_recovers_privately_without_changing_delivered_books(): void
|
||||
{
|
||||
$target = DB::selectOne('select current_database() as name,inet_server_port() as port');
|
||||
$this->assertSame('simulator_fiscal_delta_20261021_test', $target->name);
|
||||
$this->assertSame(55441, (int) $target->port);
|
||||
config(['investor-path.enabled' => true, 'suitecrm.enabled' => false]);
|
||||
$this->actingAs(User::factory()->create(['email_verified_at' => now()]));
|
||||
$draft = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g6d-imports.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$id = $this->postJson('/api/v1/simulation-drafts', ['personal_snapshot' => [], 'economic_snapshot' => $draft], ['Idempotency-Key' => (string) Str::uuid()])->assertCreated()->json('data.id');
|
||||
$recovered = $this->getJson('/api/v1/simulation-drafts/'.$id)->assertOk()->json('data.economic_snapshot');
|
||||
$this->assertSame($draft['modelo_a_snapshot'], $recovered['modelo_a_snapshot']);
|
||||
$this->assertSame('opportunity:333', $recovered['context_opportunity']);
|
||||
$this->assertSame('Manica', $recovered['selection_labels']['province_id']);
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['importExemptions']['opportunity:333'];
|
||||
$this->assertCount(3, $book['rows']);
|
||||
$this->assertSame(['customs_transit_import', 'customs_temporary_import', 'customs_drawback_import'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['0.00', '0.00', '0.00'], array_column($book['result']['rows'], 'importVat'));
|
||||
$this->assertSame(['exempt', 'exempt', 'exempt'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame('2026-12', $book['rows'][0]['period']);
|
||||
$this->assertSame('5000', $book['rows'][0]['declaredValue']);
|
||||
$this->assertSame('SYNTHETIC QA G6D customs_transit_import', $book['rows'][0]['documentRef']);
|
||||
$this->assertStringContainsString('12(1)(c)', $book['result']['source']);
|
||||
$frozen = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g6c-inputs.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$prior = json_decode($frozen['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$this->assertSame($prior['salesOperations'], $store['salesOperations']);
|
||||
$this->assertSame($prior['books'], $store['books']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:330'], $store['importExemptions']['opportunity:330']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:331'], $store['importExemptions']['opportunity:331']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:332'], $store['importExemptions']['opportunity:332']);
|
||||
$this->assertCount(1, $book['history']);
|
||||
$this->assertNull($book['history'][0]['rows'][0]['importVat']);
|
||||
$this->assertNull($store['books']['opportunity:329']['result']['periods'][0]['fields']['11']);
|
||||
$this->assertNull($store['books']['opportunity:329']['result']['periods'][0]['fields']['17']);
|
||||
$this->assertStringContainsString('BR89', $store['books']['opportunity:329']['result']['sources']);
|
||||
file_put_contents(base_path('outputs/iva-l1-g6d-imports-20261024/recovered.json'), json_encode($recovered, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IvaImportSpecialRegimesDraftTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_import_classification_recovers_privately_without_changing_delivered_books(): void
|
||||
{
|
||||
$target = DB::selectOne('select current_database() as name,inet_server_port() as port');
|
||||
$this->assertSame('simulator_fiscal_delta_20261021_test', $target->name);
|
||||
$this->assertSame(55441, (int) $target->port);
|
||||
config(['investor-path.enabled' => true, 'suitecrm.enabled' => false]);
|
||||
$this->actingAs(User::factory()->create(['email_verified_at' => now()]));
|
||||
$draft = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g5c-imports.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$id = $this->postJson('/api/v1/simulation-drafts', ['personal_snapshot' => [], 'economic_snapshot' => $draft], ['Idempotency-Key' => (string) Str::uuid()])->assertCreated()->json('data.id');
|
||||
$recovered = $this->getJson('/api/v1/simulation-drafts/'.$id)->assertOk()->json('data.economic_snapshot');
|
||||
$this->assertSame($draft['modelo_a_snapshot'], $recovered['modelo_a_snapshot']);
|
||||
$this->assertSame('opportunity:334', $recovered['context_opportunity']);
|
||||
$this->assertSame('Manica', $recovered['selection_labels']['province_id']);
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['importExemptions']['opportunity:334'];
|
||||
$this->assertCount(6, $book['rows']);
|
||||
$this->assertSame(['special_economic_zone_import', 'free_zone_import', 'free_warehouse_import', 'general_free_warehouse_import', 'customs_warehouse_import', 'duty_free_shop_import'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(array_fill(0, 6, '0.00'), array_column($book['result']['rows'], 'importVat'));
|
||||
$this->assertSame(array_fill(0, 6, 'exempt'), array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame('2026-12', $book['rows'][0]['period']);
|
||||
$this->assertSame('5000', $book['rows'][0]['declaredValue']);
|
||||
$this->assertSame('SYNTHETIC QA G5C special_economic_zone_import', $book['rows'][0]['documentRef']);
|
||||
$this->assertStringContainsString('14(1)(a)', $book['result']['source']);
|
||||
$frozen = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g6d-inputs.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$prior = json_decode($frozen['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$this->assertSame($prior['salesOperations'], $store['salesOperations']);
|
||||
$this->assertSame($prior['books'], $store['books']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:330'], $store['importExemptions']['opportunity:330']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:331'], $store['importExemptions']['opportunity:331']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:332'], $store['importExemptions']['opportunity:332']);
|
||||
$this->assertCount(2, $book['history']);
|
||||
$this->assertSame($prior['importExemptions']['opportunity:333'], $store['importExemptions']['opportunity:333']);
|
||||
$this->assertNull($book['history'][0]['rows'][0]['importVat']);
|
||||
$this->assertNull($store['books']['opportunity:329']['result']['periods'][0]['fields']['11']);
|
||||
$this->assertNull($store['books']['opportunity:329']['result']['periods'][0]['fields']['17']);
|
||||
$this->assertStringContainsString('BR89', $store['books']['opportunity:329']['result']['sources']);
|
||||
file_put_contents(base_path('outputs/iva-l1-g5c-review-20261024/recovered.json'), json_encode($recovered, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,52 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { newImportExemption,evaluateImportExemption,recordImportExemptions,saveImportExemptionBook,importExemptionBook,importExemptionCurrent,importExemptionRules,importCustomsSource } from '../../resources/js/lib/iva-import-exemptions.ts';
|
||||
import { salesCurrent } from '../../resources/js/lib/iva-operations.ts';
|
||||
import { acquisitionCurrent } from '../../resources/js/lib/iva-acquisitions.ts';
|
||||
import { createProjectDossierReport } from '../../resources/js/lib/project-dossier-report.ts';
|
||||
const frozen=JSON.parse(fs.readFileSync(new URL('./fixtures/iva-g6c-inputs.json',import.meta.url),'utf8'));
|
||||
const ids=['customs_transit_import','customs_temporary_import','customs_drawback_import'];
|
||||
const row=(treatment=ids[0])=>({...newImportExemption('g6d-'+treatment,'MZN'),treatment,description:'SYNTHETIC QA '+treatment,period:'2026-12',declaredValue:'5000',importer:'SYNTHETIC QA importador',documentRef:'SYNTHETIC QA G6D '+treatment,documentDate:'2026-11-14',evidence:'SYNTHETIC QA bens, regime e isenção total de direitos expressamente assumidos; não é documento real',conditions:Object.fromEntries(importExemptionRules.find(r=>r.id===treatment).conditions.map(([key])=>[key,'yes']))});
|
||||
const draft=()=>({...structuredClone(frozen),context_opportunity:'opportunity:333',project_title:'SYNTHETIC QA — G6D / Regimes aduaneiros'});
|
||||
|
||||
test('P048 has three treatments,one branch;regime and total customs exemption both required,unknown is not zero',()=>{
|
||||
for(const id of ids){
|
||||
const input=row(id),rule=importExemptionRules.find(r=>r.id===id);assert.equal(rule.branch,'P048');assert.equal(evaluateImportExemption(input,'MZN').importVat,'0.00');
|
||||
for(const [key] of rule.conditions)for(const value of ['','no','unknown']){
|
||||
const result=evaluateImportExemption({...input,conditions:{...input.conditions,[key]:value}},'MZN');assert.equal(result.status,value==='no'?'not_applicable':'indeterminate');assert.equal(result.importVat,null);
|
||||
}
|
||||
for(const patch of [{period:'2025-12'},{currency:'USD'},{documentRef:''},{documentDate:'2026-02-30'},{evidence:''}])assert.equal(evaluateImportExemption({...input,...patch},'MZN').importVat,null);
|
||||
assert.deepEqual(input,row(id));
|
||||
}
|
||||
assert.match(importCustomsSource,/isentas totalmente de direitos aduaneiros/);
|
||||
});
|
||||
|
||||
test('partial relief,suspension or former reimport confirmation never substitute for full exemption;regimes keep distinct confirmations',()=>{
|
||||
const input=row();
|
||||
for(const evidence of ['SYNTHETIC QA redução parcial50%','SYNTHETIC QA mera suspensão de direitos']){
|
||||
const result=evaluateImportExemption({...input,evidence,conditions:{...input.conditions,fullCustomsExemption:'no'}},'MZN');assert.equal(result.status,'not_applicable');assert.equal(result.importVat,null);assert.match(result.reason,/sem taxa presumida/);
|
||||
}
|
||||
assert.equal(evaluateImportExemption({...input,conditions:{customsTransit:'yes',customsExempt:'yes'}},'MZN').status,'indeterminate');
|
||||
const switched={...input,treatment:ids[1]};assert.equal(evaluateImportExemption(switched,'MZN').status,'indeterminate');assert.equal(switched.documentRef,input.documentRef);assert.equal(switched.conditions.customsTransit,'yes');
|
||||
assert.equal(evaluateImportExemption({...switched,conditions:{...switched.conditions,customsTemporary:'yes'}},'MZN').status,'exempt');
|
||||
assert.equal(evaluateImportExemption({...input,treatment:ids[2]},'MZN').status,'indeterminate');
|
||||
});
|
||||
|
||||
test('explicit classification archives indeterminate/nonapplicable inputs;currency and context changes mark earlier result historical',()=>{
|
||||
const d=draft(),input=row();let book=recordImportExemptions(d,{rows:[{...input,conditions:{customsTransit:'yes'}}]});assert.equal(book.result.rows[0].status,'indeterminate');
|
||||
book=recordImportExemptions(d,{...book,rows:[{...input,conditions:{...input.conditions,fullCustomsExemption:'no'}}]});assert.equal(book.result.rows[0].status,'not_applicable');
|
||||
book=recordImportExemptions(d,{...book,rows:ids.map(row)});assert.equal(book.history.length,2);assert.equal(book.history[0].rows[0].importVat,null);assert.equal(book.history[1].rows[0].importVat,null);assert.ok(importExemptionCurrent(d,book));
|
||||
for(const patch of [{currency:'USD'},{context_opportunity:'opportunity:332'},{selection_labels:{province_id:'Maputo'}}])assert.ok(!importExemptionCurrent({...d,...patch},book));
|
||||
});
|
||||
|
||||
test('save/recover/report preserve24acceptedbooks current;P048 has three report rows and never populates deduction field11',()=>{
|
||||
const d=draft(),prior=JSON.parse(frozen.modelo_a_snapshot);let book=recordImportExemptions(d,{rows:ids.map(id=>({...row(id),conditions:{}}))});book=recordImportExemptions(d,{...book,rows:ids.map(row)});d.modelo_a_snapshot=saveImportExemptionBook(d,book);
|
||||
assert.deepEqual(importExemptionBook(JSON.parse(JSON.stringify(d))),book);assert.match(book.result.sourceKey,/import-customs-regimes\/1/);assert.doesNotMatch(book.result.sourceKey,/beneficiaryVersion|assetVersion/);assert.match(book.result.source,/12\(1\)\(c\)/);
|
||||
const next=JSON.parse(d.modelo_a_snapshot);assert.deepEqual(next.salesOperations,prior.salesOperations);assert.deepEqual(next.books,prior.books);assert.equal(Object.keys(prior.importExemptions).length,3);
|
||||
for(const [scope,imports] of Object.entries(prior.importExemptions)){assert.deepEqual(next.importExemptions[scope],imports);assert.ok(importExemptionCurrent({...d,context_opportunity:scope},imports));}
|
||||
for(const [scope,sales] of Object.entries(next.salesOperations))assert.ok(salesCurrent({...d,context_opportunity:scope},sales));
|
||||
assert.ok(acquisitionCurrent({...d,context_opportunity:'opportunity:329'},next.books['opportunity:329']));for(const field of ['11','17','18'])assert.equal(next.books['opportunity:329'].result.periods[0].fields[field],null);
|
||||
const report=JSON.stringify(createProjectDossierReport(d,{selectedSections:new Set(['finance']),version:'QA G6D'}));for(const token of ['P048','opportunity:333','Manica','2026-12','SYNTHETIC QA G6D','0.00','12(1)(c)','campo11',...ids])assert.ok(report.includes(token),token);
|
||||
if(process.env.IVA_G6D_CALCULATED)fs.writeFileSync(process.env.IVA_G6D_CALCULATED,JSON.stringify(d));
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { newImportExemption,evaluateImportExemption,recordImportExemptions,saveImportExemptionBook,importExemptionBook,importExemptionCurrent,importExemptionRules,importSpecialRegimeSource } from '../../resources/js/lib/iva-import-exemptions.ts';
|
||||
import { createProjectDossierReport } from '../../resources/js/lib/project-dossier-report.ts';
|
||||
const frozen=JSON.parse(fs.readFileSync(new URL('./fixtures/iva-g6d-inputs.json',import.meta.url),'utf8'));
|
||||
const rules=importExemptionRules.filter(r=>r.branch==='P080');
|
||||
const row=rule=>({...newImportExemption('g5c-'+rule.id,'MZN'),treatment:rule.id,description:'SYNTHETIC QA '+rule.label,period:'2026-12',declaredValue:'5000',importer:'SYNTHETIC QA importador',documentRef:'SYNTHETIC QA G5C '+rule.id,documentDate:'2026-11-14',evidence:'SYNTHETIC QA regime e documento aplicável, controlo e permanência; sem uso/consumo finais. Pressuposto expresso, não é documento real.',conditions:Object.fromEntries(rule.conditions.map(([key])=>[key,'yes']))});
|
||||
const draft=()=>({...structuredClone(frozen),context_opportunity:'opportunity:334',project_title:'SYNTHETIC QA — G5C / Importações em regimes especiais'});
|
||||
|
||||
test('P080 covers six enumerated regimes; each legal condition independently prevents an unfounded zero',()=>{
|
||||
assert.equal(rules.length,6);assert.match(importSpecialRegimeSource,/14\(1\)\(a\)/);
|
||||
for(const rule of rules){const input=row(rule);assert.equal(evaluateImportExemption(input,'MZN').importVat,'0.00');
|
||||
for(const [key] of rule.conditions)for(const value of ['','unknown','no']){const result=evaluateImportExemption({...input,conditions:{...input.conditions,[key]:value}},'MZN');assert.equal(result.status,value==='no'?'not_applicable':'indeterminate');assert.equal(result.importVat,null);}
|
||||
for(const patch of [{period:'2025-12'},{currency:'USD'},{documentRef:''},{documentDate:'2026-02-30'},{evidence:''}])assert.equal(evaluateImportExemption({...input,...patch},'MZN').importVat,null);
|
||||
}
|
||||
});
|
||||
test('geography or regime selection alone cannot exempt; switching regimes preserves data but requires own confirmation',()=>{
|
||||
const input=row(rules[0]);assert.equal(evaluateImportExemption({...input,conditions:{}},'MZN').status,'indeterminate');
|
||||
const switched={...input,treatment:rules[1].id};assert.equal(evaluateImportExemption(switched,'MZN').status,'indeterminate');assert.equal(switched.documentRef,input.documentRef);assert.equal(switched.conditions.specialEconomicZone,'yes');
|
||||
assert.equal(evaluateImportExemption({...switched,conditions:{...switched.conditions,freeZone:'yes'}},'MZN').status,'exempt');
|
||||
for(const key of ['specialRegimePermanence','specialNoFinalUseConsumption'])assert.equal(evaluateImportExemption({...input,conditions:{...input.conditions,[key]:'no'}},'MZN').status,'not_applicable');
|
||||
});
|
||||
test('P080 save/recover/report archives negative/unknown history and preserves all25 prior books, source keys and field11',()=>{
|
||||
const d=draft(),prior=JSON.parse(frozen.modelo_a_snapshot);let book=recordImportExemptions(d,{rows:rules.map(rule=>({...row(rule),conditions:{}}))});book=recordImportExemptions(d,{...book,rows:rules.map(rule=>({...row(rule),conditions:{...row(rule).conditions,specialNoFinalUseConsumption:'no'}}))});book=recordImportExemptions(d,{...book,rows:rules.map(row)});
|
||||
assert.equal(book.history.length,2);assert.equal(book.history[0].rows[0].status,'indeterminate');assert.equal(book.history[1].rows[0].status,'not_applicable');assert.ok(book.history.every(h=>h.rows.every(r=>r.importVat===null)));
|
||||
d.modelo_a_snapshot=saveImportExemptionBook(d,book);assert.deepEqual(importExemptionBook(JSON.parse(JSON.stringify(d))),book);assert.ok(importExemptionCurrent(d,book));assert.ok(!importExemptionCurrent({...d,context_opportunity:'opportunity:333'},book));assert.match(book.result.sourceKey,/import-special-regimes\/1/);
|
||||
const next=JSON.parse(d.modelo_a_snapshot);assert.deepEqual(next.salesOperations,prior.salesOperations);assert.deepEqual(next.books,prior.books);assert.equal(Object.keys(prior.importExemptions).length,4);
|
||||
for(const [scope,previous] of Object.entries(prior.importExemptions)){assert.deepEqual(next.importExemptions[scope],previous);assert.ok(importExemptionCurrent({...d,context_opportunity:scope},previous));}
|
||||
assert.equal(next.books['opportunity:329'].result.periods[0].fields['11'],null);
|
||||
const report=JSON.stringify(createProjectDossierReport(d,{selectedSections:new Set(['finance']),version:'QA G5C'}));for(const token of ['P080','opportunity:334','Manica','2026-12','SYNTHETIC QA G5C','0.00','14(1)(a)','campo11',...rules.map(r=>r.id)])assert.ok(report.includes(token),token);
|
||||
if(process.env.IVA_G5C_CALCULATED)fs.writeFileSync(process.env.IVA_G5C_CALCULATED,JSON.stringify(d));
|
||||
});
|
||||
Reference in New Issue
Block a user