export const PROCESS_DATA = [
  {
    id: "O2C",
    name: "Order to Cash",
    owner: "VP Sales",
    tcodes: ["VA01", "VA02", "VL01N", "VL02N", "VF01", "VF02"],
    totalScenarios: 48,
    passed: 42,
    failed: 3,
    blocked: 3,
    businessImpact: "critical",
    revenueAtRisk: 12500000,
    usersAffected: 340,
    failureDetails: [
      { scenario: "Credit block release with modified payment terms", tcode: "VKM1", severity: "high", impact: "Orders above €50K stuck in credit queue" },
      { scenario: "Intercompany billing with new entity structure", tcode: "VF01", severity: "high", impact: "Cross-entity invoicing delayed" },
      { scenario: "Returns with batch-managed materials", tcode: "VL01N", severity: "medium", impact: "Warehouse returns processing workaround needed" },
    ],
  },
  {
    id: "P2P",
    name: "Procure to Pay",
    owner: "CPO / Procurement Head",
    tcodes: ["ME21N", "ME22N", "MIGO", "MIRO", "ME51N"],
    totalScenarios: 52,
    passed: 50,
    failed: 1,
    blocked: 1,
    businessImpact: "critical",
    revenueAtRisk: 8200000,
    usersAffected: 210,
    failureDetails: [
      { scenario: "Service PO with limit items and SES", tcode: "ME21N", severity: "medium", impact: "Service procurement requires manual workaround" },
    ],
  },
  {
    id: "R2R",
    name: "Record to Report",
    owner: "CFO / Controller",
    tcodes: ["FB01", "FB50", "F-02", "FAGL_FC_VAL", "F101"],
    totalScenarios: 38,
    passed: 35,
    failed: 2,
    blocked: 1,
    businessImpact: "critical",
    revenueAtRisk: 0,
    usersAffected: 85,
    failureDetails: [
      { scenario: "Parallel valuation posting with new ledger structure", tcode: "FB01", severity: "high", impact: "Month-end close may be delayed by 2 days" },
      { scenario: "Asset depreciation run with new chart of depreciation", tcode: "AFAB", severity: "medium", impact: "Asset reports show incorrect values until corrected" },
    ],
  },
  {
    id: "H2R",
    name: "Hire to Retire",
    owner: "CHRO",
    tcodes: ["PA20", "PA30", "PA40", "PT01", "PC00"],
    totalScenarios: 35,
    passed: 34,
    failed: 1,
    blocked: 0,
    businessImpact: "high",
    revenueAtRisk: 0,
    usersAffected: 4200,
    failureDetails: [
      { scenario: "Payroll run with new wage types", tcode: "PC00", severity: "high", impact: "Risk of incorrect payroll for 200 employees in new cost center" },
    ],
  },
  {
    id: "P2D",
    name: "Plan to Deliver",
    owner: "VP Supply Chain",
    tcodes: ["MD01", "CO01", "CO11N", "MFBF", "CO02"],
    totalScenarios: 42,
    passed: 39,
    failed: 2,
    blocked: 1,
    businessImpact: "critical",
    revenueAtRisk: 5800000,
    usersAffected: 180,
    failureDetails: [
      { scenario: "MRP run with new BOM structure", tcode: "MD01", severity: "high", impact: "Production planning gaps for 12 materials" },
      { scenario: "Process order confirmation with batch split", tcode: "CO11N", severity: "medium", impact: "Manual batch assignment needed" },
    ],
  },
  {
    id: "WM",
    name: "Warehouse Management",
    owner: "Warehouse Director",
    tcodes: ["/SCWM/PRDO", "/SCWM/MON", "/SCWM/PACK"],
    totalScenarios: 28,
    passed: 27,
    failed: 0,
    blocked: 1,
    businessImpact: "high",
    revenueAtRisk: 3200000,
    usersAffected: 150,
    failureDetails: [],
  },
];

export const ROLE_READINESS = [
  { role: "AP Clerk", process: "P2P", readiness: 98, users: 45, criticalPaths: 8, blocked: 0 },
  { role: "AR Clerk", process: "O2C", readiness: 91, users: 38, criticalPaths: 6, blocked: 1 },
  { role: "Sales Order Processor", process: "O2C", readiness: 88, users: 120, criticalPaths: 12, blocked: 2 },
  { role: "Financial Accountant", process: "R2R", readiness: 92, users: 30, criticalPaths: 10, blocked: 1 },
  { role: "Procurement Specialist", process: "P2P", readiness: 96, users: 55, criticalPaths: 9, blocked: 0 },
  { role: "Production Planner", process: "P2D", readiness: 85, users: 40, criticalPaths: 8, blocked: 1 },
  { role: "Warehouse Operator", process: "WM", readiness: 96, users: 150, criticalPaths: 6, blocked: 1 },
  { role: "Controller", process: "R2R", readiness: 89, users: 15, criticalPaths: 14, blocked: 1 },
  { role: "HR Administrator", process: "H2R", readiness: 97, users: 25, criticalPaths: 7, blocked: 0 },
  { role: "Billing Specialist", process: "O2C", readiness: 83, users: 30, criticalPaths: 5, blocked: 1 },
  { role: "Shipping Clerk", process: "O2C", readiness: 95, users: 60, criticalPaths: 4, blocked: 0 },
  { role: "Cost Accountant", process: "R2R", readiness: 90, users: 20, criticalPaths: 8, blocked: 0 },
];

export const MIGRATION_DATA = [
  { entity: "Customer Master", records: 45200, validated: 44800, errors: 320, critical: 45, status: "warning" },
  { entity: "Vendor Master", records: 12800, validated: 12750, errors: 40, critical: 5, status: "good" },
  { entity: "Material Master", records: 68500, validated: 67200, errors: 980, critical: 210, status: "warning" },
  { entity: "GL Accounts", records: 2400, validated: 2400, errors: 0, critical: 0, status: "good" },
  { entity: "Open Sales Orders", records: 3200, validated: 3180, errors: 15, critical: 5, status: "good" },
  { entity: "Open Purchase Orders", records: 1800, validated: 1790, errors: 8, critical: 2, status: "good" },
  { entity: "BOM / Routing", records: 15600, validated: 14900, errors: 520, critical: 180, status: "critical" },
  { entity: "Asset Master", records: 22000, validated: 21850, errors: 120, critical: 30, status: "warning" },
];

export const WEEKLY_TREND = [
  { week: "W-8", readiness: 52, defectsOpen: 89, critical: 18 },
  { week: "W-7", readiness: 58, defectsOpen: 95, critical: 22 },
  { week: "W-6", readiness: 65, defectsOpen: 82, critical: 19 },
  { week: "W-5", readiness: 72, defectsOpen: 68, critical: 14 },
  { week: "W-4", readiness: 78, defectsOpen: 52, critical: 11 },
  { week: "W-3", readiness: 83, defectsOpen: 38, critical: 8 },
  { week: "W-2", readiness: 88, defectsOpen: 25, critical: 5 },
  { week: "W-1", readiness: 91, defectsOpen: 18, critical: 4 },
  { week: "Now", readiness: 93, defectsOpen: 12, critical: 3 },
];
