// View By Bom Details
const dayPeriod = [
  "2025-05-11",
  "2025-05-12",
  "2025-05-13",
  "2025-05-14",
  "2025-05-15",
  "2025-05-16",
  "2025-05-17",
];

// const fakeRecordLine = useMemo<FGRecord[][]>(
const fakeRecordLine = [
  [
    { id: 1, code: "mt1", name: "material 1", inStockQty: 10, purchaseQty: 1 },
    {
      id: 2,
      code: "mt2",
      name: "material 2",
      inStockQty: 20,
      purchaseQty: 199,
    },
  ],
  [
    { id: 3, code: "mt3", name: "material 3", inStockQty: 30, purchaseQty: 3 },
    {
      id: 4,
      code: "mt4",
      name: "material 4",
      inStockQty: 40,
      purchaseQty: 499,
    },
  ],
  [
    { id: 5, code: "mt5", name: "material 5", inStockQty: 50, purchaseQty: 5 },
    {
      id: 6,
      code: "mt6",
      name: "material 6",
      inStockQty: 60,
      purchaseQty: 699,
    },
  ],
  [
    { id: 7, code: "mt7", name: "material 7", inStockQty: 70, purchaseQty: 7 },
    {
      id: 8,
      code: "mt8",
      name: "material 8",
      inStockQty: 80,
      purchaseQty: 899,
    },
  ],
  [
    { id: 9, code: "mt9", name: "material 9", inStockQty: 90, purchaseQty: 9 },
    {
      id: 10,
      code: "mt10",
      name: "material 10",
      inStockQty: 100,
      purchaseQty: 999,
    },
  ],
  [
    {
      id: 11,
      code: "mt11",
      name: "material 11",
      inStockQty: 110,
      purchaseQty: 11,
    },
    {
      id: 12,
      code: "mt12",
      name: "material 12",
      inStockQty: 120,
      purchaseQty: 1299,
    },
  ],
  [
    {
      id: 13,
      code: "mt13",
      name: "material 13",
      inStockQty: 130,
      purchaseQty: 13,
    },
    {
      id: 14,
      code: "mt14",
      name: "material 14",
      inStockQty: 140,
      purchaseQty: 1499,
    },
  ],
];

// const fakeRecords = useMemo<FGRecord[][]>(
const fakeRecords = [
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
  [
    {
      id: 1,
      code: "PP1080",
      type: "FG",
      name: "咖哩汁",
      inStockQty: 2400,
      productionQty: 1200.0,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 108.88,
        },
        {
          id: 2,
          code: "GI3236",
          type: "Material",
          name: "清水(煮過牛腩)",
          inStockQty: 317.52,
          purchaseQty: 635.04,
        },
        {
          id: 3,
          code: "MG1700",
          type: "Material",
          name: "STERILTOM 意大利茄粒",
          inStockQty: 9.0,
          purchaseQty: 18.0,
        },
        {
          id: 4,
          code: "FA0533",
          type: "Material",
          name: "乾蔥茸",
          inStockQty: 6.04,
          purchaseQty: 12.08,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 6,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 12.08,
        },
        {
          id: 7,
          code: "FA0056",
          type: "Material",
          name: "洋蔥肉",
          inStockQty: 241.98,
          purchaseQty: 483.96,
        },
        {
          id: 8,
          code: "PP1188",
          type: "Material",
          name: "咖喱膽",
          inStockQty: 36.0,
          purchaseQty: 72.0,
        },
        {
          id: 9,
          code: "PP8001",
          type: "Material",
          name: "咖哩汁箱料粉",
          inStockQty: 77.42,
          purchaseQty: 154.84,
        },
        {
          id: 10,
          code: "PP1096",
          type: "Material",
          name: "白麵撈",
          inStockQty: 60.0,
          purchaseQty: 120.0,
        },
        {
          id: 10,
          code: "NA0476",
          type: "Material",
          name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
          inStockQty: 600.0,
          purchaseQty: 200.0,
        },
      ],
    },
    {
      id: 2,
      code: "PP1193",
      type: "FG",
      name: "蔥油(1磅) ",
      inStockQty: 1322,
      productionQty: 661,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 20,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 10,
        },
      ],
    },
    {
      id: 3,
      code: " PP1188",
      type: "FG",
      name: "咖喱膽",
      inStockQty: 1016.2,
      productionQty: 508.1,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 217.72,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "洋蔥粒",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 3,
          code: "FA0608",
          type: "Material",
          name: "粗蒜茸",
          inStockQty: 0,
          purchaseQty: 18.15,
        },
        {
          id: 4,
          code: "MG1288",
          type: "Material",
          name: "炸紅蔥頭",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 5,
          code: "FA0210",
          type: "Material",
          name: "薑茸",
          inStockQty: 0,
          purchaseQty: 6.05,
        },
        {
          id: 6,
          code: "MG0066",
          type: "Material",
          name: "咖哩料(5斤x16包+2斤/包)",
          inStockQty: 0,
          purchaseQty: 241.98,
        },
      ],
    },
    {
      id: 4,
      code: " PP1096",
      type: "FG",
      name: "白麵撈",
      inStockQty: 1040,
      productionQty: 520,
      lines: [
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "大豆油(1噸/桶)",
          inStockQty: 0,
          purchaseQty: 190.0,
        },
        {
          id: 1,
          code: "MH0040",
          type: "Material",
          name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
          inStockQty: 0,
          purchaseQty: 250.0,
        },
        {
          id: 2,
          code: "FA0161",
          type: "Material",
          name: "蔥油",
          inStockQty: 1322,
          purchaseQty: 0,
        },
      ],
    },
  ],
];

