Песочница: BELLAROSA

Intent ID: 15

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (5174991.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": null,
  "items": [
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.5,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 12.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "COUNTRY BLUES",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.5,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 12.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 150.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.3,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 45.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.38,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 9.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "KAHALA",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.4,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 10.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "LOLA",
      "category": "ROSES",
      "quantity": 75.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.32,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 24.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "PINK FLOYD",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "2923491",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.35,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 8.75
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.5,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 12.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "COUNTRY BLUES",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.5,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 12.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 100.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.35,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 35.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 50.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.32,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 16.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "HIGH & YELLOW MAGIC",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.32,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 8.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "MONDIAL",
      "category": "ROSES",
      "quantity": 50.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.35,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 17.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "POMAROSA",
      "category": "ROSES",
      "quantity": 50.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.35,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 17.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "RED PANTHER",
      "category": "ROSES",
      "quantity": 25.0,
      "box_number": "TDA-SABINA 2923492",
      "plantation": "OOO TRADE HOUSE AZALIA",
      "unit_price": 0.4,
      "box_marking": "HB 2 (120*35*35)",
      "total_price": 10.0
    }
  ],
  "country": "KAZAKHASTAN",
  "summary": {
    "total_boxes": 2.0,
    "total_stems": 700.0,
    "total_amount": 251.25
  },
  "supplier": "OOO TRADE HOUSE AZALIA",
  "invoice_date": "02/27/2026",
  "invoice_number": "5174991",
  "processing_report": {
    "notes": "Гибридный инвойс (составные + индивидуальные коробки). Обнаружено 2 физических коробки. Обнаружены группы составных коробок. Раскрытие мультибокса не применялось.",
    "status": "ok",
    "sum_boxes": 15.0,
    "sum_stems": 700.0,
    "sum_amount": 251.25,
    "items_count": 15,
    "discrepancies": [
      "Total boxes mismatch: calculated 15.00, expected 2.00."
    ],
    "expected_boxes": 2.0,
    "expected_stems": 700.0,
    "expected_amount": 251.25
  }
}
Результат (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