Песочница: BELLAROSA

Intent ID: 15

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (5177894.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817701",
  "items": [
    {
      "boxes": 2,
      "length": "40",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 800,
      "box_number": "BEL001",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB2(120*35*35)",
      "total_price": 176.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "BEL002",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB2(120*35*35)",
      "total_price": 11.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "BEL003",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB2(120*35*35)",
      "total_price": 30.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "LOLA",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "BEL004",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.35,
      "box_marking": "HB2(120*35*35)",
      "total_price": 52.5
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "NINA",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "BEL005",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB2(120*35*35)",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "ROSES",
      "quantity": 250,
      "box_number": "BEL006",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.45,
      "box_marking": "HB2(120*35*35)",
      "total_price": 112.5
    },
    {
      "boxes": 2,
      "length": "50",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 800,
      "box_number": "BEL007",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB2(120*35*35)",
      "total_price": 240.0
    },
    {
      "boxes": 2,
      "length": "40",
      "variety": "FULL",
      "category": "ROSES",
      "quantity": 800,
      "box_number": "BEL008",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.25,
      "box_marking": "HB2(120*35*35)",
      "total_price": 200.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MAGNOLIA",
      "category": "ROSES",
      "quantity": 250,
      "box_number": "BEL009",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.6,
      "box_marking": "HB2(120*35*35)",
      "total_price": 150.0
    }
  ],
  "country": "Kyrgyz Republic",
  "summary": {
    "total_boxes": 9,
    "total_stems": 3250,
    "total_amount": 987.0
  },
  "supplier": "BELLARO S.A.S.",
  "invoice_date": "2026-04-01",
  "invoice_number": "5177894",
  "processing_report": {
    "notes": "Invoice type: Hybrid (mixed + individual). Found 12 physical boxes. No issues extracting core data. Mixed box details were expanded without multiplying quantities as they were already aggregated.",
    "status": "ok",
    "sum_boxes": 12,
    "sum_stems": 3250,
    "sum_amount": 987.0,
    "items_count": 9,
    "discrepancies": [
      "sum_boxes (12) does not match expected_boxes (9)."
    ],
    "expected_boxes": 9,
    "expected_stems": 3250,
    "expected_amount": 987.0
  }
}
Результат (Pass 2)
Report: ok
items=8, boxes=3/3.0, stems=1350.0/1350.0, amount=328.5/328.5
notes: Invoice type: Hybrid (grouped + individual). Detected 3 physical boxes. No issues detected. Multiboxes successfully expanded.
{
  "awb": "145-9981 7605 PC603000453",
  "items": [
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 100.0,
      "box_number": "2925349",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 22.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 400.0,
      "box_number": "2925349",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 88.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 125.0,
      "box_number": "2925351",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 27.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 375.0,
      "box_number": "2925351",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 82.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 50.0,
      "box_number": "2923500",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 11.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 100.0,
      "box_number": "2923500",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 30.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "LOLA",
      "category": "ROSES",
      "quantity": 150.0,
      "box_number": "2923500",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.35,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 52.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "NINA",
      "category": "ROSES",
      "quantity": 50.0,
      "box_number": "2923500",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 15.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 3.0,
    "total_stems": 1350.0,
    "total_amount": 328.5
  },
  "supplier": "BELLARO S.A.S.",
  "invoice_date": "2026-02-27",
  "invoice_number": "5174921",
  "processing_report": {
    "notes": "Invoice type: Hybrid (grouped + individual). Detected 3 physical boxes. No issues detected. Multiboxes successfully expanded.",
    "status": "ok",
    "sum_boxes": 3,
    "sum_stems": 1350.0,
    "sum_amount": 328.5,
    "items_count": 8,
    "discrepancies": [],
    "expected_boxes": 3.0,
    "expected_stems": 1350.0,
    "expected_amount": 328.5
  }
}
История (последние 20)
ID Файл Дата
70 5174921.pdf 2026-03-02 09:24:44.222614+00:00 Excel
68 5174921.pdf 2026-03-02 07:59:32.827994+00:00 Excel
67 5174921.pdf 2026-03-02 07:56:32.692509+00:00 Excel
38 5173995.pdf 2026-02-24 05:36:26.755550+00:00 Excel
17 5173995.pdf 2026-02-23 16:45:59.742777+00:00 Excel