// const fakeOverallRecords = useMemo<FGRecord[]>(
const fakeOverallRecords = [
  {
    id: 1,
    code: "PP1080",
    type: "FG",
    name: "咖哩汁",
    lastMonthAvgStock: 2400,
    safetyStock: 2400,
    inStockQty: 2400,
    productionQty: 8400.0 * 7,
    lines: [
      {
        id: 1,
        code: "MH0040",
        type: "Material",
        name: "大豆油(1噸/桶)",
        inStockQty: 54.44,
        purchaseQty: 544.4 * 7,
      },
      {
        id: 2,
        code: "GI3236",
        type: "Material",
        name: "清水(煮過牛腩)",
        inStockQty: 317.52,
        purchaseQty: 3175.2 * 7,
      },
      {
        id: 3,
        code: "MG1700",
        type: "Material",
        name: "STERILTOM 意大利茄粒",
        inStockQty: 9.0,
        purchaseQty: 90 * 7,
      },
      {
        id: 4,
        code: "FA0533",
        type: "Material",
        name: "乾蔥茸",
        inStockQty: 6.04,
        purchaseQty: 60.4 * 7,
      },
      {
        id: 5,
        code: "FA0210",
        type: "Material",
        name: "薑茸",
        inStockQty: 6.04,
        purchaseQty: 60.4 * 7,
      },
      {
        id: 6,
        code: "FA0608",
        type: "Material",
        name: "粗蒜茸",
        inStockQty: 6.04,
        purchaseQty: 60.4 * 7,
      },
      {
        id: 7,
        code: "FA0056",
        type: "Material",
        name: "洋蔥肉",
        inStockQty: 241.98,
        purchaseQty: 2419.8 * 7,
      },
      {
        id: 8,
        code: "PP1188",
        type: "Material",
        name: "咖喱膽",
        inStockQty: 36.0,
        purchaseQty: 360 * 7,
      },
      {
        id: 9,
        code: "PP8001",
        type: "Material",
        name: "咖哩汁箱料粉",
        inStockQty: 77.42,
        purchaseQty: 774.2 * 7,
      },
      {
        id: 10,
        code: "PP1096",
        type: "Material",
        name: "白麵撈",
        inStockQty: 60.0,
        purchaseQty: 600 * 7,
      },
      {
        id: 10,
        code: "NA0476",
        type: "Material",
        name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
        inStockQty: 600.0,
        purchaseQty: 6000 * 7,
      },
    ],
  },
  {
    id: 2,
    code: "PP1193",
    type: "FG",
    name: "蔥油(1磅) ",
    lastMonthAvgStock: 1320,
    safetyStock: 1322,
    inStockQty: 1322,
    productionQty: 4627,
    lines: [
      {
        id: 2,
        code: "MH0040",
        type: "Material",
        name: "大豆油(1噸/桶)",
        inStockQty: 0,
        purchaseQty: 20 * 7,
      },
      {
        id: 3,
        code: "FA0161",
        type: "Material",
        name: "洋蔥粒",
        inStockQty: 0,
        purchaseQty: 10 * 7,
      },
    ],
  },
  {
    id: 3,
    code: " PP1188",
    type: "FG",
    name: "咖喱膽",
    lastMonthAvgStock: 1017,
    safetyStock: 1017,
    inStockQty: 1016.2,
    productionQty: 3556.7,
    lines: [
      {
        id: 1,
        code: "MH0040",
        type: "Material",
        name: "大豆油(1噸/桶)",
        inStockQty: 0,
        purchaseQty: 217.72 * 7,
      },
      {
        id: 2,
        code: "FA0161",
        type: "Material",
        name: "洋蔥粒",
        inStockQty: 0,
        purchaseQty: 18.15 * 7,
      },
      {
        id: 3,
        code: "FA0608",
        type: "Material",
        name: "粗蒜茸",
        inStockQty: 0,
        purchaseQty: 18.15 * 7,
      },
      {
        id: 4,
        code: "MG1288",
        type: "Material",
        name: "炸紅蔥頭",
        inStockQty: 0,
        purchaseQty: 6.05 * 7,
      },
      {
        id: 5,
        code: "FA0210",
        type: "Material",
        name: "薑茸",
        inStockQty: 0,
        purchaseQty: 6.05 * 7,
      },
      {
        id: 6,
        code: "MG0066",
        type: "Material",
        name: "咖哩料(5斤x16包+2斤/包)",
        inStockQty: 0,
        purchaseQty: 241.98 * 7,
      },
    ],
  },
  {
    id: 4,
    code: " PP1096",
    type: "FG",
    name: "白麵撈",
    lastMonthAvgStock: 1040,
    safetyStock: 1040,
    inStockQty: 1040,
    productionQty: 3640,
    lines: [
      {
        id: 1,
        code: "MH0040",
        type: "Material",
        name: "大豆油(1噸/桶)",
        inStockQty: 0,
        purchaseQty: 190.0 * 7,
      },
      {
        id: 1,
        code: "MH0040",
        type: "Material",
        name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
        inStockQty: 0,
        purchaseQty: 250.0 * 7,
      },
      {
        id: 2,
        code: "FA0161",
        type: "Material",
        name: "蔥油",
        inStockQty: 1322,
        purchaseQty: 0,
      },
    ],
  },
];

