Compare commits
4
Commits
7e5710ebbd
...
5d5f3b4148
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d5f3b4148 | ||
|
|
9c2b2c6560 | ||
|
|
acc633bf08 | ||
|
|
a89f9eca8c |
@@ -17788,5 +17788,314 @@
|
||||
},
|
||||
"base_VAT_separation": "Accepted QA reused:normalvalue of goods/services given in exchange plus monetary share if present;absence expressly confirmed,hidden monetary inputs preserved but not summed in noncash_only. Normalvalue basis/scope and immutable inputs/history/report retained. Base independent of VAT/rate(alwaysnull). Four installed runtime hashes and16compiled markers verified;no synthetic activewrite.",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
},
|
||||
"iva_l1_g7f_P101_homologation_20261024": {
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "6f90fcb9d4ea6e93b13291e65fa6cb7406ca98c9",
|
||||
"base_installed": "70b4a640ee5f790f8e6a089d157456ff437e336d",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P101": [
|
||||
"tax_component",
|
||||
"accessory_component"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 2,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-composition-base.ts",
|
||||
"sha256_LF": "557d6b4b5ed2c534b69e5edf43c9e4014cdfb7362bf164829cd16e4deeabbf73"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-composition-base.tsx",
|
||||
"sha256_LF": "3507c14f15e40bf018089520a46b7e22002ddbd9bffa64d179f085b0d933ae0e"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "82694be2d0a5ac097b64d68dceeda1df239bb2bf2bce193e8112d3dadad79a95"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "c640883680629049ea851a63e28e967a70297257a55e5d885df8e32f4b81e871"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 83,
|
||||
"QA": 1,
|
||||
"functional_pending": 48,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 84,
|
||||
"QA": 0,
|
||||
"functional_pending": 48,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 84,
|
||||
"QA": 0,
|
||||
"functional_pending": 48,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g7f-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy6f90fcb9 through existingGit,preserve concurrentchanges and check installeddelta only;onebase peroperation,withoutdoublecounting or ownVAT;two componenttreatments sameP101branch",
|
||||
"scope": "2026/MZN,P101compositiononly;no incidence/taxrates/IVA/deduction/field11/ModeloAtotals. Initialamount explicitlynetofownIVA and applicable15(6)exclusions;specialbases15(2)respected includingP095TCexclusion. DetailedP102exclusions notclosed by thisrecorte. Unknowncomponentamount/inclusion notassumedzero or missing;ownIVA not added ascomponent.",
|
||||
"meaning": "Include taxes,duties,fees/otherimpositions excludingownVAT;accessory expenses charged forcommissions,packaging,transport/insurance onclientaccount. Both component treatments form one base peroperation,not parallelbases.",
|
||||
"formula": "initial amount netofownVAT/applicableexclusions + sum of applicable components notalreadyincluded;alreadyincluded components retained without secondsum",
|
||||
"preservation": "83priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only",
|
||||
"partial_P084_P085": "Preparation/conditional simulation only,benefits pending;no closure",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"containment": "l1-g7f-readonly-rollback-20261024.patch,checked only,not applied;blocks newP101calculations only,preserves readers/history/otherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "70b4a640ee5f790f8e6a089d157456ff437e336d",
|
||||
"release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/92a7418cb6b080916a4d02d3c1db4be94d3d96f1-ebe3dcb6",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"release_revision": {
|
||||
"commit": "70b4a640ee5f790f8e6a089d157456ff437e336d",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:45:12.326319+00:00",
|
||||
"manifest_sha256": "c141928a91011ced381e72b1e616469bb9fe061a2a9e9d7b43dcf8ec37ccd068"
|
||||
},
|
||||
"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-g7f-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "18729e57928183ae4a59eb2e34566a1e87ec4a1fa9e8d3a97177ab9623ae272a",
|
||||
"files_sha256": "13142a0558b2a84ae6fd142789fe313f09ef3a0f3b201c6421a274e4105f7f23",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g7f_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "18729e57928183ae4a59eb2e34566a1e87ec4a1fa9e8d3a97177ab9623ae272a",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"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": "5019a5447b0c93535079b73e9c088755"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "9d9ac5701d82e434ce40ad346398071d"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 68,
|
||||
"checksum": "6d9856e21f1e09b08fb17ec81d0cb6b6"
|
||||
},
|
||||
"after": {
|
||||
"rows": 69,
|
||||
"checksum": "1f8d81747e4a1f9ac7416bb0c6cd6b88"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:54:47.716763+00:00",
|
||||
"manifest_sha256": "bb782ee252ff461e8c53287876736b77f7851f7a5f23c7f12ff84aa8a23dd611"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"consideration-composition-base/1": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"tax_component": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"accessory_component": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"considerationCompositions": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"taxableOperation": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialNet": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"completeComposition": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"specialRules": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialAmount": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialRef": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"operationRef": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"natureConfirmed": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"ownVatExcluded": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"included": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"IVA: Indeterminado": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-CY5shkop.js",
|
||||
"status": 200,
|
||||
"sha256": "fab469e821906d7c3f53403a2c7dabd9daf0374c98582f2c5250028534e4e919"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CYmMav6B.js",
|
||||
"status": 200,
|
||||
"sha256": "5c905f45fdb879c0315e78f4283fd0427010d7ddd7b15eaebabdd1ca635a0054"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-D2E5WlN9.js",
|
||||
"status": 200,
|
||||
"sha256": "fddc0c2b79528fd9e8993ad98daeeff67f76c0f05d0ab38adda087b1547cf40b"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-D5CFqFe4.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": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"7e5710ebbd235f9478f149f8470a238c9e66ea9e"
|
||||
],
|
||||
"finished_at": "2026-10-24T20:54:50.708939+00:00"
|
||||
},
|
||||
"log_file": "1792875189810569987.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.63s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 366",
|
||||
"# pass 366",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 135617
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"base_VAT_separation": "Accepted QA reused:initial netamount plus onlynotalreadyincluded tax/accessorycomponents;onebase peroperation,no doublecounting or ownVAT. Nestedcomponentnature/amount/inclusion/references,immutableinputs/history/report retained;specialbases and exclusions respected. Base independent of VAT/rate(alwaysnull). Four installed runtime hashes and15compiled markers verified;no synthetic activewrite.",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"implementation_commit": "e3caf553616da59222dbc2bd2327dfae602ad3db",
|
||||
"status": "QA_complete_not_delivered",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P101": [
|
||||
"tax_component",
|
||||
@@ -149,5 +149,18 @@
|
||||
"homologation_unchanged": "70b4a640",
|
||||
"remaining": "Integrate/deliver through existingGit withmanifest,freshbackup/real isolatedrestore and installeddelta;no push in QA task",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7f-composition-20261024\\source-archive-inventory.json"
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7f-composition-20261024\\source-archive-inventory.json",
|
||||
"qa_status_preserved": "QA_complete_not_delivered",
|
||||
"delivery_followup": {
|
||||
"served_commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"receipt": "l1-g7f-delivery-20261024.json",
|
||||
"record": "iva_l1_g7f_P101_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 84,
|
||||
"QA": 0,
|
||||
"functional_pending": 48,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
{
|
||||
"implementation_commit": "acc633bf088c66042a8442d356076bdbb508ac53",
|
||||
"status": "QA_complete_not_delivered",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P102": [
|
||||
"judicial_indemnity",
|
||||
"granted_discount",
|
||||
"third_party_payment",
|
||||
"returnable_packaging"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 4,
|
||||
"source": "CIVA15(6)(a–d),2016PDF14/p1426(272);27(5)(b),PDF17/p1426(275);2022PDF3maintains15(6);2025PDF14maintains27(5)(b),amends27(10),not15;2017rectificationdoesnotamendtheseprovisions.",
|
||||
"meaning": "Four exclusions:judicial indemnity for total/partial contractbreach;granteddiscount/abatement/bonus;payment inname/onaccount of purchaser/recipient recorded inappropriate thirdpartyaccounts;packaging notactuallytransacted withseparateinvoiceindication/express agreedreturnmention.",
|
||||
"formula": "initialamount netofownVAT with15(5)inclusions minus only exclusions stillincluded;alreadyexcluded retained without secondsubtraction",
|
||||
"technical_choices": "New considerationExclusions opportunity-scoped book,operations with nestedparts and ownconditions/references/scope. Exactdecimal up to6fractiondigits,no assumedrounding. Typechange preservesamount/reference/scope/hiddenaccounts/invoiceexcerpt butclears ownconditions. No newcertificates/approvers. References identify judicialdeclaration/contract,discountgrant,thirdpartyaccounts/recipient,invoicepackagingmention or explicit projectionassumptions.",
|
||||
"scope": "2026/MZN,P102baseonly;no IVA/incidence/rate/deduction/field11/regularisations/ModeloAtotals. No automaticlegaldecision orpriorperiodposting. Packagingrequiresagreedreturnmention,notactualreturn. Unknownconditions/amount/inclusion indeterminate;failedcondition yields notapplicable,notzero;exclusionsexceedinginitialamount notnegative/flooredzero.",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "Allfour treatments ownconditions unknown/no;judicial/contract/grant/account/recipient/invoice/scope references;subtractincludedonly/alreadyexcluded;exactdecimal/zero/excess;typechange retains hiddenvalues andclears ownconditions;corruptnestedguard;allpreviousbooks/currentkeys/history/report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 34,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7g-exclusions-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existing plugin timing warnings",
|
||||
"UI": "Realcomponent Edge/CUA:judicialdeclarationunknown;discountnotgranted;thirdpartyaccountconditionunknown;packagingreturnmentionunknown allpreventexclusion. Alreadyexcluded indemnity100.10notresubtracted=>899.80. Finalallincluded:1000.25−200.55=799.70,VATnull;save/recover/report1operation/4parts/8priorversions. SyntheticQA,notmanualTempoacceptance.",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7g-exclusions-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "a89f9eca8cb388512d97aebf5e2e1ff267756dd6",
|
||||
"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-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P060",
|
||||
"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-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086",
|
||||
"AUD-SIM-L1-P090",
|
||||
"AUD-SIM-L1-P091",
|
||||
"AUD-SIM-L1-P094",
|
||||
"AUD-SIM-L1-P095",
|
||||
"AUD-SIM-L1-P100",
|
||||
"AUD-SIM-L1-P101"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "7e5710eb/a89f9eca;174tables/369files;29published/28relations/408geometries;code/schema/data/config/permissions compared at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g7g-preserved-inputs.json",
|
||||
"sha256": "7bc9a3a0b2a37dbb6f342dde26c6463e2f5ce62228796e44fc0e0e213a03dfa0",
|
||||
"counts_before": {
|
||||
"delivered": 84,
|
||||
"QA": 0,
|
||||
"functional_pending": 48,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P102only;allpreviousbooks immutable including P101/P100/P095/P094/P091/P060/P050/partialP084P085;no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-exclusion-base.ts": "2d4d2f607eb4e24e617a5640b239d14ab4958e364cc6f3cda36a407b8b1d782f",
|
||||
"resources/js/components/simulation-exclusion-base.tsx": "4c69345d9e49c96756727cbf909bf1d5949fa9db14c346157413dd1885258520",
|
||||
"resources/js/components/simulation-monthly-iva.tsx": "81be9e69aeab5d544a2fb8aadcf487bb6f04ae0ab06861759709912afe9c82bf",
|
||||
"resources/js/lib/project-dossier.ts": "af10643db841e08f14a9ef534ccf7367fe5b05e20c58b770e3a4cf51aa0192e8"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 84,
|
||||
"QA": 1,
|
||||
"functional_pending": 47,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "7e5710eb",
|
||||
"remaining": "Integrate/deliver through existingGit withmanifest,freshbackup/real isolatedrestore and installeddelta;no push in QA task",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7g-exclusions-20261024\\source-archive-inventory.json"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "6f90fcb9d4ea6e93b13291e65fa6cb7406ca98c9",
|
||||
"base_installed": "70b4a640ee5f790f8e6a089d157456ff437e336d",
|
||||
"coverage_complete_branches": {
|
||||
@@ -36,8 +36,8 @@
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 83,
|
||||
"QA": 1,
|
||||
"delivered": 84,
|
||||
"QA": 0,
|
||||
"functional_pending": 48,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
@@ -124,5 +124,186 @@
|
||||
"source_dump_sha256": "18729e57928183ae4a59eb2e34566a1e87ec4a1fa9e8d3a97177ab9623ae272a",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"served_commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"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": "5019a5447b0c93535079b73e9c088755"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "9d9ac5701d82e434ce40ad346398071d"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 68,
|
||||
"checksum": "6d9856e21f1e09b08fb17ec81d0cb6b6"
|
||||
},
|
||||
"after": {
|
||||
"rows": 69,
|
||||
"checksum": "1f8d81747e4a1f9ac7416bb0c6cd6b88"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:54:47.716763+00:00",
|
||||
"manifest_sha256": "bb782ee252ff461e8c53287876736b77f7851f7a5f23c7f12ff84aa8a23dd611"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"consideration-composition-base/1": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"tax_component": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"accessory_component": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"considerationCompositions": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"taxableOperation": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialNet": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"completeComposition": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"specialRules": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialAmount": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"initialRef": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"operationRef": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"natureConfirmed": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"ownVatExcluded": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"included": [
|
||||
"assets/services-CY5shkop.js",
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
],
|
||||
"IVA: Indeterminado": [
|
||||
"assets/project-dossier-D2E5WlN9.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-CY5shkop.js",
|
||||
"status": 200,
|
||||
"sha256": "fab469e821906d7c3f53403a2c7dabd9daf0374c98582f2c5250028534e4e919"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CYmMav6B.js",
|
||||
"status": 200,
|
||||
"sha256": "5c905f45fdb879c0315e78f4283fd0427010d7ddd7b15eaebabdd1ca635a0054"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-D2E5WlN9.js",
|
||||
"status": 200,
|
||||
"sha256": "fddc0c2b79528fd9e8993ad98daeeff67f76c0f05d0ab38adda087b1547cf40b"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-D5CFqFe4.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": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"7e5710ebbd235f9478f149f8470a238c9e66ea9e"
|
||||
],
|
||||
"finished_at": "2026-10-24T20:54:50.708939+00:00"
|
||||
},
|
||||
"log_file": "1792875189810569987.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.63s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 366",
|
||||
"# pass 366",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 135617
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"base_VAT_separation": "Accepted QA reused:initial netamount plus onlynotalreadyincluded tax/accessorycomponents;onebase peroperation,no doublecounting or ownVAT. Nestedcomponentnature/amount/inclusion/references,immutableinputs/history/report retained;specialbases and exclusions respected. Base independent of VAT/rate(alwaysnull). Four installed runtime hashes and15compiled markers verified;no synthetic activewrite.",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "9c2b2c6560062fcc261b27731cf9726276510d47",
|
||||
"base_installed": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P102": [
|
||||
"judicial_indemnity",
|
||||
"granted_discount",
|
||||
"third_party_payment",
|
||||
"returnable_packaging"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 4,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-exclusion-base.ts",
|
||||
"sha256_LF": "2d4d2f607eb4e24e617a5640b239d14ab4958e364cc6f3cda36a407b8b1d782f"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-exclusion-base.tsx",
|
||||
"sha256_LF": "4c69345d9e49c96756727cbf909bf1d5949fa9db14c346157413dd1885258520"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "81be9e69aeab5d544a2fb8aadcf487bb6f04ae0ab06861759709912afe9c82bf"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "af10643db841e08f14a9ef534ccf7367fe5b05e20c58b770e3a4cf51aa0192e8"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 84,
|
||||
"QA": 1,
|
||||
"functional_pending": 47,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 84,
|
||||
"QA": 1,
|
||||
"functional_pending": 47,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 85,
|
||||
"QA": 0,
|
||||
"functional_pending": 47,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g7g-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy9c2b2c65 through existingGit,preserve concurrentchanges and check installeddelta only;four treatments sameP102branch,ownconditions and no double subtraction",
|
||||
"scope": "2026/MZN,P102baseonly;no IVA/incidence/rate/deduction/field11/regularisations/ModeloAtotals. No automaticlegaldecision orpriorperiodposting. Packagingrequiresagreedreturnmention,notactualreturn. Unknownconditions/amount/inclusion indeterminate;failedcondition yields notapplicable,notzero;exclusionsexceedinginitialamount notnegative/flooredzero.",
|
||||
"meaning": "Four exclusions:judicial indemnity for total/partial contractbreach;granteddiscount/abatement/bonus;payment inname/onaccount of purchaser/recipient recorded inappropriate thirdpartyaccounts;packaging notactuallytransacted withseparateinvoiceindication/express agreedreturnmention.",
|
||||
"formula": "initialamount netofownVAT with15(5)inclusions minus only exclusions stillincluded;alreadyexcluded retained without secondsubtraction",
|
||||
"preservation": "84priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only",
|
||||
"partial_P084_P085": "Preparation/conditional simulation only,benefits pending;no closure",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"containment": "l1-g7g-readonly-rollback-20261024.patch,checked only,not applied;blocks newP102calculations only,preserves readers/history/otherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/70b4a640ee5f790f8e6a089d157456ff437e336d-c95636fc",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/7e5710ebbd235f9478f149f8470a238c9e66ea9e-8bf3c724",
|
||||
"release_revision": {
|
||||
"commit": "7e5710ebbd235f9478f149f8470a238c9e66ea9e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:54:47.716763+00:00",
|
||||
"manifest_sha256": "bb782ee252ff461e8c53287876736b77f7851f7a5f23c7f12ff84aa8a23dd611"
|
||||
},
|
||||
"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-g7g-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "4eafcef8350b4a486b4306b675bc71ed89961f43ab56aa49a9751982d7a8d9b5",
|
||||
"files_sha256": "abc18ef93cfbd7b266b08cb8c7fcc5f048eae33c74e5bce0fa19c3e9ba25469e",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g7g_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "4eafcef8350b4a486b4306b675bc71ed89961f43ab56aa49a9751982d7a8d9b5",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-exclusion-base.ts
|
||||
+++ b/resources/js/lib/iva-exclusion-base.ts
|
||||
@@ -67,6 +67,7 @@
|
||||
function key(draft:Record<string,unknown>,book:ExclusionBook):string{return JSON.stringify({version:exclusionBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
export function exclusionCurrent(draft:Record<string,unknown>,book:ExclusionBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordExclusions(draft:Record<string,unknown>,book:ExclusionBook):ExclusionBook{
|
||||
+ throw new Error('Novas bases P102 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos;originais conservados.');
|
||||
const result:ExclusionCalculation={version:exclusionBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:exclusionBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateExclusion(row,draft.currency))};
|
||||
const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveExclusionBook(draft,next);return next;
|
||||
@@ -1,6 +1,36 @@
|
||||
# Rastreabilidade, utilização e formação
|
||||
|
||||
|
||||
## 24/10/2026 — G7G/P102 concluído emQA:quatro exclusões da contraprestação
|
||||
|
||||
Implementação`acc633bf`. **Um ramo,quatro tratamentos**:`judicial_indemnity`,`granted_discount`,`third_party_payment`,`returnable_packaging`,na mesma base por operação. FonteCIVA15(6)(a–d),Lei13/2016PDF14/p1426(272);27(5)(b),PDF17/p1426(275);2022PDF3mantém15(6);2025PDF14mantém27(5)(b),altera27(10),não15. Indemnização recebida declarada judicialmente por incumprimento total/parcial de contrato;descontos/abatimentos/bónus concedidos;quantias pagas em nome e por conta do adquirente/destinatário,registadas em adequadas contas de terceiros;embalagens não efectivamente transaccionadas com indicação separada e menção expressa da devolução acordada na factura/documento equivalente. Não exigir devolução já realizada.
|
||||
|
||||
Montante inicial sem próprioIVA e com inclusões15(5)consideradas−exclusões ainda incluídas. Já excluídas conservadas sem segunda subtracção;desconhecido não é zero/exclusão presumida;exclusões superiores ao inicial não criam base negativa/pisozero. Referências e âmbitos por tratamento identificam declaração judicial/contrato,concessão do desconto,contas de terceiros/adquirente e menção documental da embalagem;reutilizar documentos ou pressupostos expressos de projecção,sem certificados/aprovadores novos. Decimal exacto até6casas,sem arredondamento fiscal presumido. LivroconsiderationExclusions por oportunidade/operação/parcelas no snapshot/API/dossier existentes,sem schema/permissões novos. Mudança de tipo conserva valores/referências/âmbito/contas/menção oculta,limpa condições próprias;escolha técnica de integridade. SemIVA/incidência/taxa/dedução/campo11/regularizações/totaisModeloA ou postagem em períodos anteriores. P101 e livros anteriores permanecem intactos.
|
||||
|
||||
Provas do delta:**4testes frontend**,**APIprivada1teste/34asserções**,guarda`simulator_fiscal_delta_20261021_test:55441` e rollback;tipos/build passaram. Interface real Edge/CUA:declaração judicial desconhecida,desconto não concedido,condição de contas de terceiros desconhecida e menção de devolução acordada desconhecida impedem exclusão automática. Indemnização100.10já excluída→1000.25−100.45=899.80,sem segunda subtracção. Gravação recuperada/relatório final:1000.25−(100.10+50.25+30.15+20.05)=799.70,IVAindeterminado,1operação/4parcelas/8versões anteriores. Dados sintéticos,não aceitação manual atribuída à Tempo.84fechos/livros/resultados/históricos intactos,incluindoP101/P100/P095/P094/P091/P090,P060/P056/P050 eP084/P085parciais;provas anteriores reutilizadas. [RegistoQA](../simulations/iva-l1-g7g-qa-20261024.json).
|
||||
|
||||
**84entregues +1emQA(P102) +47funcionaispendentes +P001 =133**. Homologação permanece`7e5710eb`;falta integração/entrega pelo processoGit,manifesto/backup/restauro e delta instalado. P084/P085 continuam nos47,apenas preparação/simulação condicionada,sem benefícios confirmados. L1aberto;P00105/06;bebidasL2/L3;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — preparação G7G/P102,inventário antes de testes
|
||||
|
||||
G7F/P101 aceite7e5710eb/a89f9eca;**84entregues+48funcionaispendentes+P001=133**. Inventariados84fechos,sem perdas confirmadas;provas instaladas código/schema/dados/configuração/permissões174tabelas/369ficheiros/29fichas/28relações/408geometrias reutilizadas. Congelados livros/resultados/históricos,incluindoP101(base única),P100(valor normal),P095(TCuma vez),P094(âmbito),P091/P090,P060/P056,P050,P084/P085parciais. Sem repetir aceitação anterior ou ensaiar no activo.
|
||||
|
||||
G7G/P102 executaCIVA15(6)(a–d),2016PDF14/p1426(272):indemnização recebida declarada judicialmente por incumprimento total/parcial de contrato;descontos/abatimentos/bónus concedidos;quantias pagas em nome e por conta do adquirente/destinatário,registadas em adequadas contas de terceiros;embalagens não efectivamente transaccionadas com elementos27(5)(b).27(5)(b),PDF17/p1426(275):indicação separada e menção expressa de devolução acordada,não devolução já realizada.2022PDF3mantém15(6);2025PDF14mantém27(5)(b),altera27(10),não15;rectificação2017não altera estes requisitos. Fontes/exemplares/inventário aceites,cotejo visual com skillPDF. Um ramo,quatro tratamentos com condições e referências próprias;desconhecido não é zero/não aplicável. Montante inicial sem próprioIVA e com15(5)considerado;subtrair apenas exclusões ainda incluídas,sem segunda exclusão. Não determinarIVA/dedução/campo11/regularizações/totaisModeloA ou criar certificados/aprovadores. Novo livro incremental,snapshot/API/relatório existentes,sem schema/permissões. L1aberto;P00105/06;bebidasL2/L3;P084/P085parciais;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — G7F/P101 entregue:composição da contraprestação sem dupla contagem
|
||||
|
||||
Homologação **`7e5710eb`**,pelo processoGit existente,sobre`70b4a640`;candidata`6f90fcb9` expressamente aceite pela Tempo. **P101:um ramo,dois tratamentos de parcela**,`tax_component` e`accessory_component`,na mesma base por operação. Montante inicial sem próprioIVA e com exclusões aplicáveis consideradas+parcelas ainda não incluídas;parcelas já incluídas conservadas sem segunda soma. Natureza,imposições excepto próprioIVA e despesas acessórias relativas a comissões/embalagem/transporte/seguros debitadas por conta do cliente,montantes,inclusão e referências conservados nas entradas imutáveis,versões/histórico/relatório. Sem zero/soma presumidos;respeitar bases especiais15(2)incluindoTCemP095/exclusões15(6). P102detalhado não é fechado por esta entrega. Base separada de incidência/taxa/IVA(IVA/taxa permanecemnull),dedução/campo11/totaisModeloA. Livros anteriores não alterados nem base somada como imposto.
|
||||
|
||||
Destino e main conferidos novamente;sem avanço concorrente encontrado. Nova sessãoSSH autenticada para esta entrega,sem guardar credenciais. Backup novo e restauro real isolado sem rede:**174tabelas e369ficheiros/configuração**. ProvasQA aceites reutilizadas;conferido apenas delta instalado:revisão servida,manifesto/hash,15marcadores compilados do livro/componente/relatório,base única/parcelas/natureza/montante/inclusão/referências,quatro ficheiros funcionais e simuladorHTTP200. Comparação PostgreSQL pela mesma identidade antes/depois:174tabelas/369ficheiros,29fichas publicadas/28relações/408geometrias preservados;diferenças apenas cache/sessões. Zero migrações/importações/alterações de permissões e zero ensaios sintéticos no activo. Release/backup anteriores preservados;contençãoP101 conferida,não aplicada,leitores/históricos e restantes ramos preservados.
|
||||
|
||||
[Manifesto/recibo](../simulations/l1-g7f-delivery-20261024.json),registo`iva_l1_g7f_P101_homologation_20261024`. **84entregues +48funcionaispendentes +P001 =133;sem candidatasQA por disponibilizar.** Os83fechos anteriores permanecem encerrados. P084/P085 continuam nos48,apenas preparação/simulação condicionada,sem benefícios confirmados;rascunhos,decisões,âmbitos e históricos preservados. L1aberto;P001 só05/06;bebidasL2/L3;Estatísticas/IAadiadas. FecharL1 não exige concluirL2/L3 nem todos os impostos.
|
||||
|
||||
|
||||
|
||||
## 24/10/2026 — G7F/P101 concluído emQA:composição da contraprestação sem dupla contagem
|
||||
|
||||
Implementação`e3caf553`. **Um ramo,dois tratamentos de parcela**:`tax_component` e`accessory_component`,na mesma composição por operação. FonteCIVA15(5)(a)/(b),Lei13/2016PDF14/p1426(272),15(1)/(2)/(6);Lei22/2022PDF3mantém5 por remissão;Lei10/2025não altera15. Impostos/direitos/taxas/outras imposições excepto próprioIVA;despesas acessórias debitadas relativas a comissões,embalagem,transporte e seguros por conta do cliente. Uma base por operação,não bases concorrentes por parcela.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,36 @@
|
||||
import {useState} from 'react';
|
||||
import {newExclusionBase,newExclusionPart,switchExclusionPart,exclusionBook,exclusionConditions,exclusionCurrent,exclusionReportRows,exclusionBaseSource,exclusionTreatments,partConditions,recordExclusions,saveExclusionBook,type ExclusionBook,type ExclusionRow,type ExclusionPart} from '@/lib/iva-exclusion-base';
|
||||
|
||||
export function SimulationExclusionBase({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}){
|
||||
const[error,setError]=useState('');let book:ExclusionBook;
|
||||
try{book=exclusionBook(draft);}catch(cause){return<p role="alert">{String(cause)}</p>;}
|
||||
const save=(next:ExclusionBook)=>{try{onChange('modelo_a_snapshot',saveExclusionBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
const change=(id:string,patch:Partial<ExclusionRow>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
return<details className="space-y-3 rounded border p-3">
|
||||
<summary>Base tributável — exclusões da contraprestação</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Prepare uma composição por operação,partindo do montante sem próprio IVA e com as inclusões aplicáveis já consideradas. Identifique as parcelas e se ainda estão incluídas;subtraia apenas essas parcelas,sem segunda exclusão.</p>
|
||||
<p>Cada tratamento tem condições próprias. Indemnização judicial não é qualquer compensação;desconto deve estar concedido;pagamento por conta alheia exige nome/conta do adquirente e adequadas contas de terceiros. Nas embalagens,não se exige devolução já realizada:confira a não transmissão,a indicação separada e a menção de devolução acordada. Reutilize documentos ou declare pressupostos de projecção. Base não é IVA nem regularização.</p>
|
||||
<p>{exclusionBaseSource}</p>{error&&<p role="alert">{error}</p>}
|
||||
<button type="button" className="underline" onClick={()=>save({...book,rows:[...book.rows,newExclusionBase(crypto.randomUUID(),String(draft.currency??''))]})}>Acrescentar exclusões de operação</button>
|
||||
{book.rows.map(row=>{const partChange=(id:string,patch:Partial<ExclusionPart>)=>change(row.id,{parts:row.parts.map(p=>p.id===id?{...p,...patch}:p)});return<details key={row.id} className="rounded border p-3"><summary>{row.description||'Operação por identificar'} — {row.period||'mês por indicar'}</summary>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<label>Natureza dos dados<select className="block rounded border p-2" value={row.origin} onChange={e=>change(row.id,{origin:e.target.value as ExclusionRow['origin']})}><option value="projected">Projectados / pressupostos</option><option value="effective">Efectivos declarados</option></select></label>
|
||||
{([['description','Operação identificada'],['operationRef','Referência da operação / pressuposto'],['initialAmount','Montante inicial sem próprio IVA (moeda indicada)'],['initialRef','Referência do montante inicial e da sua composição'],['documentRef','Documento da operação / referência da previsão'],['documentDate','Data do documento / prevista'],['period','Mês da operação'],['currency','Moeda de origem'],['exclusionRef','Referência da composição e exclusões aplicáveis'],['evidence','Fundamento factual / pressupostos']] as const).map(([field,label])=><label key={field}>{label}<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>)}
|
||||
</div>
|
||||
<fieldset><legend>Condições das exclusões</legend>{exclusionConditions.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>
|
||||
<button type="button" className="underline" onClick={()=>change(row.id,{parts:[...row.parts,newExclusionPart(crypto.randomUUID())]})}>Acrescentar parcela desta operação</button>
|
||||
{row.parts.map(part=><fieldset key={part.id} className="rounded border p-3"><legend>{part.description||'Parcela por identificar'}</legend>
|
||||
<label>Natureza da parcela<select className="block rounded border p-2" value={part.treatment} onChange={e=>partChange(part.id,switchExclusionPart(part,e.target.value))}><option value="">Por indicar</option>{exclusionTreatments.map(t=><option key={t.id} value={t.id}>{t.label}</option>)}</select></label>
|
||||
{([['description','Descrição da parcela'],['amount','Montante da parcela sem próprio IVA (moeda indicada)'],['reference','Referência da parcela / pressuposto']] as const).map(([field,label])=><label className="block" key={field}>{label}<input className="block rounded border p-2" value={part[field]} onChange={e=>partChange(part.id,{[field]:e.target.value})}/></label>)}
|
||||
<label>Esta parcela ainda está incluída no montante inicial?<select className="block rounded border p-2" value={part.included} onChange={e=>partChange(part.id,{included:e.target.value as ExclusionPart['included']})}><option value="">Por indicar</option><option value="yes">Sim — excluir uma vez</option><option value="no">Não — já excluída,conservar sem nova subtracção</option></select></label>
|
||||
<label>Âmbito da exclusão: operação, montantes e condições<input className="block rounded border p-2" value={part.scope} onChange={e=>partChange(part.id,{scope:e.target.value})}/></label>
|
||||
{part.treatment==='third_party_payment'&&<><label>Referência das adequadas contas de terceiros<input className="block rounded border p-2" value={part.accountRef} onChange={e=>partChange(part.id,{accountRef:e.target.value})}/></label><label>Adquirente/destinatário em nome e por conta de quem se pagou<input className="block rounded border p-2" value={part.beneficiaryRef} onChange={e=>partChange(part.id,{beneficiaryRef:e.target.value})}/></label></>}
|
||||
{part.treatment==='returnable_packaging'&&<label>Indicação separada e menção de devolução acordada na factura/documento<input className="block rounded border p-2" value={part.documentExcerpt} onChange={e=>partChange(part.id,{documentExcerpt:e.target.value})}/></label>}
|
||||
{partConditions(part.treatment).map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={part.conditions[key]??''} onChange={e=>partChange(part.id,{conditions:{...part.conditions,[key]:e.target.value as ExclusionPart['included']}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}
|
||||
<p>Mudar a natureza conserva os montantes e referências,mas exige rever a correspondência da parcela. Cada parcela será excluída uma única vez nesta operação. Os campos sem aplicação ficam ocultos e conservados.</p>
|
||||
</fieldset>)}
|
||||
</details>;})}
|
||||
{!!book.rows.length&&<button type="button" className="rounded bg-emerald-800 p-2 text-white" onClick={()=>{try{save(recordExclusions(draft,book));}catch(cause){setError(String(cause));}}}>Aplicar exclusões à base e guardar versão</button>}
|
||||
{book.result&&<><p role="status">{exclusionCurrent(draft,book)?'Exclusões correspondentes às entradas guardadas.':'Entradas alteradas;exclusões históricas conservadas. Reveja e determine novamente.'} {book.history?.length??0} versões anteriores. IVA e campo11 não são preenchidos por estas bases.</p><dl>{exclusionReportRows(draft).map(([,label,value,origin],index)=><div key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</details>;
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import { SimulationActSaleBase } from './simulation-act-sale-base';
|
||||
import { SimulationFuelBase } from './simulation-fuel-base';
|
||||
import { SimulationNoncashBase } from './simulation-noncash-base';
|
||||
import { SimulationCompositionBase } from './simulation-composition-base';
|
||||
import { SimulationExclusionBase } from './simulation-exclusion-base';
|
||||
import { SimulationOfferPreparations } from './simulation-offer-preparations';
|
||||
import { SimulationOperations } from './simulation-operations';
|
||||
|
||||
@@ -102,6 +103,7 @@ export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
<SimulationFuelBase draft={draft} onChange={onChange} />
|
||||
<SimulationNoncashBase draft={draft} onChange={onChange} />
|
||||
<SimulationCompositionBase draft={draft} onChange={onChange} />
|
||||
<SimulationExclusionBase draft={draft} onChange={onChange} />
|
||||
<SimulationOfferPreparations draft={draft} onChange={onChange} />
|
||||
<SimulationModeloA draft={draft} />
|
||||
</section>;
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
import {acquisitionScope,readAcquisitionStore} from './iva-acquisitions.ts';
|
||||
|
||||
export const exclusionBaseVersion='consideration-exclusions-base/1';
|
||||
export const exclusionBaseSource='CIVA republicado Lei13/2016,15(6)(a–d),PDF14/p1426(272):exclui indemnizações declaradas judicialmente por incumprimento total/parcial de contratos;descontos,abatimentos ou bónus concedidos;quantias pagas em nome e por conta do adquirente/destinatário registadas em adequadas contas de terceiros;embalagens não efectivamente transaccionadas com elementos27(5)(b)na factura/documento equivalente.27(5)(b),PDF17/p1426(275):indicação separada e menção expressa da devolução acordada. Lei22/2022PDF3mantém15(6);Lei10/2025PDF14mantém27(5)(b),altera27(10),não15. Recorte2026/MZN,base apenas,sem IVA/dedução/campo11/regularizações ou totaisModeloA.';
|
||||
export const exclusionTreatments=[{id:'judicial_indemnity',label:'Indemnização declarada judicialmente por incumprimento contratual'},{id:'granted_discount',label:'Desconto,abatimento ou bónus concedido'},{id:'third_party_payment',label:'Quantia paga em nome e por conta do adquirente/destinatário'},{id:'returnable_packaging',label:'Embalagem não efectivamente transaccionada,com devolução acordada'}] as const;
|
||||
export const exclusionConditions=[
|
||||
['operationIdentified','A operação e os montantes relacionados estão identificados'],
|
||||
['initialNet','O montante inicial exclui o próprio IVA e tem a composição aplicável15(5)identificada,antes das exclusões ainda não consideradas'],
|
||||
['completeComposition','As exclusões aplicáveis estão reconciliadas com o montante inicial,sem omissões ou dupla subtracção'],
|
||||
['specialRules','Esta composição respeita a regra aplicável da operação,sem substituir bases especiais ou regularizações de outros períodos'],
|
||||
] as const;
|
||||
export const exclusionPartConditions={
|
||||
judicial_indemnity:[['judicialDeclaration','A indemnização recebida foi declarada judicialmente'],['contractBreach','Corresponde ao incumprimento total ou parcial de contrato']],
|
||||
granted_discount:[['granted','O desconto,abatimento ou bónus está concedido e corresponde a esta operação']],
|
||||
third_party_payment:[['paidInName','A quantia foi paga em nome do adquirente/destinatário identificado'],['paidForAccount','A quantia foi paga por conta desse adquirente/destinatário'],['thirdPartyAccounts','Está registada pelo contribuinte em adequadas contas de terceiros']],
|
||||
returnable_packaging:[['notTransacted','As embalagens não foram efectivamente transaccionadas'],['separateIndication','Constam separadamente na factura ou documento equivalente'],['returnMention','Consta menção expressa de que foi acordada a devolução das embalagens']],
|
||||
} as const;
|
||||
export function partConditions(treatment:string):ReadonlyArray<readonly[string,string]>{return exclusionPartConditions[treatment as keyof typeof exclusionPartConditions]??[];}
|
||||
type Choice=''|'yes'|'no';type Condition=typeof exclusionConditions[number][0];
|
||||
export type ExclusionPart={id:string;treatment:string;description:string;amount:string;included:Choice;reference:string;scope:string;accountRef:string;beneficiaryRef:string;documentExcerpt:string;conditions:Partial<Record<string,Choice>>};
|
||||
export type ExclusionRow={id:string;description:string;period:string;origin:'projected'|'effective';currency:string;initialAmount:string;initialRef:string;operationRef:string;documentRef:string;documentDate:string;exclusionRef:string;evidence:string;conditions:Partial<Record<Condition,Choice>>;parts:ExclusionPart[]};
|
||||
type LineResult={id:string;status:'determined'|'not_applicable'|'indeterminate';baseAmount:string|null;vat:null;rate:null;reason:string};
|
||||
export type ExclusionCalculation={version:string;revision:number;calculatedAt:string;opportunity:string;location:string;sourceKey:string;source:string;inputs:ExclusionRow[];rows:LineResult[]};
|
||||
export type ExclusionBook={rows:ExclusionRow[];result?:ExclusionCalculation;history?:ExclusionCalculation[]};
|
||||
type Store=ReturnType<typeof readAcquisitionStore>&{considerationExclusions?:Record<string,ExclusionBook>};
|
||||
export function newExclusionPart(id:string):ExclusionPart{return{id,treatment:'',description:'',amount:'',included:'',reference:'',scope:'',accountRef:'',beneficiaryRef:'',documentExcerpt:'',conditions:{}};}
|
||||
export function newExclusionBase(id:string,currency:string):ExclusionRow{return{id,description:'',period:'',origin:'projected',currency,initialAmount:'',initialRef:'',operationRef:'',documentRef:'',documentDate:'',exclusionRef:'',evidence:'',conditions:{},parts:[]};}
|
||||
export function switchExclusionPart(part:ExclusionPart,treatment:string):ExclusionPart{return{...part,treatment,conditions:{}};}
|
||||
function readStore(draft:Record<string,unknown>):Store{
|
||||
const store=readAcquisitionStore(draft.modelo_a_snapshot) as Store;
|
||||
if(store.considerationExclusions!==undefined&&(!store.considerationExclusions||typeof store.considerationExclusions!=='object'||Array.isArray(store.considerationExclusions)))throw new Error('Exclusões não recuperáveis;originais preservados.');
|
||||
const fields=Object.keys(newExclusionBase('','')).filter(key=>!['conditions','parts'].includes(key));const partFields=Object.keys(newExclusionPart('')).filter(key=>key!=='conditions');
|
||||
for(const book of Object.values(store.considerationExclusions??{}))if(!book||!Array.isArray(book.rows)||(book.history!==undefined&&!Array.isArray(book.history))||book.rows.some(row=>!row||fields.some(key=>typeof row[key as keyof ExclusionRow]!=='string')||!row.conditions||typeof row.conditions!=='object'||Array.isArray(row.conditions)||!Array.isArray(row.parts)||row.parts.some(part=>!part||partFields.some(key=>typeof part[key as keyof ExclusionPart]!=='string')||!part.conditions||typeof part.conditions!=='object'||Array.isArray(part.conditions))))throw new Error('Linhas de exclusão não recuperáveis;originais preservados,sem substituição por lista vazia.');
|
||||
return store;
|
||||
}
|
||||
export function exclusionBook(draft:Record<string,unknown>):ExclusionBook{return readStore(draft).considerationExclusions?.[acquisitionScope(draft)]??{rows:[]};}
|
||||
export function saveExclusionBook(draft:Record<string,unknown>,book:ExclusionBook):string{const current=readStore(draft),encoded=JSON.stringify({...current,considerationExclusions:{...current.considerationExclusions,[acquisitionScope(draft)]:book}});readStore({...draft,modelo_a_snapshot:encoded});return encoded;}
|
||||
function decimal(raw:unknown):bigint|null{if(typeof raw!=='string'||!/^\d{1,15}(\.\d{1,6})?$/.test(raw.trim()))return null;const[whole,fraction='']=raw.trim().split('.');return BigInt(whole)*1000000n+BigInt(fraction.padEnd(6,'0'));}
|
||||
function money(n:bigint):string{return`${n/1000000n}.${(n%1000000n).toString().padStart(6,'0').replace(/0+$/,'').padEnd(2,'0')}`;}
|
||||
function validDate(value:string):boolean{const d=new Date(value+'T00:00:00Z');return /^\d{4}-\d{2}-\d{2}$/.test(value)&&Number.isFinite(d.getTime())&&d.toISOString().slice(0,10)===value;}
|
||||
export function evaluateExclusion(row:ExclusionRow,currency:unknown):LineResult{
|
||||
const result:LineResult={id:row.id,status:'indeterminate',baseAmount:null,vat:null,rate:null,reason:''};const stop=(reason:string,status:LineResult['status']='indeterminate')=>({...result,status,reason});
|
||||
if(currency!=='MZN'||row.currency!==currency)return stop('Moeda fora do âmbito MZN ou divergente do projecto;sem conversão silenciosa.');
|
||||
if(!/^2026-(0[1-9]|1[0-2])$/.test(row.period)||!['projected','effective'].includes(row.origin))return stop('Indique mês em2026 e dados efectivos declarados ou pressupostos de projecção.');
|
||||
const failed=exclusionConditions.filter(([key])=>row.conditions[key]==='no');if(failed.length)return stop('Não se aplica esta composição: '+failed.map(([,label])=>label).join('; ')+'. Não é isenção nem IVA zero.','not_applicable');
|
||||
const missing=exclusionConditions.filter(([key])=>row.conditions[key]!=='yes');if(missing.length)return stop('Condições por indicar: '+missing.map(([,label])=>label).join('; ')+'. Desconhecido não é zero.');
|
||||
if(!row.description.trim()||!row.initialRef.trim()||!row.operationRef.trim()||!row.documentRef.trim()||!row.exclusionRef.trim()||!row.evidence.trim()||!validDate(row.documentDate))return stop('Identifique operação,montante inicial,documento/data,composição e fundamento ou pressupostos expressos;reutilize referências existentes,sem certificado/aprovador novo.');
|
||||
const initial=decimal(row.initialAmount);if(initial===null)return stop('Indique o montante inicial sem próprio IVA,com as inclusões aplicáveis consideradas e antes das exclusões ainda não realizadas;desconhecido não é zero.');
|
||||
if(!row.parts.length||new Set(row.parts.map(p=>p.id)).size!==row.parts.length||row.parts.some(p=>!p.id.trim()))return stop('Identifique as parcelas desta operação com identificadores distintos;sem subtracção de linhas vazias ou duplicadas.');
|
||||
let exclusions=0n;const formulas:string[]=[];
|
||||
for(const part of row.parts){
|
||||
const rule=exclusionTreatments.find(t=>t.id===part.treatment);if(!rule)return stop('Identifique o tratamento de cada parcela;uma descrição genérica não demonstra exclusão.');
|
||||
const own=partConditions(part.treatment),failed=own.filter(([key])=>part.conditions[key]==='no');
|
||||
if(failed.length)return stop('Não se aplica a exclusão da parcela '+part.id+': '+failed.map(([,label])=>label).join('; ')+'. Sem subtracção automática ou IVA zero.','not_applicable');
|
||||
if(own.some(([key])=>part.conditions[key]!=='yes')||!['yes','no'].includes(part.included))return stop('Confirme as condições próprias da parcela '+part.id+' e se ainda está incluída no montante inicial;desconhecido não permite presumir exclusão ou zero.');
|
||||
if(!part.description.trim()||!part.reference.trim()||!part.scope.trim())return stop('Identifique descrição,referência e âmbito da parcela '+part.id+',ou pressuposto expresso. Na indemnização,a referência identifica a declaração judicial e o contrato;no desconto,a concessão.');
|
||||
if(part.treatment==='third_party_payment'&&(!part.accountRef.trim()||!part.beneficiaryRef.trim()))return stop('Identifique as adequadas contas de terceiros e o adquirente/destinatário em nome e por conta de quem se pagou,ou pressupostos expressos;despesa própria não equivale a pagamento por conta alheia.');
|
||||
if(part.treatment==='returnable_packaging'&&!part.documentExcerpt.trim())return stop('Identifique na referência da factura/documento a indicação separada e a menção expressa da devolução acordada,ou pressuposto expresso;sem exigir devolução já realizada.');
|
||||
const amount=decimal(part.amount);if(amount===null)return stop('Indique o montante exacto da parcela '+part.id+';desconhecido não é zero.');
|
||||
if(part.included==='yes')exclusions+=amount;
|
||||
formulas.push(`${part.id}:${rule.label},${money(amount)}MZN,${part.included==='yes'?'excluída uma vez':'já excluída,sem segunda subtracção'}`);
|
||||
}
|
||||
if(exclusions>initial)return stop('As exclusões ainda incluídas excedem o montante inicial;reveja a composição,sem base negativa ou piso zero presumido.');
|
||||
const base=initial-exclusions;return{...result,status:'determined',baseAmount:money(base),reason:`Base15(6):montante inicial ${money(initial)} − exclusões ainda incluídas ${money(exclusions)} = ${money(base)}MZN;${formulas.join('; ')},${row.origin==='projected'?'nas condições expressamente assumidas na projecção':'nos dados efectivos declarados'}. Base única por operação. Base não é imposto;IVA/taxa,dedução/campo11,regularizações e totaisModeloA não são determinados por esta composição.`};
|
||||
|
||||
}
|
||||
function key(draft:Record<string,unknown>,book:ExclusionBook):string{return JSON.stringify({version:exclusionBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
export function exclusionCurrent(draft:Record<string,unknown>,book:ExclusionBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordExclusions(draft:Record<string,unknown>,book:ExclusionBook):ExclusionBook{
|
||||
if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos;originais conservados.');
|
||||
const result:ExclusionCalculation={version:exclusionBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:exclusionBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateExclusion(row,draft.currency))};
|
||||
const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveExclusionBook(draft,next);return next;
|
||||
}
|
||||
export function exclusionReportRows(draft:Record<string,unknown>):Array<[string,string,string,string]>{
|
||||
try{const book=exclusionBook(draft),result=book.result;if(!result)return[];return result.inputs.map((row,index)=>['IVA mensal',`Base P102 — ${row.period} — ${row.id}`,`${row.description};base tributável: ${result.rows[index].baseAmount??'Indeterminada'} ${row.currency};IVA: Indeterminado;${result.rows[index].reason}`,`${result.opportunity};${result.location};${exclusionCurrent(draft,book)?'Resultado actual':'Entradas alteradas;resultado histórico conservado'};versão${result.revision};${result.calculatedAt};${result.source};${row.origin==='projected'?'Projecção':'Dados efectivos declarados'};operação ${row.operationRef};montante inicial ${row.initialAmount} ${row.currency},referência ${row.initialRef};parcelas ${row.parts.map(p=>`${p.id}/${p.treatment},${p.description},${p.amount} ${row.currency},já incluída:${p.included==='yes'?'Sim':p.included==='no'?'Não':'Por indicar'},referência ${p.reference},âmbito ${p.scope}${p.treatment==='third_party_payment'?`,contas ${p.accountRef},adquirente/destinatário ${p.beneficiaryRef}`:''}${p.treatment==='returnable_packaging'?`,menção documental ${p.documentExcerpt}`:''},condições ${partConditions(p.treatment).map(([key,label])=>label+': '+(p.conditions[key]==='yes'?'Sim':p.conditions[key]==='no'?'Não':'Por indicar')).join('; ')}`).join('; ')};composição ${row.exclusionRef};documento ${row.documentRef},${row.documentDate};condições ${exclusionConditions.map(([key,label])=>label+': '+(row.conditions[key]==='yes'?'Sim':row.conditions[key]==='no'?'Não':'Por indicar')).join('; ')};fundamento ${row.evidence};não preenche totaisModeloA ou campo11.`]);}
|
||||
catch{return[['IVA mensal','Composição da contraprestação','Dados não recuperáveis','Originais preservados;sem substituir por zero.']];}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import { actSaleReportRows } from './iva-act-sale-base.ts';
|
||||
import { fuelBaseReportRows } from './iva-fuel-base.ts';
|
||||
import { noncashBaseReportRows } from './iva-noncash-base.ts';
|
||||
import { compositionReportRows } from './iva-composition-base.ts';
|
||||
import { exclusionReportRows } from './iva-exclusion-base.ts';
|
||||
import { offerPreparationReportRows } from './iva-offer-preparations.ts';
|
||||
import { salesReportRows } from './iva-operations.ts';
|
||||
import { fiscalQaRows } from './fiscal-qa-preview.ts';
|
||||
@@ -632,6 +633,7 @@ export function buildProjectDossierRows(
|
||||
rows.push(...fuelBaseReportRows(draft));
|
||||
rows.push(...noncashBaseReportRows(draft));
|
||||
rows.push(...compositionReportRows(draft));
|
||||
rows.push(...exclusionReportRows(draft));
|
||||
rows.push(...offerPreparationReportRows(draft));
|
||||
const operationRows = salesReportRows(draft);
|
||||
rows.push(...operationRows);
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<?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 IvaExclusionBaseDraftTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_exclusion_bases_recover_privately_preserving_all_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-g7g-bases.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:345', $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['considerationExclusions']['opportunity:345'];
|
||||
$this->assertCount(1, $book['rows']);
|
||||
$this->assertCount(4, $book['rows'][0]['parts']);
|
||||
$this->assertSame(['judicial_indemnity','granted_discount','third_party_payment','returnable_packaging'], array_column($book['rows'][0]['parts'], 'treatment'));
|
||||
$this->assertSame(['799.70'], array_column($book['result']['rows'], 'baseAmount'));
|
||||
$this->assertSame(['determined'], array_column($book['result']['rows'], 'status'));
|
||||
$this->assertSame([null], array_column($book['result']['rows'], 'vat'));
|
||||
$this->assertSame([null], array_column($book['result']['rows'], 'rate'));
|
||||
$this->assertSame('1000.25', $book['rows'][0]['initialAmount']);
|
||||
$this->assertSame(['100.10','50.25','30.15','20.05'], array_column($book['rows'][0]['parts'], 'amount'));
|
||||
$this->assertSame(['yes','yes','yes','yes'], array_column($book['rows'][0]['parts'], 'included'));
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][0]['conditions']['judicialDeclaration']);
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][1]['conditions']['granted']);
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][2]['conditions']['thirdPartyAccounts']);
|
||||
$this->assertSame('yes', $book['rows'][0]['parts'][3]['conditions']['returnMention']);
|
||||
$this->assertStringContainsString('contas de terceiros A', $book['rows'][0]['parts'][2]['accountRef']);
|
||||
$this->assertStringContainsString('adquirente B', $book['rows'][0]['parts'][2]['beneficiaryRef']);
|
||||
$this->assertStringContainsString('devolução acordada', $book['rows'][0]['parts'][3]['documentExcerpt']);
|
||||
$this->assertStringContainsString('declaração judicial', $book['rows'][0]['parts'][0]['reference']);
|
||||
$this->assertStringContainsString('15(6)', $book['result']['source']);
|
||||
$this->assertSame($book['rows'], $book['result']['inputs']);
|
||||
$this->assertCount(2, $book['history']);
|
||||
$this->assertNull($book['history'][0]['rows'][0]['baseAmount']);
|
||||
$frozen = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g7g-preserved-inputs.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$prior = json_decode($frozen['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$this->assertSame($prior, array_diff_key($store, ['considerationExclusions' => true]));
|
||||
$this->assertSame('1250.30', $store['publicAuthorityBases']['opportunity:339']['result']['rows'][1]['baseAmount']);
|
||||
$this->assertNull($store['publicAuthorityBases']['opportunity:339']['result']['rows'][1]['vat']);
|
||||
$this->assertSame('400.00', $store['importExemptions']['opportunity:338']['result']['rows'][1]['importVat']);
|
||||
$this->assertNull($store['books']['opportunity:329']['result']['periods'][0]['fields']['11']);
|
||||
file_put_contents(base_path('outputs/iva-l1-g7g-exclusions-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,42 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import {newExclusionBase,newExclusionPart,switchExclusionPart,exclusionTreatments,exclusionConditions,partConditions,evaluateExclusion,recordExclusions,saveExclusionBook,exclusionBook,exclusionCurrent,exclusionReportRows} from '../../resources/js/lib/iva-exclusion-base.ts';
|
||||
import {compositionCurrent} from '../../resources/js/lib/iva-composition-base.ts';
|
||||
import {fuelBaseCurrent} from '../../resources/js/lib/iva-fuel-base.ts';
|
||||
import {createProjectDossierReport} from '../../resources/js/lib/project-dossier-report.ts';
|
||||
const frozen=JSON.parse(fs.readFileSync(new URL('./fixtures/iva-g7g-preserved-inputs.json',import.meta.url),'utf8'));
|
||||
const part=(treatment='judicial_indemnity',id=treatment)=>({...newExclusionPart(id),treatment,description:'SYNTHETIC QA '+treatment,amount:({judicial_indemnity:'100.10',granted_discount:'50.25',third_party_payment:'30.15',returnable_packaging:'20.05'})[treatment],included:'yes',reference:'SYNTHETIC QA referência '+id+' / declaração judicial e contrato quando aplicável',scope:'SYNTHETIC QA operação A,montante e condições deste tratamento',accountRef:'SYNTHETIC QA contas de terceiros A',beneficiaryRef:'SYNTHETIC QA adquirente B',documentExcerpt:'SYNTHETIC QA factura A,embalagens separadas,devolução acordada expressamente',conditions:Object.fromEntries(partConditions(treatment).map(([key])=>[key,'yes']))});
|
||||
const row=()=>({...newExclusionBase('g7g-operation-A','MZN'),description:'SYNTHETIC QA exclusões operação A',period:'2026-12',operationRef:'SYNTHETIC QA operação A',initialAmount:'1000.25',initialRef:'SYNTHETIC QA montante sem próprioIVA,inclusões15(5)consideradas',documentRef:'SYNTHETIC QA G7G documento A',documentDate:'2026-12-12',exclusionRef:'SYNTHETIC QA quatro exclusões reconciliadas,sem duplicação',evidence:'SYNTHETIC QA pressupostos expressos,não documento real',conditions:Object.fromEntries(exclusionConditions.map(([key])=>[key,'yes'])),parts:exclusionTreatments.map(t=>part(t.id))});
|
||||
const draft=()=>({...structuredClone(frozen),context_opportunity:'opportunity:345',project_title:'SYNTHETIC QA — G7G / Exclusões da contraprestação'});
|
||||
|
||||
test('P102 four treatments each own statutoryconditions and references;unknown/no never become automatic exclusion',()=>{
|
||||
const input=row(),ok=evaluateExclusion(input,'MZN');assert.equal(ok.baseAmount,'799.70');assert.equal(ok.vat,null);assert.equal(ok.rate,null);
|
||||
for(const[key]of exclusionConditions)for(const value of ['','unknown','no']){const r=evaluateExclusion({...input,conditions:{...input.conditions,[key]:value}},'MZN');assert.equal(r.status,value==='no'?'not_applicable':'indeterminate');assert.equal(r.baseAmount,null);}
|
||||
for(const t of exclusionTreatments){const p=part(t.id);assert.equal(evaluateExclusion({...input,parts:[p]},'MZN').status,'determined');for(const[key]of partConditions(t.id))for(const value of ['','unknown','no']){const r=evaluateExclusion({...input,parts:[{...p,conditions:{...p.conditions,[key]:value}}]},'MZN');assert.equal(r.status,value==='no'?'not_applicable':'indeterminate');assert.equal(r.baseAmount,null);assert.equal(r.vat,null);}
|
||||
for(const patch of [{reference:''},{scope:''},{description:''},{included:''},{amount:''}])assert.equal(evaluateExclusion({...input,parts:[{...p,...patch}]},'MZN').baseAmount,null);
|
||||
}
|
||||
for(const patch of [{description:''},{operationRef:''},{initialRef:''},{documentRef:''},{documentDate:'2026-02-30'},{exclusionRef:''},{evidence:''},{period:'2025-12'},{currency:'USD'}])assert.equal(evaluateExclusion({...input,...patch},'MZN').baseAmount,null);
|
||||
for(const patch of [{accountRef:''},{beneficiaryRef:''}])assert.equal(evaluateExclusion({...input,parts:[{...part('third_party_payment'),...patch}]},'MZN').baseAmount,null);assert.equal(evaluateExclusion({...input,parts:[{...part('returnable_packaging'),documentExcerpt:''}]},'MZN').baseAmount,null);
|
||||
});
|
||||
|
||||
test('subtract included exclusions only,alreadyexcluded retained;exactdecimal/zero/excess;switch retains unrelated references and clearsconditions',()=>{
|
||||
const input=row();assert.equal(evaluateExclusion({...input,parts:input.parts.map(p=>({...p,included:'no'}))},'MZN').baseAmount,'1000.25');assert.equal(evaluateExclusion({...input,parts:input.parts.map(p=>({...p,included:p.treatment==='judicial_indemnity'?'no':'yes'}))},'MZN').baseAmount,'899.80');
|
||||
assert.equal(evaluateExclusion({...input,initialAmount:'0',parts:[{...part(),amount:'0'}]},'MZN').baseAmount,'0.00');assert.equal(evaluateExclusion({...input,initialAmount:'1.000002',parts:[{...part(),amount:'0.000001'}]},'MZN').baseAmount,'1.000001');assert.equal(evaluateExclusion({...input,initialAmount:'999999999999999.999999',parts:[{...part(),amount:'0.000001'}]},'MZN').baseAmount,'999999999999999.999998');
|
||||
for(const amount of ['-1','NaN','0.0000001','','1000.26'])assert.equal(evaluateExclusion({...input,parts:[{...part(),amount}]},'MZN').baseAmount,null);assert.equal(evaluateExclusion({...input,initialAmount:''},'MZN').baseAmount,null);
|
||||
const switched=switchExclusionPart(part('third_party_payment'),'returnable_packaging');assert.deepEqual(switched.conditions,{});for(const field of ['amount','reference','scope','accountRef','beneficiaryRef','documentExcerpt','included'])assert.equal(switched[field],part('third_party_payment')[field]);assert.equal(evaluateExclusion({...input,parts:[switched]},'MZN').baseAmount,null);assert.equal(evaluateExclusion({...input,parts:[]},'MZN').baseAmount,null);assert.equal(evaluateExclusion({...input,parts:[part(),part()]},'MZN').baseAmount,null);
|
||||
});
|
||||
|
||||
test('save/recovery/history/report keep one base/four exclusions and all84 previous books/currentkeys unchanged',()=>{
|
||||
const d=draft(),prior=JSON.parse(d.modelo_a_snapshot);assert.deepEqual(exclusionBook(d),{rows:[]});assert.deepEqual(exclusionReportRows(d),[]);
|
||||
let book=recordExclusions(d,{rows:[{...row(),conditions:{}}]});book=recordExclusions(d,{...book,rows:[{...row(),parts:[{...part('granted_discount'),conditions:{granted:'no'}}]}]});book=recordExclusions(d,{...book,rows:[row()]});assert.equal(book.history.length,2);assert.ok(book.history.every(h=>h.rows.every(r=>r.baseAmount===null&&r.vat===null)));assert.ok(exclusionCurrent(d,book));assert.equal(book.result.rows.length,1);assert.equal(book.result.inputs[0].parts.length,4);
|
||||
for(const field of ['amount','included','reference','treatment','scope','accountRef','beneficiaryRef','documentExcerpt'])assert.ok(!exclusionCurrent(d,{...book,rows:book.rows.map(r=>({...r,parts:r.parts.map(p=>({...p,[field]:'changed'}))}))}));for(const patch of [{context_opportunity:'opportunity:346'},{currency:'USD'},{selection_labels:{province_id:'Maputo'}}])assert.ok(!exclusionCurrent({...d,...patch},book));
|
||||
d.modelo_a_snapshot=saveExclusionBook(d,book);assert.deepEqual(exclusionBook(JSON.parse(JSON.stringify(d))),book);const next=JSON.parse(d.modelo_a_snapshot);const{considerationExclusions,...untouched}=next;assert.deepEqual(untouched,prior);for(const[scope,previous]of Object.entries(prior.considerationCompositions))assert.ok(compositionCurrent({...d,context_opportunity:scope},previous));for(const[scope,previous]of Object.entries(prior.regulatedFuelBases))assert.ok(fuelBaseCurrent({...d,context_opportunity:scope},previous));
|
||||
assert.equal(next.considerationCompositions['opportunity:344'].result.rows[0].baseAmount,'1150.60');assert.equal(next.noncashBases['opportunity:343'].result.rows[1].baseAmount,'2700.75');assert.equal(next.regulatedFuelBases['opportunity:342'].result.rows[0].baseAmount,'1400.15');assert.equal(next.importExemptions['opportunity:338'].result.rows[1].importVat,'400.00');assert.equal(next.books['opportunity:329'].result.periods[0].fields['11'],null);
|
||||
const report=JSON.stringify(createProjectDossierReport(d,{selectedSections:new Set(['finance']),version:'QA G7G'}));for(const token of ['Base P102','799.70','IVA: Indeterminado','opportunity:345','Manica','2026-12','operação A','15(6)','100.10','27(5)(b)','contas de terceiros A','devolução acordada','campo11'])assert.ok(report.includes(token),token);assert.equal(exclusionReportRows(d).length,1);assert.deepEqual(exclusionReportRows({...d,context_opportunity:'opportunity:346'}),[]);
|
||||
if(process.env.IVA_G7G_CALCULATED)fs.writeFileSync(process.env.IVA_G7G_CALCULATED,JSON.stringify(d));
|
||||
});
|
||||
|
||||
test('corrupt nested exclusions/store cannot overwrite originals;duplicate operation ids cannot be recorded',()=>{
|
||||
const d=draft(),original=d.modelo_a_snapshot;for(const patch of [{initialAmount:4},{conditions:[]},{parts:{}},{parts:[{...part(),amount:4}]},{parts:[{...part(),conditions:[]}]},{parts:[null]}])assert.throws(()=>saveExclusionBook(d,{rows:[{...row(),...patch}]}),/originais preservados/);assert.equal(d.modelo_a_snapshot,original);assert.throws(()=>recordExclusions(d,{rows:[row(),row()]}),/distintos/);assert.throws(()=>recordExclusions(d,{rows:[]}),/distintos/);assert.throws(()=>exclusionBook({...d,modelo_a_snapshot:JSON.stringify({...JSON.parse(original),considerationExclusions:[]})}),/originais preservados/);
|
||||
});
|
||||
Reference in New Issue
Block a user