Admin workspace
Governance, executive dashboards, observability, module control, and ERP route clarity.
Enterprise Admin Workspace
Procurement table health and vendor-chain readiness from canonical ERP readiness only.
/api/trade-core/erp/readiness/api/trade-core/erp/db-readiness/api/trade-core/erp/admin-controls/api/trade-core/erp/automation-matrix/api/trade-core/erp/audit-timeline/api/trade-core/erp/finance-chain-replay-audit/api/trade-core/erp/procurement-audit?limit=80/api/trade-core/erp/tax-reconciliation/api/trade-core/erp/invoice-tax-breakup/api/trade-core/erp/tax-rule/list/api/trade-core/erp/tax-ledger/api/trade-core/erp/tax-audit/api/trade-core/erp/tax-export-json/api/trade-core/erp/scheduler-simulation/preview/api/trade-core/erp/scheduler-simulation/healthGET /api/trade-core/erp/procurement-audit?limit=80Trusted-admin GET readback for vendor, PO, receipt, AP, and procurement audit events. This UI does not create vendors, POs, receipts, AP rows, or wallet/payment entries.| Module | PO | Vendor | Action | Approval | Actor | Created |
|---|---|---|---|---|---|---|
| No procurement audit events returned by the existing backend read route. | ||||||
GET /api/trade-core/erp/automation-matrixTrusted-admin GET readback for automation rules, admin control, approval, and disabled live execution flags. No matrix write or scheduler run button is mounted here.| Module | Matrix | Rule | Admin controlled | Approval | Automation |
|---|---|---|---|---|---|
| No automation matrix rows returned by the existing backend read route. | |||||
GET /api/trade-core/erp/db-readinessRead-only ERP DB inspection route. Migration/apply instructions remain text only here; this UI does not apply migrations or execute SQL.| Object | Name | Status | OK | Detail |
|---|---|---|---|---|
| No DB readiness table rows returned; inspect the JSON slice from the route response if needed. | ||||
GET /api/trade-core/erp/admin-controlsTrusted-admin GET readback for module policy locks, automation gates, return windows, seller release delays, and exact 22-module governance. This panel renders no lock/unlock controls.| Scope | Automation | Escrow | Wallet | Invoice | Commission | Payout | Receipt | Updated |
|---|---|---|---|---|---|---|---|---|
| No admin-control module rows returned by the existing backend read route. | ||||||||
/api/trade-core/erp/readinessRegistry, admin locks, warnings, and DB status labels only./api/trade-core/erp/scheduler-simulation/previewRead-only scheduler plan; no DB, queue, payout, receipt, inventory, logistics, or audit mutation./api/trade-core/erp/scheduler-simulation + /runDB-backed execution health/runs on trade_activity_log; not live payout/logistics/gateway execution./api/trade-core/erp/finance-chain-replay-audit + /audit-timeline + /tax-reconciliationExisting DB tables only: invoices, tax, journal, payouts, receipts./api/trade-core/erp/readiness/api/trade-core/erp/readiness/api/trade-core/erp/readiness/api/trade-core/erp/readiness/api/trade-core/erp/readiness/api/trade-core/erp/readiness/api/trade-core/erp/tax-reconciliation/api/trade-core/erp/invoice-tax-breakup/api/trade-core/erp/invoice-tax-breakup/api/trade-core/erp/finance-chain-replay-audit/api/trade-core/erp/finance-chain-replay-audit/api/trade-core/erp/finance-chain-replay-audit/api/trade-core/erp/audit-timeline/api/trade-core/erp/audit-timeline| Table | Exists | Missing columns | Missing indexes | OK |
|---|---|---|---|---|
| No procurement table inspection rows returned by ERP readiness. | ||||
| Type | Message | Timestamp | Context |
|---|---|---|---|
| No procurement alerts returned by ERP readiness. | |||
null
Procurement dashboard
| Vendor | Module | State | Score | RFQs | POs | GRNs | Ordered | Received | Open payable |
|---|---|---|---|---|---|---|---|---|---|
| No vendor performance rows yet, or procurement readbacks are admin-guarded. | |||||||||
Procurement master foundation
codex118-procurement-master-foundation-v1GET /api/trade-core/erp/vendor/listExisting protected backend write is not called from this frontend foundation.Prepared inside /api/trade-core/erp/purchase-order/create payloadFrontend prepares a draft object only; no DB row is created here.Prepared inside /api/trade-core/erp/purchase-order/create payloadRFQ preparation remains procurement metadata, separate from buyer /api/rfq.{
"moduleKey": "yarn",
"vendorName": "",
"vendorCode": "",
"gstin": "",
"contact": {
"name": "",
"phone": ""
},
"paymentTerms": {
"label": "NET_30"
},
"requisition": {
"requisitionId": "PR-DRAFT-YARN-DRAFT-VENDOR",
"department": "Procurement",
"requesterId": "admin-procurement",
"requiredBy": null,
"status": "DRAFT_FRONTEND_ONLY",
"items": [
{
"lineNo": 1,
"itemName": "",
"description": "",
"moduleKey": "yarn",
"moduleName": "Yarn",
"quantity": 1000,
"uom": "kg",
"targetRate": 0,
"estimatedAmount": 0,
"currency": "INR"
}
]
},
"rfq": {
"rfqId": "VRFQ-DRAFT-YARN-DRAFT-VENDOR",
"dueAt": null,
"quotationBasis": "landed_cost_and_compliance",
"deliveryLocation": "Primary warehouse",
"status": "PREPARED_FRONTEND_ONLY"
},
"quotations": [],
"totalAmount": 0,
"currency": "INR",
"approvalStatus": "PENDING_APPROVAL",
"status": "DRAFT",
"frontendOnly": true,
"frontendOnlyReason": "Prepared on /textile/admin/erp-procurement and not posted to backend.",
"version": "codex118-procurement-master-foundation-v1"
}CODEX259 procurement execution
codex259-erp-procurement-execution-v1/api/trade-core/erp/vendor/create/api/trade-core/erp/purchase-order/create/api/trade-core/erp/purchase-order/approve/api/trade-core/erp/purchase-order/status/api/trade-core/erp/purchase-receipt/create/api/trade-core/erp/purchase-invoice/linkReadonly procurement route status
| Group | Method | Route | Backend status | Frontend status | Executable here |
|---|---|---|---|---|---|
| Vendor routes | GET | /api/trade-core/erp/vendor/list | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
| Vendor routes | POST | /api/trade-core/erp/vendor/create | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Create/update vendor |
| Vendor RFQ | GET | /api/trade-core/erp/vendor-rfq/list | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
| Purchase-order routes | GET | /api/trade-core/erp/purchase-order/list | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
| Purchase-order routes | POST | /api/trade-core/erp/purchase-order/create | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Create PO |
| Purchase-order routes | POST | /api/trade-core/erp/purchase-order/approve | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Approve/reject |
| Purchase-order routes | POST | /api/trade-core/erp/purchase-order/status | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Lifecycle update |
| GRN routes | GET | /api/trade-core/erp/purchase-receipt/list | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
| GRN routes | POST | /api/trade-core/erp/purchase-receipt/create | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Accept/reject/partial |
| Purchase invoice | POST | /api/trade-core/erp/purchase-invoice/link | IMPLEMENTED_BACKEND_PROTECTED_WRITE | ADMIN_WORKFLOW_ACTION | Link invoice |
| Vendor ledger | GET | /api/trade-core/erp/vendor-ledger | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
| Procurement audit | GET | /api/trade-core/erp/procurement-audit | IMPLEMENTED_BACKEND_READ | READONLY_FETCHED | No mutation |
GET /api/trade-core/erp/vendor/list?limit=50DB-backed vendor master readback. No vendor create/update action is exposed here.GET /api/trade-core/erp/vendor-rfq/list?limit=50DB-backed vendor RFQ readback from procurement tables, separate from buyer RFQ routes.GET /api/trade-core/erp/purchase-order/list?limit=50DB-backed purchase order readback. No create, approve, or receipt action is exposed here.GET /api/trade-core/erp/purchase-receipt/list?limit=50Goods receipt readback for accepted, rejected, and partial GRNs.GET /api/trade-core/erp/vendor-ledger?limit=50Procurement/AP due tracking only. It is not wallet, payout, or payment execution.GET /api/trade-core/erp/procurement-audit?limit=50Immutable procurement audit readback for vendor, PO, receipt, and approval events.| Vendor | Code | Module | Status | GSTIN | Updated |
|---|---|---|---|---|---|
| No vendor rows returned, or the route is admin-guarded in this session. | |||||
| RFQ | Vendor | Module | Status | Quotes | Due |
|---|---|---|---|---|---|
| No vendor RFQ rows returned, or the route is admin-guarded in this session. | |||||
| PO | Vendor | Module | Status | Approval | Due |
|---|---|---|---|---|---|
| No purchase order rows returned, or the route is admin-guarded in this session. | |||||
| GRN | PO | Vendor | Status | Received | Invoice |
|---|---|---|---|---|---|
| No GRN rows returned, or the route is admin-guarded in this session. | |||||
| Vendor | PO | Type | Amount | Status | Due |
|---|---|---|---|---|---|
| No vendor ledger rows returned, or the route is admin-guarded in this session. | |||||
| Action | Object | Vendor | PO | Approval | Created |
|---|---|---|---|---|---|
| No procurement audit rows returned, or the route is admin-guarded in this session. | |||||