Песочница: SALES5ROSADEX@GMAIL.COM

Intent ID: 4

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (OOO TRADE HOUSE AZALIA,TDA,2026-03-13 #399534.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817631",
  "items": [
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 225,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.4,
      "box_marking": "HB",
      "total_price": 90.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "",
      "quantity": 25,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.35,
      "box_marking": "HB",
      "total_price": 8.75
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "FULL MONTY",
      "category": "",
      "quantity": 50,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.42,
      "box_marking": "HB",
      "total_price": 21.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "NINA",
      "category": "",
      "quantity": 100,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.37,
      "box_marking": "HB",
      "total_price": 37.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 400,
      "box_number": "2 - 2",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 152.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 200,
      "box_number": "3 - 3",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 76.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 125,
      "box_number": "3 - 3",
      "plantation": "TDA",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": 56.25
    },
    {
      "boxes": 1,
      "length": "80CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 25,
      "box_number": "3 - 3",
      "plantation": "TDA",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": 11.25
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "PINK FLOYD",
      "category": "",
      "quantity": 25,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.32,
      "box_marking": "HB",
      "total_price": 8.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "PINK FLOYD",
      "category": "",
      "quantity": 75,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 28.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "RED PANTHER",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.35,
      "box_marking": "HB",
      "total_price": 17.5
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "RED PANTHER",
      "category": "",
      "quantity": 75,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.55,
      "box_marking": "HB",
      "total_price": 41.25
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "TM BLUE",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 25.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "TM BLUE",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 25.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TM SKY BLUE MARBLED",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "WHITE OHARA",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.35,
      "box_marking": "HB",
      "total_price": 17.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "WHITE OHARA",
      "category": "",
      "quantity": 50,
      "box_number": "4 - 4",
      "plantation": "TDA",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": 22.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "MANDALA",
      "category": "",
      "quantity": 100,
      "box_number": "5 - 5",
      "plantation": "TDA",
      "unit_price": 0.35,
      "box_marking": "HB",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "NINA",
      "category": "",
      "quantity": 75,
      "box_number": "5 - 5",
      "plantation": "TDA",
      "unit_price": 0.42,
      "box_marking": "HB",
      "total_price": 31.5
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "NUAGE",
      "category": "",
      "quantity": 25,
      "box_number": "5 - 5",
      "plantation": "TDA",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": 11.25
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "PINK X-PRESSION",
      "category": "",
      "quantity": 25,
      "box_number": "5 - 5",
      "plantation": "TDA",
      "unit_price": 0.4,
      "box_marking": "HB",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "V.I. PINK",
      "category": "",
      "quantity": 100,
      "box_number": "5 - 5",
      "plantation": "TDA",
      "unit_price": 0.4,
      "box_marking": "HB",
      "total_price": 40.0
    }
  ],
  "country": "",
  "summary": {
    "total_boxes": 5,
    "total_stems": 1950,
    "total_amount": 805.25
  },
  "supplier": "PACIFIC CARGO",
  "invoice_date": "2026-03-14",
  "invoice_number": "399534",
  "processing_report": {
    "notes": "Тип инвойса: Составные коробки. Обнаружено 5 физических коробок. Данные извлечены без проблем. Раскрытие мультибокса не применялось, каждая строка-деталь соответствует 1 item с boxes=1 (вариант 1 MIXED BOX).\nЗамечание из инвойса: All prices are F.O.B, please remember that you have 24 hours after of received flowers to make a claim. We\n          do not accept credits for freight, product damage by customs or handing charges in any case.",
    "status": "ok",
    "sum_boxes": 5,
    "sum_stems": 1950,
    "sum_amount": 805.25,
    "items_count": 22,
    "discrepancies": [],
    "expected_boxes": 5.0,
    "expected_stems": 1950.0,
    "expected_amount": 805.25
  }
}
Результат (Pass 2)

  
История (последние 20)
ID Файл Дата