{
  "status": "passed",
  "sqlite_version": "3.42.0",
  "wrong_join_rows": [
    {
      "customer_id": 1,
      "customer_name": "华东食品",
      "sales_amount": 11000.0,
      "detail_line_count": 4
    },
    {
      "customer_id": 3,
      "customer_name": "青禾便利",
      "sales_amount": 6600.0,
      "detail_line_count": 4
    },
    {
      "customer_id": 2,
      "customer_name": "远山商贸",
      "sales_amount": 4200.0,
      "detail_line_count": 1
    },
    {
      "customer_id": 4,
      "customer_name": "南桥百货",
      "sales_amount": 1800.0,
      "detail_line_count": 2
    }
  ],
  "correct_join_rows": [
    {
      "customer_id": 1,
      "customer_name": "华东食品",
      "sales_amount": 5500.0,
      "detail_line_count": 4
    },
    {
      "customer_id": 2,
      "customer_name": "远山商贸",
      "sales_amount": 4200.0,
      "detail_line_count": 1
    },
    {
      "customer_id": 3,
      "customer_name": "青禾便利",
      "sales_amount": 3000.0,
      "detail_line_count": 4
    },
    {
      "customer_id": 4,
      "customer_name": "南桥百货",
      "sales_amount": 900.0,
      "detail_line_count": 2
    }
  ],
  "expanded_invoice_1002": [
    {
      "invoice_id": 1002,
      "line_id": 21,
      "total_amount_cents": 300000,
      "line_amount_cents": 120000
    },
    {
      "invoice_id": 1002,
      "line_id": 22,
      "total_amount_cents": 300000,
      "line_amount_cents": 180000
    }
  ],
  "wrong_date_customer_3_amount_yuan": "1800.00",
  "equal_amount_exercise": {
    "customer_id": 1,
    "correct_amount_yuan": "8500.00",
    "sum_distinct_amount_yuan": "5500.00"
  },
  "invoice_without_details": {
    "customer_id": 5,
    "customer_name": "北辰超市",
    "sales_amount": 1000.0,
    "detail_line_count": 0
  },
  "checks": [
    "基础样例的每张发票明细金额与头金额一致",
    "错误 JOIN 复现重复累计与排名变化",
    "修正查询的金额与逐笔基线一致",
    "修正查询的明细条数与原始明细一致",
    "月末日期条件漏掉 1200 元的记录",
    "同额发票复现 SUM DISTINCT 漏算",
    "无明细发票保留金额且明细条数为零"
  ]
}