// View By Bom Details
const dayPeriod1 = [
  "2025-05-11",
  "2025-05-12",
  "2025-05-13",
  "2025-05-14",
  "2025-05-15",
  "2025-05-16",
  "2025-05-17",
];

// const fakeOverallRecords = useMemo<FGOverallRecord[]>(
const fakeOverallRecords1 = [
  {
    id: 1,
    code: "MH0040",
    type: "Material",
    name: "大豆油(1噸/桶)",
    inStockQty: 54.44,
    purchaseQty1: 972.12,
    purchaseQty2: 972.12,
    purchaseQty3: 972.12,
    purchaseQty4: 972.12,
    purchaseQty5: 972.12,
    purchaseQty6: 972.12,
    purchaseQty7: 972.12,
    overallPurchaseQty: 6804.84,
  },
  {
    id: 2,
    code: "GI3236",
    type: "Material",
    name: "清水(煮過牛腩)",
    inStockQty: 317.52,
    purchaseQty1: 3175.2,
    purchaseQty2: 3175.2,
    purchaseQty3: 3175.2,
    purchaseQty4: 3175.2,
    purchaseQty5: 3175.2,
    purchaseQty6: 3175.2,
    purchaseQty7: 3175.2,
    overallPurchaseQty: 22226.4,
  },
  {
    id: 3,
    code: "MG1700",
    type: "Material",
    name: "STERILTOM 意大利茄粒",
    inStockQty: 9.0,
    purchaseQty1: 90,
    purchaseQty2: 90,
    purchaseQty3: 90,
    purchaseQty4: 90,
    purchaseQty5: 90,
    purchaseQty6: 90,
    purchaseQty7: 90,
    overallPurchaseQty: 630,
  },
  {
    id: 4,
    code: "FA0533",
    type: "Material",
    name: "乾蔥茸",
    inStockQty: 6.04,
    purchaseQty1: 60.4,
    purchaseQty2: 60.4,
    purchaseQty3: 60.4,
    purchaseQty4: 60.4,
    purchaseQty5: 60.4,
    purchaseQty6: 60.4,
    purchaseQty7: 60.4,
    overallPurchaseQty: 422.8,
  },
  {
    id: 5,
    code: "FA0210",
    type: "Material",
    name: "薑茸",
    inStockQty: 6.04,
    purchaseQty1: 66.45,
    purchaseQty2: 66.45,
    purchaseQty3: 66.45,
    purchaseQty4: 66.45,
    purchaseQty5: 66.45,
    purchaseQty6: 66.45,
    purchaseQty7: 66.45,
    overallPurchaseQty: 465.15,
  },
  {
    id: 6,
    code: "FA0608",
    type: "Material",
    name: "粗蒜茸",
    inStockQty: 6.04,
    purchaseQty1: 78.55,
    purchaseQty2: 78.55,
    purchaseQty3: 78.55,
    purchaseQty4: 78.55,
    purchaseQty5: 78.55,
    purchaseQty6: 78.55,
    purchaseQty7: 78.55,
    overallPurchaseQty: 549.85,
  },
  {
    id: 7,
    code: "FA0056",
    type: "Material",
    name: "洋蔥肉",
    inStockQty: 241.98,
    purchaseQty: 2419.8,
  },
  {
    id: 8,
    code: "PP1188",
    type: "Material",
    name: "咖喱膽",
    inStockQty: 36.0,
    purchaseQty: 0,
  },
  {
    id: 9,
    code: "PP8001",
    type: "Material",
    name: "咖哩汁箱料粉",
    inStockQty: 77.42,
    purchaseQty: 774.2,
  },
  {
    id: 10,
    code: "PP1096",
    type: "Material",
    name: "白麵撈",
    inStockQty: 60.0,
    purchaseQty: 0,
  },
  {
    id: 11,
    code: "NA0476",
    type: "Material",
    name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
    inStockQty: 600.0,
    purchaseQty: 6000,
  },
  {
    id: 12,
    code: "MH0040",
    type: "Material",
    name: "大豆油(1噸/桶)",
    inStockQty: 0,
    purchaseQty: 972.12,
  },
  {
    id: 13,
    code: "FA0161",
    type: "Material",
    name: "洋蔥粒",
    inStockQty: 0,
    purchaseQty: 28.15,
  },
  {
    id: 14,
    code: "MG1288",
    type: "Material",
    name: "炸紅蔥頭",
    inStockQty: 0,
    purchaseQty: 6.05,
  },
  {
    id: 15,
    code: "MG0066",
    type: "Material",
    name: "咖哩料(5斤x16包+2斤/包)",
    inStockQty: 0,
    purchaseQty: 241.98,
  },
  {
    id: 16,
    code: "MH0040",
    type: "Material",
    name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
    inStockQty: 0,
    purchaseQty: 250.0,
  },
];

