Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90735292.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817690",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROBICOLOURCORDOBA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROBICOLOURCORSICA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROHOTPINK LUCIA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROHOTPINK ROME",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROLAVENDERANTARIS",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROORANGEPARTY",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROORANGESAVANNA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROP EACHCANYON",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROPINKPAMELA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROPINKPRIMADONNA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROPURPLEAMATISTA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROREDNIRVANA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROWHITEHIMALAYA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROYELLOWFLORIDA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTROYELLOW",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QBALSTRO",
      "total_price": 3.2
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 1,
    "total_stems": 150,
    "total_amount": 48.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: составной (одна физическая коробка со смешанными сортами). Обнаружено 1 физических коробок. Выявлены расхождения в итоговых значениях количества стеблей и общей суммы. Раскрытие мультибокса не применялось.",
    "status": "warning",
    "sum_boxes": 1,
    "sum_stems": 150,
    "sum_amount": 48.0,
    "items_count": 15,
    "discrepancies": [
      "Sum of stems (150) does not match expected (700).",
      "Sum of total_price (48.0) does not match expected (320.0)."
    ],
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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