73 lines
4.1 KiB
JSON
73 lines
4.1 KiB
JSON
{
|
|
"date": "2026-11-22",
|
|
"status": "prepared_awaiting_specific_qa_contract_authorization",
|
|
"purpose": "RQ-01 approved requisition line splitting and consolidation into purchase orders, with native budget lineage",
|
|
"existing_authorization": "rq01-distribution-contract-authorization.json covers explicit line/centre distributions; the installed V1 pilot release remains preserved",
|
|
"evidence": {
|
|
"common_source": "C:\\laragon\\www\\sgf-tempo\\packages\\budget-control\\src\\BudgetDistributions.php",
|
|
"common_source_sha256": "7f963593b2d0b45f89261d90fff384805aa24df2132997f97477b6ca7082f21b",
|
|
"current_constraint": "recordDistribution commits a whole single-origin plan; purchase_orders uniquely references requisition_id and purchase_award_id; invoices and native budget consumption each reference one purchase order/invoice",
|
|
"host_schema": [
|
|
"database/migrations/2026_10_28_000005_create_purchase_awards_and_orders.php",
|
|
"database/migrations/2026_10_28_000010_create_invoices.php"
|
|
]
|
|
},
|
|
"requested_scope": [
|
|
"Extend only the canonical common budget source in SGF and the SGC adaptation in isolated development/QA; no second financial engine",
|
|
"Introduce an optional separately negotiated capability while preserving V1 methods, data and installed artifact",
|
|
"Track original requisition/line, approved supplier award, issued order part and invoice allocation by stable identity and version",
|
|
"Commit only issued quantities/amounts; preserve the unissued reservation and cap cumulative quantities and native amounts",
|
|
"Consolidate compatible approved origins for the same company, supplier and document currency without bypassing award decisions",
|
|
"Keep one native invoice and one payable principal; atomically consume allocated commitments across authorized origins",
|
|
"Preserve original explicit frozen exchange rates and native cumulative rounding; use already approved explicit Finance allocation/versioned amendments without automatic compensation",
|
|
"Keep current document access and cancellation policy; do not duplicate documents, auto-reopen processes or release unrelated balances",
|
|
"Preserve legacy records and fail closed on unsupported capability; no silent downgrade after new effects exist"
|
|
],
|
|
"illustrative_synthetic_acceptance": [
|
|
{
|
|
"scenario": "100 MZN requisition split into 40 and 60 MZN orders",
|
|
"after_first": {
|
|
"reserved": 60,
|
|
"committed": 40
|
|
},
|
|
"after_second": {
|
|
"reserved": 0,
|
|
"committed": 100
|
|
},
|
|
"replay": "No duplicate financial effect"
|
|
},
|
|
{
|
|
"scenario": "Approved origins of 100 and 200 MZN consolidated into one 300 MZN order",
|
|
"invoice": {
|
|
"principal": 150,
|
|
"origin_consumptions": [
|
|
50,
|
|
100
|
|
],
|
|
"remaining_commitment": 150
|
|
},
|
|
"failure": "Any invalid source, authorization or balance rejects the entire operation"
|
|
},
|
|
{
|
|
"scenario": "100 USD at frozen rate 64 and 100 USD at frozen rate 65",
|
|
"document_usd": 200,
|
|
"original_mzn_references": 12900,
|
|
"rule": "Preserve both source rates; do not create an averaged exchange rate"
|
|
}
|
|
],
|
|
"required_verification": [
|
|
"Native end-to-end split/consolidation/receipt/invoice lineage",
|
|
"Quantity and monetary limits, explicit FX allocation, authorization and isolation failures",
|
|
"Real isolated PostgreSQL atomicity, concurrency, operation replay and stale versions",
|
|
"V1 and legacy regression; same-role backup/restore in disposable QA",
|
|
"Mobile, print and contextual help for affected journeys before any operational proposal"
|
|
],
|
|
"excluded": [
|
|
"Published or installed financial artifacts, including the current V1 pilot release",
|
|
"Pilot or SGF migration, installation or activation",
|
|
"Real business data, permissions, budgets, payments or accounting postings",
|
|
"Automatic Finance reallocations, invented exchange rates or relaxed supplier/approval/cancellation controls"
|
|
],
|
|
"later_deployment": "Requires a separate concrete proposal, compatibility evidence, backup/restore and specific target authorization"
|
|
}
|