// const fakeRecords = useMemo<FGRecord[][]>(
const fakeRecords1 = [
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
  [
    {
      id: 1,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 54.44,
      purchaseQty: 972.12,
    },
    {
      id: 2,
      code: "GI3236",
      type: "Material",
      name: "清水(煮過牛腩)",
      inStockQty: 317.52,
      purchaseQty: 3175.2,
    },
    {
      id: 3,
      code: "MG1700",
      type: "Material",
      name: "STERILTOM 意大利茄粒",
      inStockQty: 9.0,
      purchaseQty: 90,
    },
    {
      id: 4,
      code: "FA0533",
      type: "Material",
      name: "乾蔥茸",
      inStockQty: 6.04,
      purchaseQty: 60.4,
    },
    {
      id: 5,
      code: "FA0210",
      type: "Material",
      name: "薑茸",
      inStockQty: 6.04,
      purchaseQty: 66.45,
    },
    {
      id: 6,
      code: "FA0608",
      type: "Material",
      name: "粗蒜茸",
      inStockQty: 6.04,
      purchaseQty: 78.55,
    },
    {
      id: 7,
      code: "FA0056",
      type: "Material",
      name: "洋蔥肉",
      inStockQty: 241.98,
      purchaseQty: 2419.8,
    },
    {
      id: 8,
      code: "PP1188",
      type: "Material",
      name: "咖喱膽",
      inStockQty: 36.0,
      purchaseQty: 0,
    },
    {
      id: 9,
      code: "PP8001",
      type: "Material",
      name: "咖哩汁箱料粉",
      inStockQty: 77.42,
      purchaseQty: 774.2,
    },
    {
      id: 10,
      code: "PP1096",
      type: "Material",
      name: "白麵撈",
      inStockQty: 60.0,
      purchaseQty: 0,
    },
    {
      id: 11,
      code: "NA0476",
      type: "Material",
      name: "2磅份量三邊覆合袋 (0.1x225x260mm)個計",
      inStockQty: 600.0,
      purchaseQty: 6000,
    },
    {
      id: 12,
      code: "MH0040",
      type: "Material",
      name: "大豆油(1噸/桶)",
      inStockQty: 0,
      purchaseQty: 972.12,
    },
    {
      id: 13,
      code: "FA0161",
      type: "Material",
      name: "洋蔥粒",
      inStockQty: 0,
      purchaseQty: 28.15,
    },
    {
      id: 14,
      code: "MG1288",
      type: "Material",
      name: "炸紅蔥頭",
      inStockQty: 0,
      purchaseQty: 6.05,
    },
    {
      id: 15,
      code: "MG0066",
      type: "Material",
      name: "咖哩料(5斤x16包+2斤/包)",
      inStockQty: 0,
      purchaseQty: 241.98,
    },
    {
      id: 16,
      code: "MH0040",
      type: "Material",
      name: "星加坡綠富貴花牌幼白麵粉 (50磅/包)",
      inStockQty: 0,
      purchaseQty: 250.0,
    },
  ],
];
