Compare commits
4
Commits
e3601c124d
...
4cebd61765
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cebd61765 | ||
|
|
1efb32c244 | ||
|
|
f75f36f0e3 | ||
|
|
a23f1dcb6e |
@@ -12239,5 +12239,648 @@
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed6f056359;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed"
|
||||
},
|
||||
"iva_l1_g6a_homologation_20261024": {
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "965da2642627ad1e484d52587e07b4a60cae6af2",
|
||||
"base": "e99ea1d0",
|
||||
"last_known_remote_main": "6f056359",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P049": "reimport_same_state",
|
||||
"AUD-SIM-L1-P051": "central_bank_gold"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "43d823a594c5ea98801b69597fbd660effd90596709dec3a84787b7b11eef1c8"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "20f35daf9573e9ff0813ee7b0e3f4ad19eb0d47eabb0d661af845a915e76340e"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "a41275ce37268345d137745572c858ff3c989e392af337235f6b8b5e7dc38b86"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "ac75a0e24fdf31d17a90b3c9ecec338d6f0e309bd302d1254da04c2eacc493b3"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 5,
|
||||
"affected_report_tests": 14,
|
||||
"frontend_total": 19,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 20,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject passed,temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18642/g6a.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,1000MZN retained",
|
||||
"save/recover/report ->P049/P051,Manica,2026-12,documents,sources",
|
||||
"three previous UI results;20salesbooks and1purchasebook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6a-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "e6914778f6513e2ea22850d1b30a79ff3592e0c8085cb09c38f1ffb23541cf9c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6a-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "93d9e16845af367cab80ee4d646cc679b9668495c822d26ed6157caeb74da3fb",
|
||||
"files_sha256": "928f06a3795206702dbdc3ebd3ef76f9e345a199c1ec81f5abfa97a40154ba58",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "93d9e16845af367cab80ee4d646cc679b9668495c822d26ed6157caeb74da3fb",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. 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": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"release_revision": {
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:10:20.021314+00:00",
|
||||
"manifest_sha256": "0e2ee85ab107f34efcc9c589328a0635d2d6021ba28ee387e02b0654aeab85db"
|
||||
},
|
||||
"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 confirmed6f056359;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_G6A": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated6f056359 before installation;see authenticated_preflight",
|
||||
"treatment": "P049/reimport_same_state,12(1)(d);P051/central_bank_gold,12(1)(f);classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "3cef2e5d47d357e3a831ee9fc1f332d0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "fa38aab45da6527192848bea480f8014"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 29,
|
||||
"checksum": "f7d4d8e560b9e7fcf35d15bbf457f195"
|
||||
},
|
||||
"after": {
|
||||
"rows": 30,
|
||||
"checksum": "162782d2ac82e4deaacf4d79561ea513"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-exemptions/1": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"reimport_same_state": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"central_bank_gold": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"importExemptions": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"12(1)(d/f)": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BXU5lh3t.js",
|
||||
"status": 200,
|
||||
"sha256": "e0cf2f3f2f1c1c6d440729cfd6cd7a4bb830b20ed1121860d67862436765d2fd"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-JEkKEtTe.js",
|
||||
"status": 200,
|
||||
"sha256": "adf02748a797af916d4fa0c9c1f60b8710a90550937f541785b98fe33d1fff6c"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-3_HjfTXa.js",
|
||||
"status": 200,
|
||||
"sha256": "21a61a7ac141d65b7f3f74fd515371a3f1f25d76c896901f52ecb1f9a820555e"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qm4e17dP.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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"e3601c124d50fa2b52ea9d9fb86fbddf1d224d51"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:23:52.274448+00:00"
|
||||
},
|
||||
"log_file": "1792862542167178181.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.86s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 305",
|
||||
"# pass 305",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 117310
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
},
|
||||
"iva_l1_g6b_P055_P057_import_exemptions_QA_demonstrated_20261024": {
|
||||
"key": "iva_l1_g6b_P055_P057_import_exemptions_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"homologation": "e3601c12/a23f1dcb",
|
||||
"group": "G6B",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"branch_count": 2,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(j/l),Lei13/2016PDF11/p1426(269),visual inspected;2022PDF2/p2252(26) and2025PDF12–13/p2180(12–13) retain j/l",
|
||||
"acceptance": "Tempo08/10/2026;no new generic authenticity/legal approval",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"base": "a23f1dcb6e886a6de75917f17f2da4b9ab94599e",
|
||||
"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-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-g6a-delivery-20261024.json;e3601c12/a23f1dcb;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "6765354faf917282ea03bed31cee071d1a44cf008a7560171048adb8ffa6debf",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 1,
|
||||
"import_history": 3,
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"scoped_version": "import-beneficiaries/1 only when new treatment selected;legacy keys/source preserved",
|
||||
"no_schema_change": true,
|
||||
"legacy_books": "no additional required fields;20sales,1purchase and1importbook unchanged/current",
|
||||
"data_conditions": "per branch;unknown != false;no ordinary rate inferred",
|
||||
"value": "declared/previsional value preserved,optional;no invented customs taxable base",
|
||||
"period": "explicit import period independent from supporting document date and sales calendar",
|
||||
"history": "explicit classification archives previous result;edits keep historical state;reports show only applicable conditions",
|
||||
"roll_back": "l1-g6b-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 2,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 2,
|
||||
"QA": 2,
|
||||
"functional_pending": 11
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"QA_auxiliary_encoding_correction": {
|
||||
"cause": "Demo middleware decoded each incoming byte chunk separately;one split UTF8 character changed in a prior-history key",
|
||||
"scope": "local synthetic QA file only;private API and accepted active data unchanged",
|
||||
"before": "ui-saved-before-utf8-fix.json preserved",
|
||||
"fix": "Concatenate buffers before UTF8 decoding;boundary regression test passed",
|
||||
"verification": "Reset from exact private API recovery via explicit QA button;save/recover/report repeated;all20sales+1purchase+1importbooks identical to frozen baseline",
|
||||
"helper_sha256": "3cbaac752269c91c6675a10e95646292cc8191949c23700b37805ed46a49672f"
|
||||
}
|
||||
},
|
||||
"iva_l1_g6b_delivery_preparation_20261024": {
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"last_known_remote_main": "e3601c12",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "af818d49abb78aaa5f271c686c74c5394472317c7a3ab5c23e9ea64b1b7d440c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c78e55c1ca71d9d17bea0992d627264f4b96d5526e8db20339e6fa3419712eeb"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 68,
|
||||
"QA": 2,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6b-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"files_sha256": "9b10a08af9f91965166c311b331a3c068af4fc737088ab529846f0a00a3231fb",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"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 remainse3601c12",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. 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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"release_revision": {
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"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 confirmede3601c12;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"key": "iva_l1_g6a_P049_P051_import_exemptions_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "965da2642627ad1e484d52587e07b4a60cae6af2",
|
||||
"base": "e99ea1d0",
|
||||
"homologation": "6f056359/e99ea1d0",
|
||||
@@ -179,16 +179,29 @@
|
||||
"roll_back": "l1-g6a-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 2,
|
||||
"QA": 0,
|
||||
"functional_pending": 13
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. 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": 66,
|
||||
"QA": 2,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 0,
|
||||
"QA": 2,
|
||||
"functional_pending": 13
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas."
|
||||
"delivery_followup": {
|
||||
"served_commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"record": "iva_l1_g6a_homologation_20261024",
|
||||
"receipt": "l1-g6a-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"key": "iva_l1_g6b_P055_P057_import_exemptions_QA_demonstrated_20261024",
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"homologation": "e3601c12/a23f1dcb",
|
||||
"group": "G6B",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"branch_count": 2,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(j/l),Lei13/2016PDF11/p1426(269),visual inspected;2022PDF2/p2252(26) and2025PDF12–13/p2180(12–13) retain j/l",
|
||||
"acceptance": "Tempo08/10/2026;no new generic authenticity/legal approval",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"base": "a23f1dcb6e886a6de75917f17f2da4b9ab94599e",
|
||||
"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-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-g6a-delivery-20261024.json;e3601c12/a23f1dcb;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "6765354faf917282ea03bed31cee071d1a44cf008a7560171048adb8ffa6debf",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 1,
|
||||
"import_history": 3,
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"scoped_version": "import-beneficiaries/1 only when new treatment selected;legacy keys/source preserved",
|
||||
"no_schema_change": true,
|
||||
"legacy_books": "no additional required fields;20sales,1purchase and1importbook unchanged/current",
|
||||
"data_conditions": "per branch;unknown != false;no ordinary rate inferred",
|
||||
"value": "declared/previsional value preserved,optional;no invented customs taxable base",
|
||||
"period": "explicit import period independent from supporting document date and sales calendar",
|
||||
"history": "explicit classification archives previous result;edits keep historical state;reports show only applicable conditions",
|
||||
"roll_back": "l1-g6b-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 2,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 2,
|
||||
"QA": 2,
|
||||
"functional_pending": 11
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"QA_auxiliary_encoding_correction": {
|
||||
"cause": "Demo middleware decoded each incoming byte chunk separately;one split UTF8 character changed in a prior-history key",
|
||||
"scope": "local synthetic QA file only;private API and accepted active data unchanged",
|
||||
"before": "ui-saved-before-utf8-fix.json preserved",
|
||||
"fix": "Concatenate buffers before UTF8 decoding;boundary regression test passed",
|
||||
"verification": "Reset from exact private API recovery via explicit QA button;save/recover/report repeated;all20sales+1purchase+1importbooks identical to frozen baseline",
|
||||
"helper_sha256": "3cbaac752269c91c6675a10e95646292cc8191949c23700b37805ed46a49672f"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "965da2642627ad1e484d52587e07b4a60cae6af2",
|
||||
"base": "e99ea1d0",
|
||||
"last_known_remote_main": "6f056359",
|
||||
@@ -26,8 +26,8 @@
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 66,
|
||||
"QA": 2,
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
@@ -93,8 +93,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 remains6f056359",
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
@@ -143,5 +143,155 @@
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed6f056359;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_G6A": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated6f056359 before installation;see authenticated_preflight",
|
||||
"treatment": "P049/reimport_same_state,12(1)(d);P051/central_bank_gold,12(1)(f);classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "3cef2e5d47d357e3a831ee9fc1f332d0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "fa38aab45da6527192848bea480f8014"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 29,
|
||||
"checksum": "f7d4d8e560b9e7fcf35d15bbf457f195"
|
||||
},
|
||||
"after": {
|
||||
"rows": 30,
|
||||
"checksum": "162782d2ac82e4deaacf4d79561ea513"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-exemptions/1": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"reimport_same_state": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"central_bank_gold": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"importExemptions": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"12(1)(d/f)": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BXU5lh3t.js",
|
||||
"status": 200,
|
||||
"sha256": "e0cf2f3f2f1c1c6d440729cfd6cd7a4bb830b20ed1121860d67862436765d2fd"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-JEkKEtTe.js",
|
||||
"status": 200,
|
||||
"sha256": "adf02748a797af916d4fa0c9c1f60b8710a90550937f541785b98fe33d1fff6c"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-3_HjfTXa.js",
|
||||
"status": 200,
|
||||
"sha256": "21a61a7ac141d65b7f3f74fd515371a3f1f25d76c896901f52ecb1f9a820555e"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qm4e17dP.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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"e3601c124d50fa2b52ea9d9fb86fbddf1d224d51"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:23:52.274448+00:00"
|
||||
},
|
||||
"log_file": "1792862542167178181.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.86s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 305",
|
||||
"# pass 305",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 117310
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"last_known_remote_main": "e3601c12",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "af818d49abb78aaa5f271c686c74c5394472317c7a3ab5c23e9ea64b1b7d440c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c78e55c1ca71d9d17bea0992d627264f4b96d5526e8db20339e6fa3419712eeb"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 68,
|
||||
"QA": 2,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6b-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"files_sha256": "9b10a08af9f91965166c311b331a3c068af4fc737088ab529846f0a00a3231fb",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"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 remainse3601c12",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. 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": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"release_revision": {
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"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 confirmede3601c12;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -57,6 +57,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,39 @@
|
||||
# Rastreabilidade, utilização e formação
|
||||
|
||||
|
||||
## 24/10/2026 — G6B/P055/P057 demonstrado em QA
|
||||
|
||||
**P055→author_art_import /12(1)(j);P057→fire_brigade_vehicle /12(1)(l)**,candidata`f75f36f0`,registo`iva_l1_g6b_P055_P057_import_exemptions_QA_demonstrated_20261024`. Doisramos existentes da matriz. Página integralLei13/2016PDF11/p1426(269) e redacções2022/2025 aceites reutilizadas;artistas-autores residentes,seus herdeiros ou legatários conforme texto integral da condição,sem benefício genérico para comerciante de arte. No veículo,corporação de bombeiros e destino exclusivamente à actividade própria. Fonte/identidade/residência/relação/finalidade constam do enquadramento e fundamento factual;sem nova validação jurídica genérica.
|
||||
|
||||
Extensão incremental do classificador de importações existente,sem schema/permissões novos. Versãoadicional `import-beneficiaries/1` só nos livros que seleccionam os novos tratamentos;chaves,fontes e resultadosG6A mantidos actuais. Condições desconhecidas→indeterminado,não→não aplicação desta isenção,sim com contexto→IVAisento0.00MZN;sem taxa normal presumida. Campos adaptáveis;mudança de ramo conserva2500MZN/documento/respostas,sem sobrescrever resultado. Nova classificação arquiva a anterior;relatório reflecte apenas condições aplicáveis.
|
||||
|
||||
4testesnovos+5importaçõesexistentes aprovados;APIprivadaQA1teste/23asserções,guarda*_test:55441 e rollback;tipos/produção/QAaprovados,avisosexistentes deplugins/chunks. UIobservadaCodex/Edge-CUA:finalidade por indicar→indeterminado,não→não aplicação,sim→isenção;mudança de ramo conserva respostas/documento;Guardar→Recuperar com confirmação explícita quando indicada divergência→Relatório,opportunity331/Manica/2026-12,documento11/2026,fontes e4versõesanteriores. Preservados20livrosvendas,1aquisiçõesG5B e1importaçõesG6A com3versõesanteriores,íntegros/actuais,sem recálculo. ProvasWord/PDF aceites reutilizadas,sem nova alegação de paginação ou conferência manualTempo.
|
||||
|
||||
Correcção auxiliarQA:comparação detectou um carácterUTF8 dividido entre blocos de transporte no ficheiro da demonstração,por descodificação de cada bloco separadamente. APIprivada eactivo intactos. Original sintético conservado emui-saved-before-utf8-fix.json;auxiliar passou a concatenarBuffers antes de descodificarUTF8,testado com quebra dentro de carácter multibyte. Exemplo reposto explicitamente da recuperaçãoAPI íntegra;gravação/recuperação/relatório repetidos e22livrosanteriores comparados sem diferença. Não constitui perda de uma funcionalidade entregue nem alteração noactivo.
|
||||
|
||||
**68entregues+2QA+62funcionaispendentes+P001=133.** G6:2entregues/2QA/11pendentes. Homologaçãoe3601c12/a23f1dcb inalterada. [Manifesto preparado](../simulations/l1-g6b-delivery-20261024.json),contenção de novas classificações conferida,não aplicada;leitores/histórico/relatório mantidos. Antes de instalação continuam necessários destino/main autenticados frescos e backup/restauro isolado;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 mantém-se separada da dedução/campo11L2,direitosL13,baseaduaneira e totaisModeloA;P086 e fonteBR89/2017 preservados.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — preparação G6B e preservação antes dos testes
|
||||
|
||||
Inventário existente: **68ramos entregues**, conforme matriz e reciboG6Ae3601c12/a23f1dcb;sem perda confirmada. Provas aceites de comparação código/schema/dados/configuração/permissões reutilizadas:174tabelas/369ficheiros,29fichas/28relações/408geometrias. Congelados20livrosvendas,1aquisiçõesG5B e1importaçõesG6A,incluindo3versõesanterioresG6A,sem recálculo;fixtureiva-g6a-inputs.json. Nenhuma redução de âmbito prevista. Não há novos testes ou alteração no activo nesta preparação. **P080/P084/P085 explicitamente abertos.** Saldo68entregues+64funcionaispendentes+P001=133.
|
||||
|
||||
G6B delimita **P055→author_art_import /12(1)(j)** e **P057→fire_brigade_vehicle /12(1)(l)**. Fonte:Lei13/2016PDF11/p1426(269),página integral já conferida visualmente emG6A e reutilizada. Em(j),objectos de arte,importação pelos próprios artistas-autores,residentes no território nacional,seus herdeiros ou legatários;identificar no fundamento factual identidade,residência e relação aplicáveis,sem presumir benefício por qualquer comerciante de arte. Em(l),veículo de combate a incêndios importado por corporação de bombeiros,destinado exclusivamente à actividade própria;não equipamento genérico nem venda doméstica. Texto integral destas alíneas preservado nas perguntas,sem ampliar por inferência. Lei22/2022PDF2/p2252(26) eLei10/2025PDF13/p2180(13) mantêm j/l. Inventário dos seis originais/hashes e inventários gerais existentes reutilizados;originais verificados sem alteração. DecisãoTempo08/10 aceita fontes oficiais;sem nova autenticação jurídica genérica.
|
||||
|
||||
Escolha técnica:extensão incremental do classificador de importações existente. Fonte/versão adicional só afecta livros que escolhem os novos tratamentos;chaves e resultados anteriores mantidos actuais. Condições próprias por ramo;desconhecido→indeterminado,não→não aplicação desta isenção,sim com contexto→IVAisento0.00MZN. Reutilizar documento/período/moeda e fundamento,conservar respostas ao mudar de ramo,histórico e relatório. Classificação permanece separada de baseaduaneira,direitosL13,dedução/campo11L2 e totaisModeloA. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
## 24/10/2026 — G6A/P049/P051 entregue na homologação e3601c12
|
||||
|
||||
**P049→reimport_same_state /12(1)(d);P051→central_bank_gold /12(1)(f). Doisramos** de classificação do IVA na importação em2026/MZN. A Tempo aceitou a candidata965da264 concluída emQA segundo o relatório615f78e7 e autorizou integração/disponibilização peloGit existente,com preservação de alterações concorrentes e conferência apenas do delta instalado. Reutilizadas provas aceites de condições,indeterminação/não aplicação/isenção,gravação/recuperação/relatório e20livrosvendas+1aquisições;sem repetir aceitação ou atribuir nova conferência manual àTempo.
|
||||
|
||||
Gitfast-forward sobre6f056359;consulta fresca de main e destino autenticado sem avanço concorrente encontrado;66ramos e recibos anteriores preservados. Backup novo e restauro real isolado sem rede:174tabelas/369ficheiros. Delta instalado:revisão efectivamente servida,manifesto/hash,cinco marcadores,quatro 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-g6a-delivery-20261024.json),registo `iva_l1_g6a_homologation_20261024`. **68entregues+64funcionaispendentes+P001=133;sem candidatasQA por disponibilizar.** G6:2entregues/13pendentes. **P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.** Classificação não fixa baseaduaneira/direitos,nem preenche dedução/campo11 ou totaisModeloA;P086 permanece disposição eliminada/encaminhamento aplicável,fonteBR89/2017 preservada.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — G6A/P049/P051 demonstrado em QA
|
||||
|
||||
**P049→reimport_same_state /12(1)(d); P051→central_bank_gold /12(1)(f)**,candidata`965da264`,registo`iva_l1_g6a_P049_P051_import_exemptions_QA_demonstrated_20261024`. Dois ramos,com condições próprias,identificadas na preparação abaixo. Classificação de IVA na importação em2026/MZN,não uma venda interna,base aduaneira,liquidação de direitos ou dedução noModeloA. Provas e originais anteriores conservados;P086 continua disposição eliminada/encaminhamento normal,com fonteBR89/2017 preservada.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
import { useState } from 'react';
|
||||
import { importExemptionBook,importExemptionCurrent,importExemptionReportRows,importExemptionRules,importExemptionSource,newImportExemption,recordImportExemptions,saveImportExemptionBook,type ImportExemptionBook,type ImportExemptionRow } from '@/lib/iva-import-exemptions';
|
||||
import { importExemptionBook,importExemptionCurrent,importExemptionReportRows,importExemptionRules,importRuleSource,newImportExemption,recordImportExemptions,saveImportExemptionBook,type ImportExemptionBook,type ImportExemptionRow } from '@/lib/iva-import-exemptions';
|
||||
|
||||
export function SimulationImportExemptions({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}) {
|
||||
const [error,setError]=useState('');
|
||||
@@ -8,9 +8,8 @@ export function SimulationImportExemptions({draft,onChange}:{draft:Record<string
|
||||
const save=(next:ImportExemptionBook)=>{try {onChange('modelo_a_snapshot',saveImportExemptionBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
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 — reimportação no mesmo estado / ouro pelo Banco de Moçambique</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Indique apenas importações relevantes. Estes dois ramos classificam a isenção em2026/MZN; as compras internas e os seus resultados conservam-se.</p>
|
||||
<p>{importExemptionSource}</p>
|
||||
<summary>IVA na importação — enquadramentos disponíveis</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Indique apenas importações relevantes. Escolha entre reimportação no mesmo estado, ouro pelo Banco de Moçambique, objectos de arte ou veículo de combate a incêndios. 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>
|
||||
@@ -23,7 +22,7 @@ export function SimulationImportExemptions({draft,onChange}:{draft:Record<string
|
||||
{(['description','importer','declaredValue','goodsCode','originCountry','documentRef','documentDate','period','evidence'] as const).map((field,index)=><label key={field}>{['Bens importados','Importador','Valor declarado / previsão (moeda indicada)','Código aduaneiro, se disponível','País de origem, se disponível','Documento aduaneiro / referência da previsão','Data do documento / prevista','Mês da importação','Fundamento factual das condições / pressupostos'][index]}<input className="block rounded border p-2" type={field==='documentDate'?'date':field==='period'?'month':'text'} value={row[field]} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
<label>Moeda de origem<input className="block rounded border p-2" value={row.currency} onChange={e=>change(row.id,{currency:e.target.value})}/></label>
|
||||
</div>
|
||||
{rule?<fieldset><legend>Condições de{rule.article}; respostas conservadas ao mudar de ramo</legend>{rule.conditions.map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={row.conditions[key]??''} onChange={e=>change(row.id,{conditions:{...row.conditions,[key]:e.target.value}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}</fieldset>:<p>Escolha o ramo para apresentar apenas as condições aplicáveis; as respostas anteriores mantêm-se.</p>}
|
||||
{rule?<><p>{importRuleSource(row.treatment)}</p><fieldset><legend>Condições de{rule.article}; respostas conservadas ao mudar de ramo</legend>{rule.conditions.map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={row.conditions[key]??''} onChange={e=>change(row.id,{conditions:{...row.conditions,[key]:e.target.value}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}</fieldset></>:<p>Escolha o ramo para apresentar apenas as condições aplicáveis; as respostas anteriores mantêm-se.</p>}
|
||||
<p>Editar não substitui o resultado anterior. Ao classificar novamente, a versão anterior passa ao histórico.</p>
|
||||
</details>;
|
||||
})}
|
||||
|
||||
@@ -3,11 +3,17 @@ import { acquisitionScope } from './iva-acquisitions.ts';
|
||||
type Choice = ''|'yes'|'no';
|
||||
export const importExemptionVersion = 'import-exemptions/1';
|
||||
export const importExemptionSource = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.12(1)(d/f),PDF11/p.1426(269). Lei22/2022,PDF2/p.2252(26),mantém d/f; Lei10/2025,PDF12–13/p.2180(12–13),mantém d/f. Cobertura2026/MZN; classificação do IVA na importação,sem cálculo de direitos aduaneiros ou dedução no campo11.';
|
||||
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 importExemptionRules = [
|
||||
{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']]},
|
||||
{id:'fire_brigade_vehicle',branch:'P057',label:'Veículo de combate a incêndios por corporação de bombeiros',article:'12(1)(l)',conditions:[['fireVehicle','O bem importado é um veículo de combate a incêndios'],['fireBrigade','A importação é efectuada por uma corporação de bombeiros'],['exclusiveOwnUse','O veículo destina-se exclusivamente a ser utilizado na actividade própria da corporação']]},
|
||||
] as const;
|
||||
type Condition = 'sameExporter'|'sameState'|'customsExempt'|'gold'|'centralBank';
|
||||
type Condition = 'sameExporter'|'sameState'|'customsExempt'|'gold'|'centralBank'|'artObjects'|'eligibleArtImporter'|'fireVehicle'|'fireBrigade'|'exclusiveOwnUse';
|
||||
function beneficiaryImport(id:string):boolean {return id==='author_art_import'||id==='fire_brigade_vehicle';}
|
||||
export function importRuleSource(id:string):string {return 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[]};
|
||||
@@ -45,11 +51,14 @@ export function evaluateImportExemption(row:ImportExemptionRow,currency:unknown)
|
||||
if(row.declaredValue.trim()&&!/^\d{1,15}(\.\d{1,6})?$/.test(row.declaredValue.trim()))return stop('Valor declarado/previsional inválido; conserve o original e reveja, sem presumir base aduaneira ou imposto normal.');
|
||||
return {...result,status:'exempt',importVat:'0.00',reason:`Isenção ${rule.article} nas condições ${row.origin==='projected'?'expressamente assumidas na projecção':'efectivas declaradas'}. IVA na importação:0.00MZN por isenção, sem inferir direitos aduaneiros, certificação pela AT ou dedução.`};
|
||||
}
|
||||
function key(draft:Record<string,unknown>,book:ImportExemptionBook):string {return JSON.stringify({version:importExemptionVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
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(book.rows.some(row=>beneficiaryImport(row.treatment))?{...base,beneficiaryVersion:importBeneficiaryVersion}:base);
|
||||
}
|
||||
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 {
|
||||
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:importExemptionSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
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]:[])]};
|
||||
}
|
||||
export function importExemptionReportRows(draft:Record<string,unknown>):Array<[string,string,string,string]> {
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<?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 IvaImportBeneficiariesDraftTest 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-g6b-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:331', $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:331'];
|
||||
$this->assertCount(2, $book['rows']);
|
||||
$this->assertSame(['author_art_import', 'fire_brigade_vehicle'], array_column($book['rows'], 'treatment'));
|
||||
$this->assertSame(['0.00', '0.00'], array_column($book['result']['rows'], 'importVat'));
|
||||
$this->assertSame(['exempt', 'exempt'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame('2026-12', $book['rows'][0]['period']);
|
||||
$this->assertSame('2500', $book['rows'][0]['declaredValue']);
|
||||
$this->assertSame('SYNTHETIC QA G6B author_art_import', $book['rows'][0]['documentRef']);
|
||||
$this->assertStringContainsString('12(1)(j/l)', $book['result']['source']);
|
||||
$frozen = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g6a-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->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-g6b-imports-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
@@ -0,0 +1,53 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { newImportExemption,evaluateImportExemption,recordImportExemptions,saveImportExemptionBook,importExemptionBook,importExemptionCurrent,importExemptionRules,importBeneficiarySource } 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-g6a-inputs.json',import.meta.url),'utf8'));
|
||||
const row=(treatment='author_art_import')=>({...newImportExemption('g6b-'+treatment,'MZN'),treatment,description:treatment==='author_art_import'?'SYNTHETIC QA objecto de arte':'SYNTHETIC QA veículo de combate a incêndios',period:'2026-12',declaredValue:'2500',importer:treatment==='author_art_import'?'SYNTHETIC QA artista-autor residente':'SYNTHETIC QA corporação de bombeiros',documentRef:'SYNTHETIC QA G6B '+treatment,documentDate:'2026-11-12',evidence:treatment==='author_art_import'?'SYNTHETIC QA autor residente em Manica e importador próprio; pressuposto, não é documento real':'SYNTHETIC QA corporação e utilização exclusiva na sua actividade própria; pressuposto, não é documento real',conditions:treatment==='author_art_import'?{artObjects:'yes',eligibleArtImporter:'yes'}:{fireVehicle:'yes',fireBrigade:'yes',exclusiveOwnUse:'yes'}});
|
||||
const draft=()=>({...structuredClone(frozen),context_opportunity:'opportunity:331',project_title:'SYNTHETIC QA — G6B / Arte e bombeiros'});
|
||||
|
||||
test('P055 and P057 require own statutory conditions;unknown and failed never become exempt zero or ordinary tax',()=>{
|
||||
for(const treatment of ['author_art_import','fire_brigade_vehicle']){
|
||||
const input=row(treatment),rule=importExemptionRules.find(r=>r.id===treatment);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 [{evidence:''},{documentRef:''},{currency:'USD'},{period:'2025-12'},{importer:''},{documentDate:'2026-02-30'}])assert.equal(evaluateImportExemption({...input,...patch},'MZN').importVat,null);
|
||||
assert.deepEqual(input,row(treatment));
|
||||
}
|
||||
assert.match(importBeneficiarySource,/12\(1\)\(j\/l\)/);
|
||||
assert.match(importExemptionRules.find(r=>r.branch==='P055').conditions[1][1],/residentes.*herdeiros ou legatários/);
|
||||
});
|
||||
|
||||
test('art importer alternatives retain exact factual basis;not every art dealer or public entity qualifies',()=>{
|
||||
for(const importer of ['artista-autor residente','herdeiro de artista-autor residente','legatário de artista-autor residente']){
|
||||
const input={...row(),importer:'SYNTHETIC QA '+importer,evidence:'SYNTHETIC QA '+importer+'; identidade, residência e relação expressamente assumidas'};
|
||||
assert.equal(evaluateImportExemption(input,'MZN').status,'exempt');assert.ok(input.evidence.includes(importer));
|
||||
}
|
||||
assert.equal(evaluateImportExemption({...row(),importer:'Comerciante de arte',conditions:{artObjects:'yes',eligibleArtImporter:'no'}},'MZN').status,'not_applicable');
|
||||
assert.equal(evaluateImportExemption({...row('fire_brigade_vehicle'),conditions:{fireVehicle:'yes',fireBrigade:'no',exclusiveOwnUse:'yes'}},'MZN').status,'not_applicable');
|
||||
});
|
||||
|
||||
test('editing treatment keeps document and answers;explicit classification archives nonapplication and unknown results',()=>{
|
||||
const d=draft(),input=row();let book=recordImportExemptions(d,{rows:[{...input,conditions:{artObjects:'yes'}}]});assert.equal(book.result.rows[0].status,'indeterminate');
|
||||
book=recordImportExemptions(d,{...book,rows:[{...input,conditions:{...input.conditions,eligibleArtImporter:'no'}}]});assert.equal(book.result.rows[0].status,'not_applicable');
|
||||
const switched={...input,treatment:'fire_brigade_vehicle',conditions:{...input.conditions,...row('fire_brigade_vehicle').conditions}};assert.equal(switched.documentRef,input.documentRef);assert.equal(switched.conditions.eligibleArtImporter,'yes');
|
||||
const returned={...switched,treatment:'author_art_import'};assert.equal(evaluateImportExemption(returned,'MZN').status,'exempt');
|
||||
book=recordImportExemptions(d,{...book,rows:[returned,row('fire_brigade_vehicle')]});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(importExemptionCurrent(d,book));
|
||||
for(const patch of [{currency:'USD'},{context_opportunity:'opportunity:330'},{selection_labels:{province_id:'Maputo'}}])assert.ok(!importExemptionCurrent({...d,...patch},book));
|
||||
});
|
||||
|
||||
test('save/recovery/report keep all22acceptedbooks current and unchanged;only newly selected treatments add scoped version/source',()=>{
|
||||
const d=draft(),prior=JSON.parse(frozen.modelo_a_snapshot);let book=recordImportExemptions(d,{rows:[{...row(),conditions:{artObjects:'yes'}},row('fire_brigade_vehicle')]});
|
||||
book=recordImportExemptions(d,{...book,rows:[row(),row('fire_brigade_vehicle')]});d.modelo_a_snapshot=saveImportExemptionBook(d,book);
|
||||
assert.deepEqual(importExemptionBook(JSON.parse(JSON.stringify(d))),book);assert.match(book.result.sourceKey,/import-beneficiaries\/1/);assert.match(book.result.source,/12\(1\)\(j\/l\)/);
|
||||
const next=JSON.parse(d.modelo_a_snapshot);assert.deepEqual(next.salesOperations,prior.salesOperations);assert.deepEqual(next.books,prior.books);assert.deepEqual(next.importExemptions['opportunity:330'],prior.importExemptions['opportunity:330']);
|
||||
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']));assert.ok(importExemptionCurrent({...d,context_opportunity:'opportunity:330'},next.importExemptions['opportunity:330']));
|
||||
const report=JSON.stringify(createProjectDossierReport(d,{selectedSections:new Set(['finance']),version:'QA G6B'}));for(const token of ['P055','P057','opportunity:331','Manica','2026-12','SYNTHETIC QA G6B','0.00','12(1)(j/l)','campo11'])assert.ok(report.includes(token),token);
|
||||
assert.equal(next.books['opportunity:329'].result.periods[0].fields['11'],null);assert.equal(next.books['opportunity:329'].result.periods[0].fields['17'],null);
|
||||
if(process.env.IVA_G6B_CALCULATED)fs.writeFileSync(process.env.IVA_G6B_CALCULATED,JSON.stringify(d));
|
||||
});
|
||||
Reference in New Issue
Block a user