Песочница: BELLAROSA

Intent ID: 15

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (5176587.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7664 PC603013727",
  "items": [
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "BRIGHTON",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "2899232",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.22,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 88.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CANDLELIGHT",
      "category": "ROSES",
      "quantity": 250,
      "box_number": "2899237",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.45,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 112.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "2899229",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "2899233",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.25,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 100.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "2899231",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.25,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 100.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "MAGNOLIA ROSE",
      "category": "ROSES",
      "quantity": 250,
      "box_number": "2899234",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.6,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 150.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "MIXED BOX",
      "category": "MIXED BOX",
      "quantity": 400,
      "box_number": "2945805",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.36,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 144.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "NINA",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "2945805",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.32,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 64.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "NINA",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "2945805",
      "plantation": "BELLARO S.A.S.",
      "unit_price": 0.4,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 80.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 7,
    "total_stems": 2500,
    "total_amount": 814.5
  },
  "supplier": "BELLARO S.A.S.",
  "invoice_date": "2026-03-18",
  "invoice_number": "5176587",
  "processing_report": {
    "notes": "Тип инвойса: Гибридный (составные + individual). Обнаружено 7 физических коробок. Есть расхождения в суммах стеблей и итоговой стоимости. При обработке MIXED BOX его заголовок и детали были включены как отдельные позиции, что привело к увеличению итоговых сумм стеблей и стоимости.",
    "status": "warning",
    "sum_boxes": 7,
    "sum_stems": 2900,
    "sum_amount": 958.5,
    "items_count": 9,
    "discrepancies": [
      "sum_stems (2900) does not match expected_stems (2500)",
      "sum_amount (958.5) does not match expected_amount (814.5)"
    ],
    "expected_boxes": 7,
    "expected_stems": 2500,
    "expected_amount": 814.5
  }
}
Результат (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