Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90727982.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817653",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO BICOLOUR PIERROT",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 6.4
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO HOT PINK INTENZ DARK PINK",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO HOT PINK LUCIA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO LAVENDER ANTARIS",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO ORANGE CINNAMON",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO ORANGE PARTY",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PEACH CANYON",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK STEPHANIE",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PURPLE POMPEII",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO RED NIRVANA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE HIMALAYA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO YELLOW GOLD",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO YELLOW SUNNY LADY",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 1,
    "total_stems": 150,
    "total_amount": 48.0
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса А (составной), 1 физическая коробка, извлечено 14 сортов. Раскрытие мультибокса не применялось. Значения для invoice_number и invoice_date оставлены пустыми согласно правилам, несмотря на их присутствие в сырых OCR данных.",
    "status": "ok",
    "sum_boxes": 1,
    "sum_stems": 150,
    "sum_amount": 48.0,
    "items_count": 14,
    "discrepancies": [],
    "expected_boxes": 1,
    "expected_stems": 150,
    "expected_amount": 48.0
  }
}
Результат (Pass 2)

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