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

Intent ID: 4

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (OOO TRADE HOUSE AZALIA,TDA,2026-03-04 #397946.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7616",
  "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
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "PLAYA BLANCA",
      "category": "",
      "quantity": 25,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.25,
      "box_marking": "HB",
      "total_price": 6.25
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "TM BLUE",
      "category": "",
      "quantity": 200,
      "box_number": "1 - 1",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 100
    },
    {
      "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
    },
    {
      "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
    },
    {
      "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
    },
    {
      "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
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "RED PANTHER",
      "category": "",
      "quantity": 175,
      "box_number": "6 - 6",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 66.5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "RED PANTHER",
      "category": "",
      "quantity": 25,
      "box_number": "6 - 6",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 9.5
    },
    {
      "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.3,
      "box_marking": "HB",
      "total_price": 7.5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 200,
      "box_number": "7 - 7",
      "plantation": "TDA",
      "unit_price": 0.5,
      "box_marking": "HB",
      "total_price": 100
    },
    {
      "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
    },
    {
      "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
    },
    {
      "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
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 400,
      "box_number": "8 - 8",
      "plantation": "TDA",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": 180
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 25,
      "box_number": "9 - 9",
      "plantation": "TDA",
      "unit_price": 0.55,
      "box_marking": "HB",
      "total_price": 13.75
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "CANDLELIGHT",
      "category": "",
      "quantity": 375,
      "box_number": "9 - 9",
      "plantation": "TDA",
      "unit_price": 0.55,
      "box_marking": "HB",
      "total_price": 206.25
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "ESPERANCE",
      "category": "",
      "quantity": 400,
      "box_number": "10 - 10",
      "plantation": "TDA",
      "unit_price": 0.38,
      "box_marking": "HB",
      "total_price": 152
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "NINA",
      "category": "",
      "quantity": 375,
      "box_number": "11 - 11",
      "plantation": "TDA",
      "unit_price": 0.37,
      "box_marking": "HB",
      "total_price": 138.75
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "NINA",
      "category": "",
      "quantity": 25,
      "box_number": "11 - 11",
      "plantation": "TDA",
      "unit_price": 0.37,
      "box_marking": "HB",
      "total_price": 9.25
    }
  ],
  "country": "",
  "summary": {
    "total_boxes": 11,
    "total_stems": 4250,
    "total_amount": 1700.75
  },
  "supplier": "PACIFIC CARGO",
  "invoice_date": "2026-03-05",
  "invoice_number": "397946",
  "processing_report": {
    "notes": "Тип инвойса: А (Составные коробки). Обнаружено 11 физических коробок. Мультибокс раскрытие не применялось (каждая строка-деталь = 1 item с boxes=1). Все суммы сошлись с итоговой строкой.",
    "status": "ok",
    "sum_boxes": 11,
    "sum_stems": 4250,
    "sum_amount": 1700.75,
    "items_count": 27,
    "discrepancies": [],
    "expected_boxes": 11,
    "expected_stems": 4250,
    "expected_amount": 1700.75
  }
}
Результат (Pass 2)

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