34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
<?php
|
|
// V68 auto-enriched stub for: PO Auto Agent
|
|
// Source: /api/wevia-v64-departments-kpi.php (ZERO fake, ZERO hardcode)
|
|
header('Content-Type: application/json');
|
|
echo json_encode([
|
|
'agent' => 'PO Auto Agent',
|
|
'id' => 'agent_po_auto_agent',
|
|
'status' => 'enriched_v68',
|
|
'version' => 'V68',
|
|
'department' => [
|
|
'id' => 'supply_procurement',
|
|
'label' => 'Supply & Procurement',
|
|
'sap_module' => 'SAP MM'
|
|
],
|
|
'kpi' => [
|
|
'label' => 'PO created',
|
|
'target' => 20,
|
|
'unit' => '#/mo',
|
|
'current_status' => 'critical',
|
|
'current_value' => 0,
|
|
'gap_ratio_pct' => 100,
|
|
'action_required' => 'Wire integration with SAP MM data source'
|
|
],
|
|
'next_steps' => [
|
|
'1. Connect to SAP MM via BAPI/API',
|
|
'2. Implement PO created calculation',
|
|
'3. Add monitoring (alert if value < target 20#/mo)',
|
|
'4. Register in registry resolver',
|
|
'5. Update status -> active'
|
|
],
|
|
'wired_from_source' => '/api/wevia-v64-departments-kpi.php',
|
|
'enriched_at' => date('c')
|
|
], JSON_PRETTY_PRINT);
|