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

Intent ID: 4

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (OOO TRADE HOUSE AZALIA,TDA,2026-04-01 #398488.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7690",
  "items": [
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "FREEDOM",
      "category": "",
      "quantity": 100,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.2,
      "box_marking": "HB",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "PLAY A BLANCA",
      "category": "",
      "quantity": 25,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.25,
      "box_marking": "HB",
      "total_price": 6.25
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "TM BLUE",
      "category": "",
      "quantity": 200,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 100.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TM RAINBOW",
      "category": "",
      "quantity": 25,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 17.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "VENDELA",
      "category": "",
      "quantity": 50,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.2,
      "box_marking": "HB",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "VENDELA",
      "category": "",
      "quantity": 50,
      "box_number": "1-1",
      "plantation": "TDA",
      "unit_price": 0.28,
      "box_marking": "HB",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "VENDELA",
      "category": "",
      "quantity": 350,
      "box_number": "2-2",
      "plantation": "TDA",
      "unit_price": 0.28,
      "box_marking": "HB",
      "total_price": 98.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 450,
      "box_number": "3-3",
      "plantation": "TDA",
      "unit_price": 0.33,
      "box_marking": "HB",
      "total_price": 148.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 450,
      "box_number": "4-4",
      "plantation": "TDA",
      "unit_price": 0.33,
      "box_marking": "HB",
      "total_price": 148.5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "EXPLORER",
      "category": "",
      "quantity": 350,
      "box_number": "5-5",
      "plantation": "TDA",
      "unit_price": 0.42,
      "box_marking": "HB",
      "total_price": 147.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "RED PANTHER",
      "category": "",
      "quantity": 200,
      "box_number": "6-6",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 76.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "SOULMATE",
      "category": "",
      "quantity": 25,
      "box_number": "6-6",
      "plantation": "TDA",
      "unit_price": 0.3,
      "box_marking": "HB",
      "total_price": 7.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "WHITE OHARA",
      "category": "",
      "quantity": 25,
      "box_number": "6-6",
      "plantation": "TDA",
      "unit_price": 0.3,
      "box_marking": "HB",
      "total_price": 7.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CABARET",
      "category": "",
      "quantity": 25,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 7.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 200,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 100.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "TM BLUE",
      "category": "",
      "quantity": 50,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TM W-R",
      "category": "",
      "quantity": 25,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 17.5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TMS BLUE PINK EDGE",
      "category": "",
      "quantity": 25,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TMS SKY BLUE MARBLED",
      "category": "",
      "quantity": 25,
      "box_number": "7-7",
      "plantation": "TDA",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "ESPERANCE",
      "category": "",
      "quantity": 400,
      "box_number": "8-8",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 152.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "NINA",
      "category": "",
      "quantity": 400,
      "box_number": "9-9",
      "plantation": "TDA",
      "unit_price": 0.37,
      "box_marking": "HB",
      "total_price": 148.0
    }
  ],
  "country": "",
  "summary": {
    "total_boxes": 9,
    "total_stems": 3450,
    "total_amount": 1300.75
  },
  "supplier": null,
  "invoice_date": null,
  "invoice_number": null,
  "processing_report": {
    "notes": "Тип инвойса: составной (А). Обнаружено 9 физических коробок. 21 товарных позиций. Раскрытие мультибокса не применялось. Расхождений в итоговых суммах не обнаружено.",
    "status": "ok",
    "sum_boxes": 9,
    "sum_stems": 3450,
    "sum_amount": 1300.75,
    "items_count": 21,
    "discrepancies": [],
    "expected_boxes": null,
    "expected_stems": 3450,
    "expected_amount": 1300.75
  }
}
Результат (Pass 2)

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